Skip to main content

Group Link Android API

Methods

void register(Context context, String token, boolean debuggable);

/*
* Method used to register the grouplink SDK on server and start
* scanning, for Grouplink devices.
* context - context of application.
* token - token of app with apikey by user.
* debbugable - shows a notification to verify if the sdk is scanning.
* debbugable *true* should only be used on testing enviroments.
*/

void register(
Context context,
String token,
ProximityDetector proximityDetector,
boolean debuggable
);

/*
* Method used to register the grouplink SDK on server and start
* scanning, for Grouplink devices.
* context - context of application.
* token - token of app with apikey by user.
* proximityDetector - a listener to microinteraction events,
* limited availability.
* debbugable - shows a notification to verify if the sdk is scanning.
* debbugable *true* should only be used on testing enviroments.
*/
void askForAutoStartPermission(Activity activity);

/*
* A helper for configuration on Xiaomi devices and Asus devices
* with device manager app.
*/
void getUserId(
Context context,
GrouplinkUserIdListener grouplinkUserIdListener
);

/*
** Api for getting UserId of the app.
*/
/*
* Set a custom notification icon on grouplink offline notifications.
* @resId param: resource Id of the customized icon.
*/
public static void setNotificationResId(Context context, int resId);
/*
* Mininum GL SDK version - v3.11.8
*/
public static void setFirebaseToken(Context context, String string);