Android.Content.ContextWrapper.CheckCallingUriPermission Method
Determine whether the calling process and user ID has been granted permission to access a specific URI.

Syntax

[Android.Runtime.Register("checkCallingUriPermission", "(Landroid/net/Uri;I)I", "GetCheckCallingUriPermission_Landroid_net_Uri_IHandler")]
[return:Android.Runtime.GeneratedEnum]
public override Android.Content.PM.Permission CheckCallingUriPermission (Android.Net.Uri uri, [Android.Runtime.GeneratedEnum] ActivityFlags modeFlags)

Parameters

uri
The uri that is being checked.
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 the calling process and user ID has been granted permission to access a specific URI. This is basically the same as calling Context.CheckUriPermission(Android.Net.Uri, System.Int32, 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.

[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