SliceManager.CheckSlicePermission(Uri, Int32, Int32) Method

Definition

Determine whether a particular process and user ID has been granted permission to access a specific slice URI.

[Android.Runtime.Register("checkSlicePermission", "(Landroid/net/Uri;II)I", "GetCheckSlicePermission_Landroid_net_Uri_IIHandler", ApiSince=28)]
public virtual Android.Content.PM.Permission CheckSlicePermission (Android.Net.Uri uri, int pid, int uid);
[<Android.Runtime.Register("checkSlicePermission", "(Landroid/net/Uri;II)I", "GetCheckSlicePermission_Landroid_net_Uri_IIHandler", ApiSince=28)>]
abstract member CheckSlicePermission : Android.Net.Uri * int * int -> Android.Content.PM.Permission
override this.CheckSlicePermission : Android.Net.Uri * int * int -> Android.Content.PM.Permission

Parameters

uri
Uri

The uri that is being checked.

pid
Int32

The process ID being checked against. Must be &gt; 0.

uid
Int32

The user ID being checked against. A uid of 0 is the root user, which will pass every permission 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 user ID has been granted permission to access a specific slice URI.

Java documentation for android.app.slice.SliceManager.checkSlicePermission(android.net.Uri, int, int).

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.

Applies to