-
public interface AnnotationsRequestProvides ability to accept or decline annotations request.
-
-
Method Summary
Modifier and Type Method Description abstract voidaccept(Activity activity, int requestCode)Accepts annotations request and redirects the Visitor to Android apps settings,where the Visitor has to give the app a permission to draw overlay on top of other apps. abstract voiddecline()Declines annotations requests. -
-
Method Detail
-
accept
abstract void accept(Activity activity, int requestCode)
Accepts annotations request and redirects the Visitor to Android apps settings,where the Visitor has to give the app a permission to draw overlay on top of other apps.
Since this method redirects Visitor to Android settings,it is suggested that this method is called only after Visitor has been showna disclaimer about what is going to happen after accepting the request.
If the Visitor does not give permission at the Android settings after acceptingthe annotations request then annotations stays disabled.
This method requires a current Activity and a unique request code that can be used to redirect Visitor to the apps settings pagevia Activity#startActivityForResult(Intent, int).The request code is an unique integer that is not used foryour own or Glia SDK's activity results.
- Parameters:
activity- Current activityrequestCode- Unique request code
-
decline
abstract void decline()
Declines annotations requests.
-
-
-
-