public interface

AnnotationsRequest

com.glia.androidsdk.screensharing.AnnotationsRequest

Class Overview

Provides ability to accept or decline annotations request.

Summary

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.

Public Methods

public 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 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.

Parameters
activity Current activity
requestCode Unique request code

public abstract void decline ()

Declines annotations requests.