PermissionRequest

data class PermissionRequest(@StyleRes() theme: Int, code: Int, perms: Array<out String>, rationale: String?, positiveButtonText: String?, negativeButtonText: String?)

An immutable model object that holds all of the parameters associated with a permission request, such as the permissions, request code, and rationale.

See also

Constructors

PermissionRequest
Link copied to clipboard
fun PermissionRequest(@StyleRes() theme: Int, code: Int, perms: Array<out String>, rationale: String?, positiveButtonText: String?, negativeButtonText: String?)

Types

Builder
Link copied to clipboard
class Builder(context: Context?)
Builder to build a permission request with variable options.

Functions

component1
Link copied to clipboard
operator fun component1(): Int
component2
Link copied to clipboard
operator fun component2(): Int
component3
Link copied to clipboard
operator fun component3(): Array<out String>
component4
Link copied to clipboard
operator fun component4(): String?
component5
Link copied to clipboard
operator fun component5(): String?
component6
Link copied to clipboard
operator fun component6(): String?
copy
Link copied to clipboard
fun copy(@StyleRes() theme: Int, code: Int, perms: Array<out String>, rationale: String?, positiveButtonText: String?, negativeButtonText: String?): PermissionRequest
equals
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
open override fun hashCode(): Int
toString
Link copied to clipboard
open override fun toString(): String

Properties

code
Link copied to clipboard
var code: Int
negativeButtonText
Link copied to clipboard
var negativeButtonText: String?
perms
Link copied to clipboard
var perms: Array<out String>
positiveButtonText
Link copied to clipboard
var positiveButtonText: String?
rationale
Link copied to clipboard
var rationale: String?
theme
Link copied to clipboard
var theme: Int