public class MessageButton extends java.lang.Object implements IPutIntoJson<org.json.JSONObject>, IInAppMessageThemeable
Constructor and Description |
---|
MessageButton() |
MessageButton(org.json.JSONObject object) |
MessageButton(org.json.JSONObject object,
org.json.JSONObject darkThemeObject) |
Modifier and Type | Method and Description |
---|---|
void |
enableDarkTheme()
Instructs the
IInAppMessage to apply any dark theme settings
and override any existing values present on the IInAppMessage . |
org.json.JSONObject |
forJsonPut() |
int |
getBackgroundColor() |
int |
getBorderColor() |
ClickAction |
getClickAction() |
int |
getId() |
boolean |
getOpenUriInWebview() |
java.lang.String |
getText() |
int |
getTextColor() |
android.net.Uri |
getUri() |
void |
setBackgroundColor(int backgroundColor) |
void |
setBorderColor(int color) |
boolean |
setClickAction(ClickAction clickAction) |
boolean |
setClickAction(ClickAction clickAction,
android.net.Uri uri) |
void |
setOpenUriInWebview(boolean openUriInWebview) |
void |
setText(java.lang.String text) |
void |
setTextColor(int textColor) |
public MessageButton()
public MessageButton(org.json.JSONObject object)
public MessageButton(org.json.JSONObject object, org.json.JSONObject darkThemeObject)
public void enableDarkTheme()
IInAppMessageThemeable
IInAppMessage
to apply any dark theme settings
and override any existing values present on the IInAppMessage
.enableDarkTheme
in interface IInAppMessageThemeable
public int getId()
public ClickAction getClickAction()
public android.net.Uri getUri()
public java.lang.String getText()
public int getBackgroundColor()
public int getTextColor()
public int getBorderColor()
public boolean getOpenUriInWebview()
public void setOpenUriInWebview(boolean openUriInWebview)
public boolean setClickAction(ClickAction clickAction)
public boolean setClickAction(ClickAction clickAction, android.net.Uri uri)
public void setBackgroundColor(int backgroundColor)
public void setTextColor(int textColor)
public void setText(java.lang.String text)
public void setBorderColor(int color)
public org.json.JSONObject forJsonPut()
forJsonPut
in interface IPutIntoJson<org.json.JSONObject>