java.lang.Object | |
↳ | com.urbanairship.iam.TextInfo |
Text display info.
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
@interface | TextInfo.Alignment | ||||||||||
class | TextInfo.Builder | Text info builder. | |||||||||
@interface | TextInfo.Style |
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
String | ALIGNMENT_CENTER | Center text alignment. | |||||||||
String | ALIGNMENT_LEFT | Left text alignment. | |||||||||
String | ALIGNMENT_RIGHT | Right text alignment. | |||||||||
String | STYLE_BOLD | Bold text style. | |||||||||
String | STYLE_ITALIC | Italic text style. | |||||||||
String | STYLE_UNDERLINE | Underline text style. |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
boolean | equals(Object o) | ||||||||||
static TextInfo | fromJson(JsonValue value) | ||||||||||
String |
getAlignment()
Returns the text alignment.
| ||||||||||
Integer |
getColor()
Returns the font color.
| ||||||||||
int |
getDrawable(Context context)
Returns the button icon.
| ||||||||||
List<String> |
getFontFamilies()
List of font families.
| ||||||||||
Float |
getFontSize()
Returns the font size.
| ||||||||||
List<String> |
getStyles()
Returns a list of text styles.
| ||||||||||
String |
getText()
Returns the text.
| ||||||||||
int | hashCode() | ||||||||||
static TextInfo.Builder |
newBuilder()
Builder factory method.
| ||||||||||
static TextInfo.Builder |
newBuilder(TextInfo textInfo)
Creates a builder from existing text info.
| ||||||||||
JsonValue |
toJsonValue()
Returns the objects represented as a JsonValue.
| ||||||||||
String | toString() |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
com.urbanairship.json.JsonSerializable
|
value | The json value. |
---|
JsonException | If the text info was unable to be parsed. |
---|
Returns the button icon.
context | The application context |
---|
Creates a builder from existing text info.
textInfo | The text info. |
---|
Returns the objects represented as a JsonValue.