Slice.Builder.AddInt(Int32, 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 an integer to the slice being constructed
[Android.Runtime.Register("addInt", "(ILjava/lang/String;Ljava/util/List;)Landroid/app/slice/Slice$Builder;", "GetAddInt_ILjava_lang_String_Ljava_util_List_Handler", ApiSince=28)]
public virtual Android.App.Slices.Slice.Builder? AddInt(int value, string? subType, System.Collections.Generic.IList<string>? hints);
[<Android.Runtime.Register("addInt", "(ILjava/lang/String;Ljava/util/List;)Landroid/app/slice/Slice$Builder;", "GetAddInt_ILjava_lang_String_Ljava_util_List_Handler", ApiSince=28)>]
abstract member AddInt : int * string * System.Collections.Generic.IList<string> -> Android.App.Slices.Slice.Builder
override this.AddInt : int * string * System.Collections.Generic.IList<string> -> Android.App.Slices.Slice.Builder
Parameters
- value
- Int32
The 32-bit integer to store in the item.
- subType
- String
Optional template-specific type information. This value may be null. Values include: Slice.SubtypeColor; Slice.SubtypeContentDescription; Slice.SubtypeMax; Slice.SubtypeMessage; Slice.SubtypePriority; Slice.SubtypeRange; Slice.SubtypeSource; Slice.SubtypeToggle; Slice.SubtypeValue; Slice.SubtypeLayoutDirection
The list of hints. Hints can include: Slice.HintTitle; Slice.HintList; Slice.HintListItem; Slice.HintLarge; Slice.HintActions; Slice.HintSelected; Slice.HintNoTint; Slice.HintShortcut; Slice.HintHorizontal; Slice.HintPartial; Slice.HintSeeMore; Slice.HintKeywords; Slice.HintError; Slice.HintTtl; Slice.HintLastUpdated; Slice.HintPermissionRequest
Returns
This builder.
- Attributes
Remarks
Add an integer to the slice being constructed
Android reference for android.app.slice.Slice.Builder.addInt.
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.