Package 

Interface AnnotationsRequest


  • 
    public interface AnnotationsRequest
    
                        

    Provides ability to accept or decline annotations request.

    • Method Summary

      Modifier and Type Method Description
      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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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 activity
        requestCode - Unique request code
      • decline

         abstract void decline()

        Declines annotations requests.