Android.Content.ContextWrapper.CheckCallingOrSelfUriPermission Method
Determine whether the calling process of an IPC or you has been granted permission to access a specific URI.

Syntax

[Android.Runtime.Register("checkCallingOrSelfUriPermission", "(Landroid/net/Uri;I)I", "GetCheckCallingOrSelfUriPermission_Landroid_net_Uri_IHandler")]
[return:Android.Runtime.GeneratedEnum]
public override Android.Content.PM.Permission CheckCallingOrSelfUriPermission (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 of an IPC or you has been granted permission to access a specific URI. This is the same as Context.CheckCallingUriPermission(Android.Net.Uri, Android.Content.ActivityFlags), except it grants your own permissions if you are not currently processing an IPC. Use with care!

[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