- permission
- The name of the permission being checked.
Documentation for this section has not yet been entered.
Determine whether the calling process of an IPC you are handling has been granted a particular permission. This is basically the same as calling Android.Content.Context.CheckPermission(string, System.Int32, System.Int32) with the pid and uid returned by Android.OS.Binder.CallingPid and Android.OS.Binder.CallingUid. One important difference is that if you are not currently processing an IPC, this function will always fail. This is done to protect against accidentally leaking permissions; you can use Android.Content.Context.CheckCallingOrSelfPermission(string) to avoid this protection.