Slice.Builder.AddBundle(Bundle, String, IList<String>) 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.
Add a bundle to the slice being constructed.
[Android.Runtime.Register("addBundle", "(Landroid/os/Bundle;Ljava/lang/String;Ljava/util/List;)Landroid/app/slice/Slice$Builder;", "GetAddBundle_Landroid_os_Bundle_Ljava_lang_String_Ljava_util_List_Handler", ApiSince=28)]
public virtual Android.App.Slices.Slice.Builder? AddBundle(Android.OS.Bundle? bundle, string? subType, System.Collections.Generic.IList<string>? hints);
[<Android.Runtime.Register("addBundle", "(Landroid/os/Bundle;Ljava/lang/String;Ljava/util/List;)Landroid/app/slice/Slice$Builder;", "GetAddBundle_Landroid_os_Bundle_Ljava_lang_String_Ljava_util_List_Handler", ApiSince=28)>]
abstract member AddBundle : Android.OS.Bundle * string * System.Collections.Generic.IList<string> -> Android.App.Slices.Slice.Builder
override this.AddBundle : Android.OS.Bundle * string * System.Collections.Generic.IList<string> -> Android.App.Slices.Slice.Builder
Parameters
- bundle
- Bundle
- 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
Value is one of the following: Slice.HINT_TITLE; Slice.HINT_LIST; Slice.HINT_LIST_ITEM; Slice.HINT_LARGE; Slice.HINT_ACTIONS; Slice.HINT_SELECTED; Slice.HINT_NO_TINT; Slice.HINT_SHORTCUT; Slice.HINT_HORIZONTAL; Slice.HINT_PARTIAL; Slice.HINT_SEE_MORE; Slice.HINT_KEYWORDS; Slice.HINT_ERROR; Slice.HINT_TTL; Slice.HINT_LAST_UPDATED; Slice.HINT_PERMISSION_REQUEST
Returns
- Attributes
Remarks
Add a bundle to the slice being constructed.
Expected to be used for support library extension, should not be used for general development
Android reference for android.app.slice.Slice.Builder.addBundle.
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.