liveData

fun PermissionRequest.liveData(): LiveData<List<PermissionStatus>>

Observes the PermissionRequest's status. The returned LiveData emits the list of PermissionStatus when the result of PermissionRequest.send is received. The documentation of the possible values of PermissionStatus can be found at PermissionRequest.Listener.onPermissionsResult.

Return

a new LiveData which emits a new item to the observers every time the result of PermissionRequest.send is received.

See also