| java.lang.Object | |
| ↳ | android.preview.support.wearable.notifications.WearableNotifications.Action.Builder |
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();
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Construct a new builder for an
WearableNotifications.Action object. | |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Add an input to be collected from the user when this action is sent.
| |||||||||||
Combine all of the options that have been set and return a new
WearableNotifications.Action
object. | |||||||||||
Get the current metadata Bundle used by this Builder, creating a new one
as necessary.
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
Construct a new builder for an WearableNotifications.Action object.
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.
Combine all of the options that have been set and return a new WearableNotifications.Action
object.
Get the current metadata Bundle used by this Builder, creating a new one as necessary.
The returned Bundle is shared with this Builder.