Slice.Builder.AddAction(PendingIntent, Slice, 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 action to the slice being constructed
[Android.Runtime.Register("addAction", "(Landroid/app/PendingIntent;Landroid/app/slice/Slice;Ljava/lang/String;)Landroid/app/slice/Slice$Builder;", "GetAddAction_Landroid_app_PendingIntent_Landroid_app_slice_Slice_Ljava_lang_String_Handler", ApiSince=28)]
public virtual Android.App.Slices.Slice.Builder? AddAction(Android.App.PendingIntent action, Android.App.Slices.Slice s, string? subType);
[<Android.Runtime.Register("addAction", "(Landroid/app/PendingIntent;Landroid/app/slice/Slice;Ljava/lang/String;)Landroid/app/slice/Slice$Builder;", "GetAddAction_Landroid_app_PendingIntent_Landroid_app_slice_Slice_Ljava_lang_String_Handler", ApiSince=28)>]
abstract member AddAction : Android.App.PendingIntent * Android.App.Slices.Slice * string -> Android.App.Slices.Slice.Builder
override this.AddAction : Android.App.PendingIntent * Android.App.Slices.Slice * string -> Android.App.Slices.Slice.Builder
Parameters
- action
- PendingIntent
The pending intent for the action. Must not be null.
- s
- Slice
The slice that the action applies to. Its hints are used for the action item, and its specification is cleared. 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 an action to the slice being constructed
Android reference for android.app.slice.Slice.Builder.addAction.
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.