Group Link Android API

Team
SDK Team
Last Updated
June 10, 2026

Description of Grouplink class public methods.

Methods

1/*
2* Method used to register the grouplink SDK on server and start
3* scanning, for Grouplink devices.
4* context - context of application.
5* token - token of app with apikey by user.
6* debbugable - shows a notification to verify if the sdk is scanning.
7* debbugable *true* should only be used on testing enviroments.
8*/
9void register(Context context, String token, boolean debuggable);
10
11/*
12* A helper for configuration on Xiaomi devices and Asus devices
13* with device manager app.
14*/
15void askForAutoStartPermission(Activity activity);
16
17/*
18** Api for getting UserId of the app.
19*/
20void getUserId(
21 Context context,
22 GrouplinkUserIdListener grouplinkUserIdListener
23);
24
25/*
26* Sets the remote id for the device. The remote id is used to identify the device.
27* It is recommended to use a unique identifier for each device, such as a UUID or the user id.
28* context - Context required.
29* remoteId - The remote id to be set.
30*/
31void setRemoteId(Context context, String remoteId);
32
33/*
34* Requests the system alert window permission.
35* This method should be called in an activity to show the permission activity to the user.
36* activity - Activity required to show the permission dialog
37*/
38void requestSystemAlertWindow(Activity activity);
39