Sdílet prostřednictvím


SliceManager.GrantSlicePermission(String, Uri) Method

Definition

Grant permission to access a specific slice Uri to another package.

[Android.Runtime.Register("grantSlicePermission", "(Ljava/lang/String;Landroid/net/Uri;)V", "GetGrantSlicePermission_Ljava_lang_String_Landroid_net_Uri_Handler", ApiSince=28)]
public virtual void GrantSlicePermission (string toPackage, Android.Net.Uri uri);
[<Android.Runtime.Register("grantSlicePermission", "(Ljava/lang/String;Landroid/net/Uri;)V", "GetGrantSlicePermission_Ljava_lang_String_Landroid_net_Uri_Handler", ApiSince=28)>]
abstract member GrantSlicePermission : string * Android.Net.Uri -> unit
override this.GrantSlicePermission : string * Android.Net.Uri -> unit

Parameters

toPackage
String

The package you would like to allow to access the Uri.

uri
Uri

The Uri you would like to grant access to.

Attributes

Remarks

Grant permission to access a specific slice Uri to another package.

Java documentation for android.app.slice.SliceManager.grantSlicePermission(java.lang.String, android.net.Uri).

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