ContentDescriptionLabel
public final class ContentDescriptionLabel
Describes regions of the watch face for use by a screen reader.
Summary
Public constructors |
|---|
ContentDescriptionLabel( |
Public methods |
|
|---|---|
boolean |
|
final @NonNull Rect |
|
final PendingIntent |
|
final @NonNull ComplicationText |
getText()
|
final @NonNull CharSequence |
Returns the text that should be displayed for the given timestamp. |
int |
hashCode() |
Public constructors
ContentDescriptionLabel
public ContentDescriptionLabel(
@NonNull ComplicationText text,
@NonNull Rect bounds,
PendingIntent tapAction
)
| Parameters | |
|---|---|
@NonNull ComplicationText text |
|
@NonNull Rect bounds |
|
PendingIntent tapAction |
|
Public methods
getBounds
public final @NonNull Rect getBounds()
Rect describing the area of the feature on screen.
getTapAction
public final PendingIntent getTapAction()
PendingIntent to be used if the screen reader's user triggers a tap action.
getText
public final @NonNull ComplicationText getText()
ComplicationText associated with the region, to be read by the screen reader.