Language

SliceProvider Constructors

Definition

Overloads

Name Description
SliceProvider()

A version of constructing a SliceProvider that allows autogranting slice permissions to apps that hold specific platform permissions.

SliceProvider(String[])

A version of constructing a SliceProvider that allows autogranting slice permissions to apps that hold specific platform permissions.

SliceProvider(IntPtr, JniHandleOwnership)

Creates a managed instance that represents an existing Java object.

SliceProvider()

A version of constructing a SliceProvider that allows autogranting slice permissions to apps that hold specific platform permissions.

[Android.Runtime.Register(".ctor", "()V", "", ApiSince=28)]
public SliceProvider();
Attributes

Remarks

Java documentation for android.app.slice.SliceProvider.SliceProvider(java.lang.String).

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

SliceProvider(String[])

A version of constructing a SliceProvider that allows autogranting slice permissions to apps that hold specific platform permissions.

[Android.Runtime.Register(".ctor", "([Ljava/lang/String;)V", "", ApiSince=28)]
public SliceProvider(params string[] autoGrantPermissions);
[<Android.Runtime.Register(".ctor", "([Ljava/lang/String;)V", "", ApiSince=28)>]
new Android.App.Slices.SliceProvider : string[] -> Android.App.Slices.SliceProvider

Parameters

autoGrantPermissions
String[]

List of permissions that holders are auto-granted access to slices.

Attributes

Remarks

Java documentation for android.app.slice.SliceProvider.SliceProvider(java.lang.String).

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

SliceProvider(IntPtr, JniHandleOwnership)

Creates a managed instance that represents an existing Java object.

protected SliceProvider(IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Android.App.Slices.SliceProvider : nativeint * Android.Runtime.JniHandleOwnership -> Android.App.Slices.SliceProvider

Parameters

javaReference
IntPtr

nativeint

A JNI reference to the Java object.

transfer
JniHandleOwnership

Specifies whether ownership of the JNI reference transfers to this instance.

Remarks

The runtime calls this constructor to create a managed representation of an existing Java object.

Applies to