public static class

WearableNotifications.Action.Builder

extends Object
java.lang.Object
   ↳ android.preview.support.wearable.notifications.WearableNotifications.Action.Builder

Class Overview

Builder class for WearableNotifications.Action objects.

Example:

 WearableNotifications.Builder builder = new WearableNotifications.Builder(mContext)
         .addAction(new WearableNotifications.Action.Builder(
                 R.drawable.navigate, "Navigate", pendingIntent)
                 .build());
 Notification notif = builder.build();

Summary

Public Constructors
WearableNotifications.Action.Builder(int icon, CharSequence title, PendingIntent intent)
Construct a new builder for an WearableNotifications.Action object.
Public Methods
WearableNotifications.Action.Builder addRemoteInput(RemoteInput remoteInput)
Add an input to be collected from the user when this action is sent.
WearableNotifications.Action build()
Combine all of the options that have been set and return a new WearableNotifications.Action object.
Bundle getExtras()
Get the current metadata Bundle used by this Builder, creating a new one as necessary.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public WearableNotifications.Action.Builder (int icon, CharSequence title, PendingIntent intent)

Construct a new builder for an WearableNotifications.Action object.

Public Methods

public WearableNotifications.Action.Builder addRemoteInput (RemoteInput remoteInput)

Add an input to be collected from the user when this action is sent. Response values are sent as extras to this Action's pending intent when sent.

public WearableNotifications.Action build ()

Combine all of the options that have been set and return a new WearableNotifications.Action object.

public Bundle getExtras ()

Get the current metadata Bundle used by this Builder, creating a new one as necessary.

The returned Bundle is shared with this Builder.