java.lang.Object | |
↳ | com.urbanairship.iam.ButtonInfo.Builder |
Button info builder class.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
ButtonInfo.Builder |
addAction(String actionName, JsonSerializable actionValue)
Adds a action to run when the button is clicked.
| ||||||||||
ButtonInfo |
build(Boolean enforceMaxIdLength)
Builds the button info.
| ||||||||||
ButtonInfo |
build()
Builds the button info.
| ||||||||||
ButtonInfo.Builder |
setActions(Map<String, JsonValue> actions)
Sets the actions to run when the button is clicked.
| ||||||||||
ButtonInfo.Builder |
setBackgroundColor(int backgroundColor)
Sets the button's background color.
| ||||||||||
ButtonInfo.Builder |
setBehavior(String behavior)
Sets the button behavior.
| ||||||||||
ButtonInfo.Builder |
setBorderColor(int borderColor)
Sets the button's border color.
| ||||||||||
ButtonInfo.Builder |
setBorderRadius(float borderRadius)
Sets the border radius in dps.
| ||||||||||
ButtonInfo.Builder |
setId(String id)
Sets the button's ID used for reporting events.
| ||||||||||
ButtonInfo.Builder |
setLabel(TextInfo label)
Sets the button's label text info.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Adds a action to run when the button is clicked.
actionName | The action name. |
---|---|
actionValue | The action value. |
Builds the button info.
enforceMaxIdLength | true to enforce the max ID length, otherwise false . |
---|
IllegalArgumentException | If the ButtonInfo fails to pass validation checks. |
---|
Builds the button info.
IllegalArgumentException | If the ButtonInfo fails to pass validation checks. |
---|
Sets the actions to run when the button is clicked.
actions | The button's actions. |
---|
Sets the button's background color. Defaults to transparent.
backgroundColor | The background color. |
---|
Sets the button behavior. Defaults to BEHAVIOR_DISMISS
.
behavior | The button's behavior. |
---|
Sets the button's border color. Defaults to transparent.
borderColor | The border color. |
---|
Sets the border radius in dps. Defaults to 0.
borderRadius | The border radius. |
---|
Sets the button's ID used for reporting events.
id | The button's ID. |
---|
Sets the button's label text info.
label | The button's label text info. |
---|