SliceManager.GrantSlicePermission(String, Uri) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
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.