gh-pages / com.nextfaze.devfun.overlay / OverlayPermissions / shouldRequestPermission

shouldRequestPermission

abstract val shouldRequestPermission: Boolean (source)

Flag indicating if we should request overlay permissions - i.e. we don’t have them and the user has not denied them.

Calling requestPermission will only show the request if the user has not denied them already. This flag is here to allow you to know if you should generate/render the reasoning string etc, and as to whether or not a resumed FragmentActivity is present. Calling requestPermission when this is false will do nothing.

See Also

canDrawOverlays

requestPermission