Udostępnij za pośrednictwem


SliceManager.BindSlice Method

Definition

Overloads

BindSlice(Intent, ICollection<SliceSpec>)

Turns a slice intent into slice content.

BindSlice(Uri, ICollection<SliceSpec>)

Turns a slice Uri into slice content.

BindSlice(Intent, ICollection<SliceSpec>)

Turns a slice intent into slice content.

[Android.Runtime.Register("bindSlice", "(Landroid/content/Intent;Ljava/util/Set;)Landroid/app/slice/Slice;", "GetBindSlice_Landroid_content_Intent_Ljava_util_Set_Handler", ApiSince=28)]
public virtual Android.App.Slices.Slice? BindSlice (Android.Content.Intent intent, System.Collections.Generic.ICollection<Android.App.Slices.SliceSpec> supportedSpecs);
[<Android.Runtime.Register("bindSlice", "(Landroid/content/Intent;Ljava/util/Set;)Landroid/app/slice/Slice;", "GetBindSlice_Landroid_content_Intent_Ljava_util_Set_Handler", ApiSince=28)>]
abstract member BindSlice : Android.Content.Intent * System.Collections.Generic.ICollection<Android.App.Slices.SliceSpec> -> Android.App.Slices.Slice
override this.BindSlice : Android.Content.Intent * System.Collections.Generic.ICollection<Android.App.Slices.SliceSpec> -> Android.App.Slices.Slice

Parameters

intent
Intent

The intent associated with a slice.

supportedSpecs
ICollection<SliceSpec>

List of supported specs.

Returns

The Slice provided by the app or null if none is given.

Attributes

Remarks

Turns a slice intent into slice content. Is a shortcut to perform the action of both #mapIntentToUri(Intent) and #bindSlice(Uri, Set) at once.

Java documentation for android.app.slice.SliceManager.bindSlice(android.content.Intent, java.util.Set<android.app.slice.SliceSpec>).

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

BindSlice(Uri, ICollection<SliceSpec>)

Turns a slice Uri into slice content.

[Android.Runtime.Register("bindSlice", "(Landroid/net/Uri;Ljava/util/Set;)Landroid/app/slice/Slice;", "GetBindSlice_Landroid_net_Uri_Ljava_util_Set_Handler", ApiSince=28)]
public virtual Android.App.Slices.Slice? BindSlice (Android.Net.Uri uri, System.Collections.Generic.ICollection<Android.App.Slices.SliceSpec> supportedSpecs);
[<Android.Runtime.Register("bindSlice", "(Landroid/net/Uri;Ljava/util/Set;)Landroid/app/slice/Slice;", "GetBindSlice_Landroid_net_Uri_Ljava_util_Set_Handler", ApiSince=28)>]
abstract member BindSlice : Android.Net.Uri * System.Collections.Generic.ICollection<Android.App.Slices.SliceSpec> -> Android.App.Slices.Slice
override this.BindSlice : Android.Net.Uri * System.Collections.Generic.ICollection<Android.App.Slices.SliceSpec> -> Android.App.Slices.Slice

Parameters

uri
Uri

The URI to a slice provider

supportedSpecs
ICollection<SliceSpec>

List of supported specs.

Returns

The Slice provided by the app or null if none is given.

Attributes

Remarks

Turns a slice Uri into slice content.

Java documentation for android.app.slice.SliceManager.bindSlice(android.net.Uri, java.util.Set<android.app.slice.SliceSpec>).

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