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

checkPermission

@JvmOverloads 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

check and request Permission which given.

Parameters

array - array of Permission to check

callback - callback object

Return
check result

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.

Parameters

list - list of Permission to check

callback - callback object

Return
check result