Package-level declarations

Types

Link copied to clipboard

MultiPermissionBuilder.

Link copied to clipboard
object Permission
Link copied to clipboard

PermissionBuilder.

Link copied to clipboard
class PermissionLauncher<I, O>(activityResultCaller: ActivityResultCaller, activityResultContract: ActivityResultContract<I, O>)

PermissionLauncher

Link copied to clipboard

PermissionRegister is for developers to call the requestPermission/requestMultiplePermissions API at any time. It will save an PermissionLauncher object for each Activity when it is created, so that permission requests can be made through this object. At the same time, the object will be destroyed when the corresponding Activity is destroyed. PermissionRegister will be initialized in ToolsConfig.

Properties

Link copied to clipboard
const val AUDIO: String

Allows an application to record audio.

Link copied to clipboard
const val CAMERA: String

Required to be able to access the camera device.

Link copied to clipboard
const val DATE: String

Allows an application to read the user's calendar data.

Link copied to clipboard
const val DENIED: String
Link copied to clipboard
const val EXPLAINED: String
Link copied to clipboard
const val PEOPLE: String

Allows an application to read the user's contacts data.

Link copied to clipboard
const val PHONE: String

Allows read only access to phone state, make calls, obtain and modify call records, allow video calls, allow surveillance, modify or abandon broadcast calls.

Link copied to clipboard
const val SD: String

Allows an application to write to external storage.

Link copied to clipboard
const val SENSORS: String

Allows an application to access data from sensors that the user uses to measure what is happening inside their body, such as heart rate.

Link copied to clipboard
const val SMS: String

Allows an application to read and modify SMS, send SMS, receive SMS content and SMS broadcast, receive MMS.

Link copied to clipboard
@RequiresApi(value = 33)
const val SYSTEM_AUDIO: String

Allows an application to read audio files from external storage.

Link copied to clipboard
@RequiresApi(value = 33)
const val SYSTEM_IMAGE: String

Allows an application to read image files from external storage.

Link copied to clipboard
@RequiresApi(value = 33)
const val SYSTEM_VIDEO: String

Allows an application to read video files from external storage.

Functions

Link copied to clipboard

Activity requestMultiplePermissions.

inline fun Fragment.requestMultiplePermissions(permissions: Array<String>, builder: MultiPermissionBuilder.() -> Unit = {})

Fragment requestMultiplePermissions.

Link copied to clipboard
inline fun ComponentActivity.requestPermission(permission: String, builder: PermissionBuilder.() -> Unit = {})

Activity requestPermission.

inline fun Fragment.requestPermission(permission: String, builder: PermissionBuilder.() -> Unit = {})

Fragment requestPermission.