Class ButtonCustomization
- java.lang.Object
-
- com.netcetera.threeds.sdk.api.ui.logic.Customization
-
- com.netcetera.threeds.sdk.api.ui.logic.ButtonCustomization
-
- All Implemented Interfaces:
java.io.Serializable
public final class ButtonCustomization extends Customization implements java.io.Serializable
Provides methods to pass ButtonCustomization parameters to the 3DS SDK.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ButtonCustomization()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description java.lang.StringgetBackgroundColor()Provides value for the background color.intgetCornerRadius()Provides the value for corner radius.java.lang.StringgetDarkBackgroundColor()Deprecated.This is no longer supported since EMVCo Specification 2.3.1.voidsetBackgroundColor(java.lang.String backgroundColor)Sets the background color of the button.voidsetCornerRadius(int cornerRadius)Sets the radius of the button corners.voidsetDarkBackgroundColor(java.lang.String hexColorCode)Deprecated.This is no longer supported since EMVCo Specification 2.3.1.-
Methods inherited from class com.netcetera.threeds.sdk.api.ui.logic.Customization
getDarkTextColor, getTextColor, getTextFontName, getTextFontSize, setDarkTextColor, setTextColor, setTextFontName, setTextFontSize
-
-
-
-
Method Detail
-
getCornerRadius
public int getCornerRadius()
Provides the value for corner radius.- Returns:
- int corner radius value
-
setCornerRadius
public void setCornerRadius(int cornerRadius) throws InvalidInputExceptionSets the radius of the button corners.- Parameters:
cornerRadius- int value.- Throws:
InvalidInputException- if invalid input is provided.
-
getBackgroundColor
public java.lang.String getBackgroundColor()
Provides value for the background color.- Returns:
String
-
setBackgroundColor
public void setBackgroundColor(java.lang.String backgroundColor) throws InvalidInputExceptionSets the background color of the button.- Parameters:
backgroundColor- hex value of the color in the format: #333333- Throws:
InvalidInputException- is thrown when invalid input is provided.
-
setDarkBackgroundColor
@Deprecated public void setDarkBackgroundColor(java.lang.String hexColorCode) throws InvalidInputExceptionDeprecated.This is no longer supported since EMVCo Specification 2.3.1. UsesetBackgroundColor(String)withUiCustomization.UiCustomizationType.DARKinstead.Sets the dark background color of the button.- Parameters:
hexColorCode- hex value of the color in the format: #333333- Throws:
InvalidInputException- is thrown when invalid input is provided.
-
getDarkBackgroundColor
@Deprecated public java.lang.String getDarkBackgroundColor()
Deprecated.This is no longer supported since EMVCo Specification 2.3.1. UsegetBackgroundColor()withUiCustomization.UiCustomizationType.DARKinstead.Provides value for the dark background color.- Returns:
String
-
-