Language

Slice.Builder.AddLong(Int64, String, IList<String>) Method

Definition

Add a long to the slice being constructed

[Android.Runtime.Register("addLong", "(JLjava/lang/String;Ljava/util/List;)Landroid/app/slice/Slice$Builder;", "GetAddLong_JLjava_lang_String_Ljava_util_List_Handler", ApiSince=28)]
public virtual Android.App.Slices.Slice.Builder? AddLong(long value, string? subType, System.Collections.Generic.IList<string>? hints);
[<Android.Runtime.Register("addLong", "(JLjava/lang/String;Ljava/util/List;)Landroid/app/slice/Slice$Builder;", "GetAddLong_JLjava_lang_String_Ljava_util_List_Handler", ApiSince=28)>]
abstract member AddLong : int64 * string * System.Collections.Generic.IList<string> -> Android.App.Slices.Slice.Builder
override this.AddLong : int64 * string * System.Collections.Generic.IList<string> -> Android.App.Slices.Slice.Builder

Parameters

value
Int64

The 64-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

hints
IList<String>

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 a long to the slice being constructed

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

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