Companion

object Companion

Permissions Helper companion

Properties

Link copied to clipboard

PermissionsHelper instance.

Functions

Link copied to clipboard
fun hasPermission(context: <Error class: unknown class>, permission: String): Boolean

Tests if the provided permission is already granted.

Link copied to clipboard
fun hasPermissions(context: <Error class: unknown class>, permissions: Array<String>, mustHaveAll: Boolean = true): Boolean

Tests if the provided permissions are already granted.

Link copied to clipboard
fun onRequestPermissionsResult(granted: List<String>, rejected: List<String>)
fun onRequestPermissionsResult(activity: <Error class: unknown class>, requestCode: Int, grantResults: IntArray)

Notifies to Magic Lane SDK that some permissions status had been changed.

Link copied to clipboard
fun requestPermissions(requestCode: Int, activity: <Error class: unknown class>, permissions: Array<String>): Boolean

Requests to user the provided permissions.