NotificationCompat.WearableExtender

Added in 1.1.0

public final class NotificationCompat.WearableExtender implements NotificationCompat.Extender


Helper class to add wearable extensions to notifications.

See Creating Notifications for Android Wear for more information on how to use this class.

To create a notification with wearable extensions:

  1. Create a NotificationCompat.Builder, setting any desired properties.
  2. Create a NotificationCompat.WearableExtender.
  3. Set wearable-specific properties using the add and set methods of NotificationCompat.WearableExtender.
  4. Call extend to apply the extensions to a notification.
  5. Post the notification to the notification system with the NotificationManagerCompat.notify(...) methods and not the NotificationManager.notify(...) methods.
Notification notification = new NotificationCompat.Builder(mContext)
        .setContentTitle("New mail from " + sender.toString())
        .setContentText(subject)
        .setSmallIcon(R.drawable.new_mail)
        .extend(new NotificationCompat.WearableExtender()
                .setContentIcon(R.drawable.new_mail))
        .build();
NotificationManagerCompat.from(mContext).notify(0, notification);

Wearable extensions can be accessed on an existing notification by using the WearableExtender(Notification) constructor, and then using the get methods to access values.

NotificationCompat.WearableExtender wearableExtender =
        new NotificationCompat.WearableExtender(notification);
List<Notification> pages = wearableExtender.getPages();

Summary

Constants

static final int

This field is deprecated.

This feature is no longer supported.

static final int

This field is deprecated.

This feature is no longer supported.

static final int

This field is deprecated.

Display intents are no longer supported.

static final int

This field is deprecated.

Display intents are no longer supported.

static final int

This field is deprecated.

Display intents are no longer supported.

static final int

This field is deprecated.

Display intents are no longer supported.

static final int

This field is deprecated.

Display intents are no longer supported.

static final int

This field is deprecated.

Display intents are no longer supported.

static final int

Sentinel value for an action index that is unset.

Public constructors

Create a NotificationCompat.WearableExtender with default options.

Public methods

@NonNull NotificationCompat.WearableExtender

Add a wearable action to this notification.

@NonNull NotificationCompat.WearableExtender

Adds wearable actions to this notification.

@NonNull NotificationCompat.WearableExtender

This method is deprecated.

Multiple content pages are no longer supported.

@NonNull NotificationCompat.WearableExtender

This method is deprecated.

Multiple content pages are no longer supported.

@NonNull NotificationCompat.WearableExtender

Clear all wearable actions present on this builder.

@NonNull NotificationCompat.WearableExtender

This method is deprecated.

Multiple content pages are no longer supported.

@NonNull NotificationCompat.WearableExtender
@NonNull NotificationCompat.Builder

Apply wearable extensions to a notification that is being built.

@NonNull List<NotificationCompat.Action>

Get the wearable actions present on this notification.

@Nullable Bitmap

This method is deprecated.

Background images are no longer supported.

@Nullable String

Returns the bridge tag of the notification.

int

Get the index of the notification action, if any, that was specified as the primary action.

int

This method is deprecated.

This method has no effect starting with Wear 2.0.

int

This method is deprecated.

This method has no effect starting with Wear 2.0.

boolean

Get whether the content intent is available when the wearable device is not connected to a companion device.

int

This method is deprecated.

This method has no effect starting with Wear 2.0.

int

This method is deprecated.

This method has no effect starting with Wear 2.0.

@Nullable String

Returns the dismissal id of the notification.

@Nullable PendingIntent

This method is deprecated.

Display intents are no longer supported.

int

This method is deprecated.

This method has no effect starting with Wear 2.0.

boolean

This method is deprecated.

This feature is no longer supported.

boolean

This method is deprecated.

This method has no effect starting with Wear 2.0.

boolean

Get a hint that this notification's content intent will launch an Activity directly, telling the platform that it can generate the appropriate transitions

boolean

This method is deprecated.

This method has no effect starting with Wear 2.0.

int

This method is deprecated.

This method has no effect starting with Wear 2.0.

boolean

This method is deprecated.

This method has no effect starting with Wear 2.0.

@NonNull List<Notification>

This method is deprecated.

Multiple content pages are no longer supported.

boolean

Get whether the scrolling position for the contents of this notification should start at the bottom of the contents instead of the top when the contents are too long to display within the screen.

@NonNull NotificationCompat.WearableExtender

This method is deprecated.

Background images are no longer supported.

@NonNull NotificationCompat.WearableExtender

Sets a bridge tag for this notification.

@NonNull NotificationCompat.WearableExtender
setContentAction(int actionIndex)

Set an action from this notification's actions as the primary action.

@NonNull NotificationCompat.WearableExtender
setContentIcon(int icon)

This method is deprecated.

This method has no effect starting with Wear 2.0.

@NonNull NotificationCompat.WearableExtender
setContentIconGravity(int contentIconGravity)

This method is deprecated.

This method has no effect starting with Wear 2.0.

@NonNull NotificationCompat.WearableExtender
setContentIntentAvailableOffline(
    boolean contentIntentAvailableOffline
)

Set whether the content intent is available when the wearable device is not connected to a companion device.

@NonNull NotificationCompat.WearableExtender

This method is deprecated.

This method has no effect starting with Wear 2.0.

@NonNull NotificationCompat.WearableExtender
setCustomSizePreset(int sizePreset)

This method is deprecated.

This method has no effect starting with Wear 2.0.

@NonNull NotificationCompat.WearableExtender

Sets the dismissal id for this notification.

@NonNull NotificationCompat.WearableExtender

This method is deprecated.

Display intents are no longer supported.

@NonNull NotificationCompat.WearableExtender
setGravity(int gravity)

This method is deprecated.

This method has no effect starting with Wear 2.0.

@NonNull NotificationCompat.WearableExtender
setHintAmbientBigPicture(boolean hintAmbientBigPicture)

This method is deprecated.

This feature is no longer supported.

@NonNull NotificationCompat.WearableExtender
setHintAvoidBackgroundClipping(boolean hintAvoidBackgroundClipping)

This method is deprecated.

This method has no effect starting with Wear 2.0.

@NonNull NotificationCompat.WearableExtender
setHintContentIntentLaunchesActivity(
    boolean hintContentIntentLaunchesActivity
)

Set a hint that this notification's content intent will launch an Activity directly, telling the platform that it can generate the appropriate transitions.

@NonNull NotificationCompat.WearableExtender
setHintHideIcon(boolean hintHideIcon)

This method is deprecated.

This method has no effect starting with Wear 2.0.

@NonNull NotificationCompat.WearableExtender
setHintScreenTimeout(int timeout)

This method is deprecated.

This method has no effect.

@NonNull NotificationCompat.WearableExtender
setHintShowBackgroundOnly(boolean hintShowBackgroundOnly)

This method is deprecated.

This method has no effect starting with Wear 2.0.

@NonNull NotificationCompat.WearableExtender
setStartScrollBottom(boolean startScrollBottom)

Set whether the scrolling position for the contents of this notification should start at the bottom of the contents instead of the top when the contents are too long to display within the screen.

Constants

SCREEN_TIMEOUT_LONG

Added in 1.1.0
Deprecated in 1.1.0
public static final int SCREEN_TIMEOUT_LONG = -1

Sentinel value for use with setHintScreenTimeout to keep the screen on for a longer amount of time when this notification is displayed on the screen.

SCREEN_TIMEOUT_SHORT

Added in 1.1.0
Deprecated in 1.1.0
public static final int SCREEN_TIMEOUT_SHORT = 0

Sentinel value for use with setHintScreenTimeout to keep the screen on for a short amount of time when this notification is displayed on the screen. This is the default value.

SIZE_DEFAULT

Added in 1.1.0
Deprecated in 1.1.0
public static final int SIZE_DEFAULT = 0

Size value for use with setCustomSizePreset to show this notification with default sizing.

For custom display notifications created using setDisplayIntent, the default is SIZE_MEDIUM. All other notifications size automatically based on their content.

SIZE_FULL_SCREEN

Added in 1.1.0
Deprecated in 1.1.0
public static final int SIZE_FULL_SCREEN = 5

Size value for use with setCustomSizePreset to show this notification full screen.

This value is only applicable for custom display notifications created using setDisplayIntent.

SIZE_LARGE

Added in 1.1.0
Deprecated in 1.1.0
public static final int SIZE_LARGE = 4

Size value for use with setCustomSizePreset to show this notification with a large size.

This value is only applicable for custom display notifications created using setDisplayIntent.

SIZE_MEDIUM

Added in 1.1.0
Deprecated in 1.1.0
public static final int SIZE_MEDIUM = 3

Size value for use with setCustomSizePreset to show this notification with a medium size.

This value is only applicable for custom display notifications created using setDisplayIntent.

SIZE_SMALL

Added in 1.1.0
Deprecated in 1.1.0
public static final int SIZE_SMALL = 2

Size value for use with setCustomSizePreset to show this notification with a small size.

This value is only applicable for custom display notifications created using setDisplayIntent.

SIZE_XSMALL

Added in 1.1.0
Deprecated in 1.1.0
public static final int SIZE_XSMALL = 1

Size value for use with setCustomSizePreset to show this notification with an extra small size.

This value is only applicable for custom display notifications created using setDisplayIntent.

UNSET_ACTION_INDEX

Added in 1.1.0
public static final int UNSET_ACTION_INDEX = -1

Sentinel value for an action index that is unset.

Public constructors

WearableExtender

Added in 1.1.0
public WearableExtender()

Create a NotificationCompat.WearableExtender with default options.

WearableExtender

Added in 1.1.0
public WearableExtender(@NonNull Notification notification)

Public methods

addAction

Added in 1.1.0
public @NonNull NotificationCompat.WearableExtender addAction(@NonNull NotificationCompat.Action action)

Add a wearable action to this notification.

When wearable actions are added using this method, the set of actions that show on a wearable device splits from devices that only show actions added using addAction. This allows for customization of which actions display on different devices.

Parameters
@NonNull NotificationCompat.Action action

the action to add to this notification

Returns
@NonNull NotificationCompat.WearableExtender

this object for method chaining

addActions

Added in 1.1.0
public @NonNull NotificationCompat.WearableExtender addActions(@NonNull List<NotificationCompat.Action> actions)

Adds wearable actions to this notification.

When wearable actions are added using this method, the set of actions that show on a wearable device splits from devices that only show actions added using addAction. This allows for customization of which actions display on different devices.

Parameters
@NonNull List<NotificationCompat.Action> actions

the actions to add to this notification

Returns
@NonNull NotificationCompat.WearableExtender

this object for method chaining

addPage

Added in 1.1.0
Deprecated in 1.1.0
public @NonNull NotificationCompat.WearableExtender addPage(@NonNull Notification page)

Add an additional page of content to display with this notification. The current notification forms the first page, and pages added using this function form subsequent pages. This field can be used to separate a notification into multiple sections.

Parameters
@NonNull Notification page

the notification to add as another page

Returns
@NonNull NotificationCompat.WearableExtender

this object for method chaining

See also
getPages

addPages

Added in 1.1.0
Deprecated in 1.1.0
public @NonNull NotificationCompat.WearableExtender addPages(@NonNull List<Notification> pages)

Add additional pages of content to display with this notification. The current notification forms the first page, and pages added using this function form subsequent pages. This field can be used to separate a notification into multiple sections.

Parameters
@NonNull List<Notification> pages

a list of notifications

Returns
@NonNull NotificationCompat.WearableExtender

this object for method chaining

See also
getPages

clearActions

Added in 1.1.0
public @NonNull NotificationCompat.WearableExtender clearActions()

Clear all wearable actions present on this builder.

Returns
@NonNull NotificationCompat.WearableExtender

this object for method chaining.

See also
addAction

clearPages

Added in 1.1.0
Deprecated in 1.1.0
public @NonNull NotificationCompat.WearableExtender clearPages()

Clear all additional pages present on this builder.

Returns
@NonNull NotificationCompat.WearableExtender

this object for method chaining.

See also
addPage

extend

public @NonNull NotificationCompat.Builder extend(@NonNull NotificationCompat.Builder builder)

Apply wearable extensions to a notification that is being built. This is typically called by the extend method of NotificationCompat.Builder.

getActions

Added in 1.1.0
public @NonNull List<NotificationCompat.ActiongetActions()

Get the wearable actions present on this notification.

getBackground

Added in 1.1.0
Deprecated in 1.1.0
public @Nullable Bitmap getBackground()

Get a background image to be displayed behind the notification content. Contrary to the NotificationCompat.BigPictureStyle, this background will work with any notification style.

Returns
@Nullable Bitmap

the background image

See also
setBackground

getBridgeTag

Added in 1.1.0
public @Nullable String getBridgeTag()

Returns the bridge tag of the notification.

Returns
@Nullable String

the bridge tag or null if not present.

getContentAction

Added in 1.1.0
public int getContentAction()

Get the index of the notification action, if any, that was specified as the primary action.

If wearable specific actions were added to the main notification, this index will apply to that list, otherwise it will apply to the regular actions list.

Returns
int

the action index or UNSET_ACTION_INDEX if no action was selected.

getContentIcon

Added in 1.1.0
Deprecated in 1.1.0
public int getContentIcon()

Get an icon that goes with the content of this notification.

getContentIconGravity

Added in 1.1.0
Deprecated in 1.1.0
public int getContentIconGravity()

Get the gravity that the content icon should have within the notification display. Supported values include START and END. The default value is END.

See also
getContentIcon

getContentIntentAvailableOffline

Added in 1.1.0
public boolean getContentIntentAvailableOffline()

Get whether the content intent is available when the wearable device is not connected to a companion device. The user can still trigger this intent when the wearable device is offline, but a visual hint will indicate that the content intent may not be available. Defaults to true.

getCustomContentHeight

Added in 1.1.0
Deprecated in 1.1.0
public int getCustomContentHeight()

Get the custom height in pixels for the display of this notification's content.

This option is only available for custom display notifications created using setDisplayIntent. See also setCustomSizePreset and setCustomContentHeight.

getCustomSizePreset

Added in 1.1.0
Deprecated in 1.1.0
public int getCustomSizePreset()

Get the custom size preset for the display of this notification out of the available presets found in NotificationCompat.WearableExtender, e.g. SIZE_LARGE.

Some custom size presets are only applicable for custom display notifications created using setDisplayIntent. Check the documentation for the preset in question. See also setCustomContentHeight and setCustomSizePreset.

getDismissalId

Added in 1.1.0
public @Nullable String getDismissalId()

Returns the dismissal id of the notification.

Returns
@Nullable String

the dismissal id of the notification or null if it has not been set.

getDisplayIntent

Added in 1.1.0
Deprecated in 1.1.0
public @Nullable PendingIntent getDisplayIntent()

Get the intent to launch inside of an activity view when displaying this notification. This PendingIntent should be for an activity.

getGravity

Added in 1.1.0
Deprecated in 1.1.0
public int getGravity()

Get the gravity that this notification should have within the available viewport space. Supported values include TOP, CENTER_VERTICAL and BOTTOM. The default value is BOTTOM.

getHintAmbientBigPicture

Added in 1.1.0
Deprecated in 1.1.0
public boolean getHintAmbientBigPicture()

Get a hint that this notification's BigPictureStyle (if present) should be converted to low-bit and displayed in ambient mode, especially useful for barcodes and qr codes, as well as other simple black-and-white tickets.

Returns
boolean

true if it should be displayed in ambient, false otherwise otherwise. The default value is false if this was never set.

getHintAvoidBackgroundClipping

Added in 1.1.0
Deprecated in 1.1.0
public boolean getHintAvoidBackgroundClipping()

Get a hint that this notification's background should not be clipped if possible, and should instead be resized to fully display on the screen, retaining the aspect ratio of the image. This can be useful for images like barcodes or qr codes.

Returns
boolean

true if it's ok if the background is clipped on the screen, false otherwise. The default value is false if this was never set.

getHintContentIntentLaunchesActivity

Added in 1.1.0
public boolean getHintContentIntentLaunchesActivity()

Get a hint that this notification's content intent will launch an Activity directly, telling the platform that it can generate the appropriate transitions

Returns
boolean

true if the content intent will launch an activity and transitions should be generated, false otherwise. The default value is false if this was never set.

getHintHideIcon

Added in 1.1.0
Deprecated in 1.1.0
public boolean getHintHideIcon()

Get a hint that this notification's icon should not be displayed.

Returns
boolean

true if this icon should not be displayed, false otherwise. The default value is false if this was never set.

getHintScreenTimeout

Added in 1.1.0
Deprecated in 1.1.0
public int getHintScreenTimeout()

Get the duration, in milliseconds, that the screen should remain on for when this notification is displayed.

Returns
int

the duration in milliseconds if >0, or either one of the sentinel values SCREEN_TIMEOUT_SHORT or SCREEN_TIMEOUT_LONG.

getHintShowBackgroundOnly

Added in 1.1.0
Deprecated in 1.1.0
public boolean getHintShowBackgroundOnly()

Get a visual hint that only the background image of this notification should be displayed, and other semantic content should be hidden. This hint is only applicable to sub-pages added using addPage.

getPages

Added in 1.1.0
Deprecated in 1.1.0
public @NonNull List<NotificationgetPages()

Get the array of additional pages of content for displaying this notification. The current notification forms the first page, and elements within this array form subsequent pages. This field can be used to separate a notification into multiple sections.

Returns
@NonNull List<Notification>

the pages for this notification

getStartScrollBottom

Added in 1.1.0
public boolean getStartScrollBottom()

Get whether the scrolling position for the contents of this notification should start at the bottom of the contents instead of the top when the contents are too long to display within the screen. Default is false (start scroll at the top).

setBackground

Added in 1.1.0
Deprecated in 1.1.0
public @NonNull NotificationCompat.WearableExtender setBackground(@Nullable Bitmap background)

Set a background image to be displayed behind the notification content. Contrary to the NotificationCompat.BigPictureStyle, this background will work with any notification style.

Parameters
@Nullable Bitmap background

the background bitmap

Returns
@NonNull NotificationCompat.WearableExtender

this object for method chaining

See also
getBackground

setBridgeTag

Added in 1.1.0
public @NonNull NotificationCompat.WearableExtender setBridgeTag(@Nullable String bridgeTag)

Sets a bridge tag for this notification. A bridge tag can be set for notifications posted from a phone to provide finer-grained control on what notifications are bridged to wearables. See Adding Wearable Features to Notifications for more information.

Parameters
@Nullable String bridgeTag

the bridge tag of the notification.

Returns
@NonNull NotificationCompat.WearableExtender

this object for method chaining

setContentAction

Added in 1.1.0
public @NonNull NotificationCompat.WearableExtender setContentAction(int actionIndex)

Set an action from this notification's actions as the primary action. If the action has a RemoteInput associated with it, shortcuts to the options for that input are shown directly on the notification.

Parameters
int actionIndex

The index of the primary action. If wearable actions were added to the main notification, this index will apply to that list, otherwise it will apply to the regular actions list.

setContentIcon

Added in 1.1.0
Deprecated in 1.1.0
public @NonNull NotificationCompat.WearableExtender setContentIcon(int icon)

Set an icon that goes with the content of this notification.

setContentIconGravity

Added in 1.1.0
Deprecated in 1.1.0
public @NonNull NotificationCompat.WearableExtender setContentIconGravity(int contentIconGravity)

Set the gravity that the content icon should have within the notification display. Supported values include START and END. The default value is END.

See also
setContentIcon

setContentIntentAvailableOffline

Added in 1.1.0
public @NonNull NotificationCompat.WearableExtender setContentIntentAvailableOffline(
    boolean contentIntentAvailableOffline
)

Set whether the content intent is available when the wearable device is not connected to a companion device. The user can still trigger this intent when the wearable device is offline, but a visual hint will indicate that the content intent may not be available. Defaults to true.

setCustomContentHeight

Added in 1.1.0
Deprecated in 1.1.0
public @NonNull NotificationCompat.WearableExtender setCustomContentHeight(int height)

Set the custom height in pixels for the display of this notification's content.

This option is only available for custom display notifications created using setDisplayIntent. See also setCustomSizePreset and getCustomContentHeight.

setCustomSizePreset

Added in 1.1.0
Deprecated in 1.1.0
public @NonNull NotificationCompat.WearableExtender setCustomSizePreset(int sizePreset)

Set the custom size preset for the display of this notification out of the available presets found in NotificationCompat.WearableExtender, e.g. SIZE_LARGE.

Some custom size presets are only applicable for custom display notifications created using setDisplayIntent. Check the documentation for the preset in question. See also setCustomContentHeight and getCustomSizePreset.

setDismissalId

Added in 1.1.0
public @NonNull NotificationCompat.WearableExtender setDismissalId(@Nullable String dismissalId)

Sets the dismissal id for this notification. If a notification is posted with a dismissal id, then when that notification is canceled, notifications on other wearables and the paired Android phone having that same dismissal id will also be canceled. See Adding Wearable Features to Notifications for more information.

Parameters
@Nullable String dismissalId

the dismissal id of the notification.

Returns
@NonNull NotificationCompat.WearableExtender

this object for method chaining

setDisplayIntent

Added in 1.1.0
Deprecated in 1.1.0
public @NonNull NotificationCompat.WearableExtender setDisplayIntent(@Nullable PendingIntent intent)

Set an intent to launch inside of an activity view when displaying this notification. The PendingIntent provided should be for an activity.

Intent displayIntent = new Intent(context, MyDisplayActivity.class);
PendingIntent displayPendingIntent = PendingIntent.getActivity(context,
        0, displayIntent, PendingIntent.FLAG_UPDATE_CURRENT);
Notification notification = new NotificationCompat.Builder(context)
        .extend(new NotificationCompat.WearableExtender()
                .setDisplayIntent(displayPendingIntent)
                .setCustomSizePreset(NotificationCompat.WearableExtender.SIZE_MEDIUM))
.build();

The activity to launch needs to allow embedding, must be exported, and should have an empty task affinity. It is also recommended to use the device default light theme.

Example AndroidManifest.xml entry:

<activity android:name="com.example.MyDisplayActivity"
    android:exported="true"
    android:allowEmbedded="true"
    android:taskAffinity=""
android:theme="@android:style/Theme.DeviceDefault.Light" />
Parameters
@Nullable PendingIntent intent

the PendingIntent for an activity

Returns
@NonNull NotificationCompat.WearableExtender

this object for method chaining

See also
getDisplayIntent

setGravity

Added in 1.1.0
Deprecated in 1.1.0
public @NonNull NotificationCompat.WearableExtender setGravity(int gravity)

Set the gravity that this notification should have within the available viewport space. Supported values include TOP, CENTER_VERTICAL and BOTTOM. The default value is BOTTOM.

setHintAmbientBigPicture

Added in 1.1.0
Deprecated in 1.1.0
public @NonNull NotificationCompat.WearableExtender setHintAmbientBigPicture(boolean hintAmbientBigPicture)

Set a hint that this notification's BigPictureStyle (if present) should be converted to low-bit and displayed in ambient mode, especially useful for barcodes and qr codes, as well as other simple black-and-white tickets.

Parameters
boolean hintAmbientBigPicture

true to enable converstion and ambient.

Returns
@NonNull NotificationCompat.WearableExtender

this object for method chaining

setHintAvoidBackgroundClipping

Added in 1.1.0
Deprecated in 1.1.0
public @NonNull NotificationCompat.WearableExtender setHintAvoidBackgroundClipping(boolean hintAvoidBackgroundClipping)

Set a hint that this notification's background should not be clipped if possible, and should instead be resized to fully display on the screen, retaining the aspect ratio of the image. This can be useful for images like barcodes or qr codes.

Parameters
boolean hintAvoidBackgroundClipping

true to avoid clipping if possible.

Returns
@NonNull NotificationCompat.WearableExtender

this object for method chaining

setHintContentIntentLaunchesActivity

Added in 1.1.0
public @NonNull NotificationCompat.WearableExtender setHintContentIntentLaunchesActivity(
    boolean hintContentIntentLaunchesActivity
)

Set a hint that this notification's content intent will launch an Activity directly, telling the platform that it can generate the appropriate transitions.

Parameters
boolean hintContentIntentLaunchesActivity

true if the content intent will launch an activity and transitions should be generated, false otherwise.

Returns
@NonNull NotificationCompat.WearableExtender

this object for method chaining

setHintHideIcon

Added in 1.1.0
Deprecated in 1.1.0
public @NonNull NotificationCompat.WearableExtender setHintHideIcon(boolean hintHideIcon)

Set a hint that this notification's icon should not be displayed.

Parameters
boolean hintHideIcon

true to hide the icon, false otherwise.

Returns
@NonNull NotificationCompat.WearableExtender

this object for method chaining

setHintScreenTimeout

Added in 1.1.0
Deprecated in 1.1.0
public @NonNull NotificationCompat.WearableExtender setHintScreenTimeout(int timeout)

Set a hint that the screen should remain on for at least this duration when this notification is displayed on the screen.

Parameters
int timeout

The requested screen timeout in milliseconds. Can also be either SCREEN_TIMEOUT_SHORT or SCREEN_TIMEOUT_LONG.

Returns
@NonNull NotificationCompat.WearableExtender

this object for method chaining

setHintShowBackgroundOnly

Added in 1.1.0
Deprecated in 1.1.0
public @NonNull NotificationCompat.WearableExtender setHintShowBackgroundOnly(boolean hintShowBackgroundOnly)

Set a visual hint that only the background image of this notification should be displayed, and other semantic content should be hidden. This hint is only applicable to sub-pages added using addPage.

setStartScrollBottom

Added in 1.1.0
public @NonNull NotificationCompat.WearableExtender setStartScrollBottom(boolean startScrollBottom)

Set whether the scrolling position for the contents of this notification should start at the bottom of the contents instead of the top when the contents are too long to display within the screen. Default is false (start scroll at the top).