Context.CheckContentUriPermissionFull Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Determine whether a particular process and uid has been granted permission to access a specific content URI.
[Android.Runtime.Register("checkContentUriPermissionFull", "(Landroid/net/Uri;III)I", "GetCheckContentUriPermissionFull_Landroid_net_Uri_IIIHandler", ApiSince=35)]
public virtual Android.Content.PM.Permission CheckContentUriPermissionFull (Android.Net.Uri uri, int pid, int uid, Android.Content.ActivityFlags modeFlags);
[<Android.Runtime.Register("checkContentUriPermissionFull", "(Landroid/net/Uri;III)I", "GetCheckContentUriPermissionFull_Landroid_net_Uri_IIIHandler", ApiSince=35)>]
abstract member CheckContentUriPermissionFull : Android.Net.Uri * int * int * Android.Content.ActivityFlags -> Android.Content.PM.Permission
override this.CheckContentUriPermissionFull : Android.Net.Uri * int * int * Android.Content.ActivityFlags -> Android.Content.PM.Permission
Parameters
- uri
- Uri
The content uri that is being checked.
- pid
- Int32
(Optional) The process ID being checked against. If the pid is unknown, pass -1.
- uid
- Int32
The UID being checked against. A uid of 0 is the root user, which will pass every permission check.
- modeFlags
- ActivityFlags
The access modes to check.
Returns
PackageManager#PERMISSION_GRANTED
if the given
pid/uid is allowed to access that uri, or
PackageManager#PERMISSION_DENIED
if it is not.
- Attributes
Remarks
Determine whether a particular process and uid has been granted permission to access a specific content URI.
Unlike #checkUriPermission(Uri, int, int, int)
, this method checks for general access to the URI's content provider, as well as explicitly granted permissions.
Note, this check will throw an IllegalArgumentException
for non-content URIs.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.