RichUtils / pyxis.uzuki.live.richutilskt.utils / RPermission

RPermission

class RPermission

Types

RequestFragment

class RequestFragment : Fragment

Functions

checkPermission

fun checkPermission(context: Context, array: Array<String>, callback: (Int, List<String>) -> Unit = { _, _ -> }): Boolean
fun checkPermission(context: Context, array: Array<String>, callback: F2<Int, List<String>>?): Boolean
fun checkPermission(context: Context, list: List<String>, callback: (Int, List<String>) -> Unit): Boolean
fun checkPermission(context: Context, list: List<String>, callback: F2<Int, List<String>>?): Boolean

check and request Permission which given.

checkPermissionGranted

fun checkPermissionGranted(context: Context, array: Array<String>): Boolean

check permission is granted

Companion Object Properties

PERMISSION_FAILED

val PERMISSION_FAILED: Int

PERMISSION_GRANTED

val PERMISSION_GRANTED: Int

instance

var instance: RPermission