Language

Slice.Builder.AddSubSlice(Slice, String) Method

Definition

Add a sub-slice to the slice being constructed

[Android.Runtime.Register("addSubSlice", "(Landroid/app/slice/Slice;Ljava/lang/String;)Landroid/app/slice/Slice$Builder;", "GetAddSubSlice_Landroid_app_slice_Slice_Ljava_lang_String_Handler", ApiSince=28)]
public virtual Android.App.Slices.Slice.Builder? AddSubSlice(Android.App.Slices.Slice slice, string? subType);
[<Android.Runtime.Register("addSubSlice", "(Landroid/app/slice/Slice;Ljava/lang/String;)Landroid/app/slice/Slice$Builder;", "GetAddSubSlice_Landroid_app_slice_Slice_Ljava_lang_String_Handler", ApiSince=28)>]
abstract member AddSubSlice : Android.App.Slices.Slice * string -> Android.App.Slices.Slice.Builder
override this.AddSubSlice : Android.App.Slices.Slice * string -> Android.App.Slices.Slice.Builder

Parameters

slice
Slice

The child slice to add. Its hints are used for the child item. Must not be null.

subType
String

Optional template-specific type information. This value may be null. Value is one of the following: Slice.SUBTYPE_COLOR; Slice.SUBTYPE_CONTENT_DESCRIPTION; Slice.SUBTYPE_MAX; Slice.SUBTYPE_MESSAGE; Slice.SUBTYPE_PRIORITY; Slice.SUBTYPE_RANGE; Slice.SUBTYPE_SOURCE; Slice.SUBTYPE_TOGGLE; Slice.SUBTYPE_VALUE; Slice.SUBTYPE_LAYOUT_DIRECTION

Returns

This builder.

Attributes

Remarks

Add a sub-slice to the slice being constructed

Android reference for android.app.slice.Slice.Builder.addSubSlice.

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