PermissionsManager

Airship permission manager.

Airship will provide the default handling for notifications. Other Permission needs to be handled by the application by setting a delegate with PermissionDelegate.

Properties

Link copied to clipboard

Gets the set of permissions that have a delegate.

Functions

Link copied to clipboard

Adds a permission status changed listener.

Link copied to clipboard

Checks the current permission status.

Link copied to clipboard

Returns a flow of permission status changes for the specified permission.

Link copied to clipboard

Removes a permission status changed listener.

Link copied to clipboard
fun requestPermission(permission: Permission, enableAirshipUsageOnGrant: Boolean = false, fallback: PermissionPromptFallback = PermissionPromptFallback.None): PendingResult<PermissionRequestResult?>

Requests a permission. If a delegate is not set to handle the permission PermissionStatus.NOT_DETERMINED will be returned.

fun requestPermission(permission: Permission, enableAirshipUsageOnGrant: Boolean = false, fallback: PermissionPromptFallback = PermissionPromptFallback.None, callback: Consumer<PermissionRequestResult?>)

Requests a permission.

Link copied to clipboard

Sets a delegate to handle permissions.

Link copied to clipboard
suspend fun suspendingRequestPermission(permission: Permission, enableAirshipUsageOnGrant: Boolean = false, fallback: PermissionPromptFallback = PermissionPromptFallback.None): PermissionRequestResult