| com.glia.androidsdk.screensharing.AnnotationsRequest |
Provides ability to accept or decline annotations request.
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| 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.
| ||||||||||
| abstract void |
decline()
Declines annotations requests.
| ||||||||||
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 shown a disclaimer about what is going to happen after accepting the request.
If the Visitor does not give permission at the Android settings after accepting the 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 page via Activity#startActivityForResult(Intent, int). The request code is an unique integer that is not used for your own or Glia SDK's activity results.
| activity | Current activity |
|---|---|
| requestCode | Unique request code |
Declines annotations requests.