public static class Wearable.Builder
extends java.lang.Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
Wearable.Builder |
addAllExtraPages(java.util.List<<any>> extraPages)
Add multiple extra pages to the extraPage list.
|
Wearable.Builder |
addExtraPage(java.lang.String title,
java.lang.String alert)
Add an extra page to the wearable body.
|
Wearable |
build()
Build the Wearable object.
|
Wearable.Builder |
setBackgroundImage(java.lang.String value)
Set the background image URL.
|
Wearable.Builder |
setInteractive(Interactive value)
Set the interactive payload.
|
public Wearable.Builder setBackgroundImage(java.lang.String value)
value
- A string specifying the URL.public Wearable.Builder setInteractive(Interactive value)
value
- An Interactive object.public Wearable.Builder addExtraPage(java.lang.String title, java.lang.String alert)
title
- String representing the page title.alert
- String representing the page alert.public Wearable.Builder addAllExtraPages(java.util.List<<any>> extraPages)
extraPages
- An ImmutableMap of strings.public Wearable build()
1. At least one of backgroundImage, interactive, or extraPages must not be null.