public static class

WearableNotifications.Action

extends NotificationCompat.Action
java.lang.Object
   ↳ android.support.v4.app.NotificationCompat.Action
     ↳ android.preview.support.wearable.notifications.WearableNotifications.Action

Class Overview

Subclass of NotificationCompat.Action that adds additional wearable extensions for actions.

Always use the WearableNotifications.Action.Builder to build instances of this class and call addAction(WearableNotifications.Action) to add the action to a notification.

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

Summary

Nested Classes
class WearableNotifications.Action.Builder Builder class for WearableNotifications.Action objects. 
Fields
public final Bundle extras
[Expand]
Inherited Fields
From class android.support.v4.app.NotificationCompat.Action
Public Methods
RemoteInput[] getRemoteInputs()
Get a list of inputs to be collected from the user when this action is sent.
[Expand]
Inherited Methods
From class java.lang.Object

Fields

public final Bundle extras

Public Methods

public RemoteInput[] getRemoteInputs ()

Get a list of inputs to be collected from the user when this action is sent.

Returns
  • the array of RemoteInput objects associated with this action