Android.Content.Context.CheckUriPermission Method
Determine whether a particular process and user ID has been granted permission to access a specific URI.

Syntax

[Android.Runtime.Register("checkUriPermission", "(Landroid/net/Uri;III)I", "GetCheckUriPermission_Landroid_net_Uri_IIIHandler")]
public abstract Android.Content.PM.Permission CheckUriPermission (Android.Net.Uri uri, int pid, int uid, [Android.Runtime.GeneratedEnum] ActivityFlags modeFlags)

See Also

Context.CheckCallingUriPermission(Android.Net.Uri, Android.Content.ActivityFlags)

Parameters

uri
The uri that is being checked.
pid
The process ID being checked against. Must be > 0.
uid
The user ID being checked against. A uid of 0 is the root user, which will pass every permission check.
modeFlags
The type of access to grant. May be one or both of Intent.FLAG_GRANT_READ_URI_PERMISSION or Intent.FLAG_GRANT_WRITE_URI_PERMISSION.

Returns

Documentation for this section has not yet been entered.

Remarks

Determine whether a particular process and user ID has been granted permission to access a specific URI. This only checks for permissions that have been explicitly granted -- if the given process/uid has more general access to the URI's content provider then this check will always fail.

[Android Documentation]

Requirements

Namespace: Android.Content
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1