public final class UiCustomization
extends java.lang.Object
implements android.os.Parcelable
Created by Ran Haveshush on 24/08/2018.
| Modifier and Type | Class and Description |
|---|---|
static class |
UiCustomization.ButtonType
This enum represents the
ButtonCustomization button's type. |
| Modifier and Type | Field and Description |
|---|---|
static android.os.Parcelable.Creator<UiCustomization> |
CREATOR |
| Constructor and Description |
|---|
UiCustomization() |
| Modifier and Type | Method and Description |
|---|---|
int |
describeContents() |
ButtonCustomization |
getButtonCustomization(UiCustomization.ButtonType buttonType)
Returns a
ButtonCustomization instance for a specified button type UiCustomization.ButtonType. |
ExpandableInfoCustomization |
getExpandableInfoCustomization() |
LabelCustomization |
getLabelCustomization() |
ScreenCustomization |
getScreenCustomization() |
SelectionItemCustomization |
getSelectionItemCustomization() |
TextBoxCustomization |
getTextBoxCustomization() |
ToolbarCustomization |
getToolbarCustomization() |
void |
setBorderColor(java.lang.String hexColorCode)
This utility method sets the border color for all of the specific customizations.
|
void |
setButtonCustomization(ButtonCustomization buttonCustomization,
UiCustomization.ButtonType buttonType)
Sets the
ButtonCustomization for a specific UiCustomization.ButtonType.The 3DS SDK uses this object for customizing buttons. |
void |
setExpandableInfoCustomization(ExpandableInfoCustomization expandableInfoCustomization)
Sets the expandable infos customization.
The 3DS SDK uses this object for customizing expandable infos. |
void |
setHighlightedBackgroundColor(java.lang.String hexColorCode)
This utility method sets the highlighted background color for all of the specific customizations.
|
void |
setLabelCustomization(LabelCustomization labelCustomization)
The setLabelCustomization method shall accept a LabelCustomization object.
|
void |
setScreenBackgroundColor(java.lang.String hexColorCode)
This utility method sets the challenge
Activity's background color by setting the ScreenCustomization background color. |
void |
setScreenCustomization(ScreenCustomization screenCustomization)
Sets the screen customization.
The 3DS SDK uses this object for customizing the challenge Activity screen. |
void |
setSelectionItemCustomization(SelectionItemCustomization selectionItemCustomization)
Sets the selection items customization.
The 3DS SDK uses this object for customizing selection items. |
void |
setStatusBarColor(java.lang.String hexColorCode)
This utility method sets the status bar color by setting the
ScreenCustomization status bar color. |
void |
setTextBoxCustomization(TextBoxCustomization textBoxCustomization)
Sets the text boxes (
EditText) customization.The 3DS SDK uses this object for customizing text boxes ( EditText). |
void |
setTextColor(java.lang.String hexColorCode)
This utility method sets the text color for all of the specific customizations.
|
void |
setTintColor(java.lang.String hexColorCode)
This utility method sets the tint color for all of the specific customizations.
|
void |
setToolbarCustomization(ToolbarCustomization toolbarCustomization)
Sets the toolbar customization.
The 3DS SDK uses this object for customizing toolbars. |
void |
setToolbarTitle(java.lang.String title)
This utility method sets the toolbar title by setting the
ToolbarCustomization header text. |
void |
writeToParcel(android.os.Parcel dest,
int flags) |
public static final android.os.Parcelable.Creator<UiCustomization> CREATOR
public int describeContents()
describeContents in interface android.os.Parcelablepublic void writeToParcel(android.os.Parcel dest,
int flags)
writeToParcel in interface android.os.Parcelablepublic ButtonCustomization getButtonCustomization(UiCustomization.ButtonType buttonType) throws InvalidInputException
ButtonCustomization instance for a specified button type UiCustomization.ButtonType.buttonType - A UiCustomization.ButtonType that represents a specific button type to retrieve.ButtonCustomization for the specified UiCustomization.ButtonType.InvalidInputException - This exception shall be thrown if an input parameter is invalid.public void setButtonCustomization(ButtonCustomization buttonCustomization, UiCustomization.ButtonType buttonType) throws InvalidInputException
ButtonCustomization for a specific UiCustomization.ButtonType.buttonCustomization - A ButtonCustomization that represents button customization object.buttonType - A UiCustomization.ButtonType that represents button type.InvalidInputException - This exception shall be thrown if an input parameter is invalid.public ScreenCustomization getScreenCustomization()
ScreenCustomization that represents the screen customization object.public void setScreenCustomization(ScreenCustomization screenCustomization) throws InvalidInputException
Activity screen.screenCustomization - A ScreenCustomization that represents the screen customization object.InvalidInputException - This exception shall be thrown if an input parameter is invalid.public ToolbarCustomization getToolbarCustomization()
ToolbarCustomization that represents the toolbar customization object.public void setToolbarCustomization(ToolbarCustomization toolbarCustomization) throws InvalidInputException
toolbarCustomization - A ToolbarCustomization that represents the toolbar customization object.InvalidInputException - This exception shall be thrown if an input parameter is invalid.public LabelCustomization getLabelCustomization()
LabelCustomization that represents the label customization object.public void setLabelCustomization(LabelCustomization labelCustomization) throws InvalidInputException
labelCustomization - A LabelCustomization that represents the label customization object.InvalidInputException - This exception shall be thrown if an input parameter is invalid.public TextBoxCustomization getTextBoxCustomization()
TextBoxCustomization that represents the text box (EditText) customization object.public void setTextBoxCustomization(TextBoxCustomization textBoxCustomization) throws InvalidInputException
EditText) customization.EditText).textBoxCustomization - A TextBoxCustomization that represents the text box customization object.InvalidInputException - This exception shall be thrown if an input parameter is invalid.public SelectionItemCustomization getSelectionItemCustomization()
SelectionItemCustomization that represents the selection item customization object.public void setSelectionItemCustomization(SelectionItemCustomization selectionItemCustomization) throws InvalidInputException
selectionItemCustomization - A SelectionItemCustomization that represents the selection item customization object.InvalidInputException - This exception shall be thrown if an input parameter is invalid.public ExpandableInfoCustomization getExpandableInfoCustomization()
ExpandableInfoCustomization that represents the expandable info customization object.public void setExpandableInfoCustomization(ExpandableInfoCustomization expandableInfoCustomization) throws InvalidInputException
expandableInfoCustomization - A ExpandableInfoCustomization that represents the expandable info customization object.InvalidInputException - This exception shall be thrown if an input parameter is invalid.public void setToolbarTitle(java.lang.String title)
ToolbarCustomization header text.title - The toolbar title.InvalidInputException - This exception shall be thrown if an input parameter is invalid.public void setStatusBarColor(java.lang.String hexColorCode)
throws InvalidInputException
ScreenCustomization status bar color.hexColorCode - The color code in Hex format. For example "#999999".InvalidInputException - This exception shall be thrown if an input parameter is invalid.public void setScreenBackgroundColor(java.lang.String hexColorCode)
throws InvalidInputException
Activity's background color by setting the ScreenCustomization background color.hexColorCode - The color code in Hex format. For example "#999999".InvalidInputException - This exception shall be thrown if an input parameter is invalid.public void setTextColor(java.lang.String hexColorCode)
throws InvalidInputException
hexColorCode - The color code in Hex format. For example "#999999".InvalidInputException - This exception shall be thrown if an input parameter is invalid.public void setBorderColor(java.lang.String hexColorCode)
throws InvalidInputException
hexColorCode - The color code in Hex format. For example "#999999".InvalidInputException - This exception shall be thrown if an input parameter is invalid.public void setTintColor(java.lang.String hexColorCode)
throws InvalidInputException
ToolbarCustomization
SelectionItemCustomization
ButtonCustomization for the borderless buttons UiCustomization.ButtonType.RESEND and UiCustomization.ButtonType.CANCEL
hexColorCode - The color code in Hex format. For example "#999999".InvalidInputException - This exception shall be thrown if an input parameter is invalid.public void setHighlightedBackgroundColor(java.lang.String hexColorCode)
throws InvalidInputException
SelectionItemCustomization
ExpandableInfoCustomization
ButtonCustomization for the borderless buttons UiCustomization.ButtonType.RESEND and UiCustomization.ButtonType.CANCEL
hexColorCode - The color code in Hex format. For example "#999999".InvalidInputException - This exception shall be thrown if an input parameter is invalid.