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

OverlayPermissions

interface OverlayPermissions (source)

Handles overlay permissions.

See Also

OverlayManager

OverlayWindow

Properties

Name Summary
canDrawOverlays abstract val canDrawOverlays: Boolean
Flag indicating if the user has granted overlay permissions.
shouldRequestPermission abstract val shouldRequestPermission: Boolean
Flag indicating if we should request overlay permissions - i.e. we don’t have them and the user has not denied them.

Functions

Name Summary
addOverlayPermissionListener abstract fun addOverlayPermissionListener(listener: OverlayPermissionListener): OverlayPermissionListener
Add a listener for when overlay permissions have changed.
minusAssign open operator fun minusAssign(listener: OverlayPermissionListener): Unit
Remove a listener for when overlay permissions have changed.
plusAssign open operator fun plusAssign(listener: OverlayPermissionListener): Unit
Add a listener for when overlay permissions have changed.
removeOverlayPermissionListener abstract fun removeOverlayPermissionListener(listener: OverlayPermissionListener): OverlayPermissionListener
Remove a listener for when overlay permissions have changed.
requestPermission abstract fun requestPermission(reason: CharSequence? = null): Unit
Signal a request to the user that we want permission for overlays.