constructSystemAlertWindowPermissionRequest

fun FragmentActivity.constructSystemAlertWindowPermissionRequest(onShowRationale: ShowRationaleFun? = null, onPermissionDenied: Fun? = null, requiresPermission: Fun): PermissionsRequester
fun Fragment.constructSystemAlertWindowPermissionRequest(onShowRationale: ShowRationaleFun? = null, onPermissionDenied: Fun? = null, requiresPermission: Fun): PermissionsRequester

Constructs a request for android.Manifest.permission.SYSTEM_ALERT_WINDOW. Be sure to invoke the method when an activity is created to capture the valid callbacks.

See also

Parameters

onShowRationale

the method explains why the permissions are required.

onPermissionDenied

the method invoked if the user doesn't grant the permissions.

requiresPermission

the action requires permissions.