Get a hint that this notification's Notification.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.

Set a hint that this notification's Notification.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.

Causes the current thread to wait until another thread invokes the
notify() method or the
notifyAll() method for this object, or
some other thread interrupts the current thread, or a certain
amount of real time has elapsed.

Public methods

addAction

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 Notification.Builder.addAction(Notification.Action). This allows for customization
of which actions display on different devices.

addActions

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 Notification.Builder.addAction(Notification.Action). This allows for customization
of which actions display on different devices.

addPage

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.

addPages

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.

clone

Creates and returns a copy of this object. The precise meaning
of "copy" may depend on the class of the object. The general
intent is that, for any object x, the expression:

x.clone() != x

will be true, and that the expression:

x.clone().getClass() == x.getClass()

will be true, but these are not absolute requirements.
While it is typically the case that:

x.clone().equals(x)

will be true, this is not an absolute requirement.

By convention, the returned object should be obtained by calling
super.clone. If a class and all of its superclasses (except
Object) obey this convention, it will be the case that
x.clone().getClass() == x.getClass().

By convention, the object returned by this method should be independent
of this object (which is being cloned). To achieve this independence,
it may be necessary to modify one or more fields of the object returned
by super.clone before returning it. Typically, this means
copying any mutable objects that comprise the internal "deep structure"
of the object being cloned and replacing the references to these
objects with references to the copies. If a class contains only
primitive fields or references to immutable objects, then it is usually
the case that no fields in the object returned by super.clone
need to be modified.

The method clone for class Object performs a
specific cloning operation. First, if the class of this object does
not implement the interface Cloneable, then a
CloneNotSupportedException is thrown. Note that all arrays
are considered to implement the interface Cloneable and that
the return type of the clone method of an array type T[]
is T[] where T is any reference or primitive type.
Otherwise, this method creates a new instance of the class of this
object and initializes all its fields with exactly the contents of
the corresponding fields of this object, as if by assignment; the
contents of the fields are not themselves cloned. Thus, this method
performs a "shallow copy" of this object, not a "deep copy" operation.

The class Object does not itself implement the interface
Cloneable, so calling the clone method on an object
whose class is Object will result in throwing an
exception at run time.

getContentAction

Get the index of the notification action, if any, that was specified as being clickable
with the content of this notification. This action will no longer display separately
from the notification's content.

For notifications with multiple pages, child pages can also have content actions
set, although the list of available actions comes from the main notification and not
from the child page's notification.

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.

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.

getHintAmbientBigPicture

Get a hint that this notification's Notification.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

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.

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(Notification).

Returns

boolean

getPages

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.

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).

setBridgeTag

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.

setContentAction

Set an action from this notification's actions to be clickable with the content of
this notification. This action will no longer display separately from the
notification's content.

For notifications with multiple pages, child pages can also have content actions
set, although the list of available actions comes from the main notification and not
from the child page's notification.

Parameters

actionIndex

int: The index of the action to hoist onto the current notification page.
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.

setContentIntentAvailableOffline

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.

setDismissalId

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.

setHintAmbientBigPicture

Set a hint that this notification's Notification.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.

setHintAvoidBackgroundClipping

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.

setHintShowBackgroundOnly

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(Notification).

setStartScrollBottom

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).