PermissionRequest

open class PermissionRequest

Types

Response
Link copied to clipboard

Callback Interface

interface Response

Functions

getPermission
Link copied to clipboard

Request Android Permissions.

open fun getPermission(context: ImgLyIntent.ResultDelegator, permissions: String, response: PermissionRequest.Response)
open fun getPermission(delegator: ImgLyIntent.ResultDelegator, permissions: Array<String>, response: PermissionRequest.Response)
hasAllPermission
Link copied to clipboard

Check if the user has granted the permissions.

open fun hasAllPermission(context: Context, permissions: Array<String>): Boolean
hasPermissionInManifest
Link copied to clipboard
open fun hasPermissionInManifest(context: Context, permission: String): Boolean
onRequestPermissionsResult
Link copied to clipboard

Must bee called by Activity.onRequestPermissionsResult

open fun onRequestPermissionsResult(requestCode: Int, permissions: Array<String>, grantResults: Array<Int>)

Properties

NEEDED_EDITOR_PERMISSIONS
Link copied to clipboard

Permissions needed for the Editor Activity

val NEEDED_EDITOR_PERMISSIONS: Array<String>
NEEDED_PREVIEW_PERMISSIONS
Link copied to clipboard

Permissions needed for the Preview Activity

val NEEDED_PREVIEW_PERMISSIONS: Array<String>
NEEDED_PREVIEW_PERMISSIONS_AND_COARSE_LOCATION
Link copied to clipboard

Permissions needed for the Preview Activity + ACCESS_COARSE_LOCATION

NEEDED_PREVIEW_PERMISSIONS_AND_FINE_LOCATION
Link copied to clipboard

Permissions needed for the Preview Activity + ACCESS_FINE_LOCATION