AI-generated Key Takeaways
-
ButtonOptions
defines configurations for the Android Dynamic Button, enabling customization of its appearance and functionality. -
Developers can use the
ButtonOptions.Builder
class to create and customize instances ofButtonOptions
. -
This class provides methods to set the button type, theme, corner radius, and allowed payment methods.
-
ButtonOptions
implementsParcelable
, allowing it to be passed between Android components. -
Developers can access button configurations using methods like
getButtonType
,getButtonTheme
,getCornerRadius
, andgetAllowedPaymentMethods
.
Define configurations for Android Dynamic Button
Nested Class Summary
class | ButtonOptions.Builder | Builder for building ButtonOptions . |
Inherited Constant Summary
Field Summary
public static final Creator<ButtonOptions> | CREATOR |
Public Method Summary
boolean | |
String |
getAllowedPaymentMethods()
Return stringified JSON of allowedPaymentMethods
|
int |
getButtonTheme()
Return button theme
|
int |
getButtonType()
Return button type
|
int |
getCornerRadius()
Return corner radius value in dp
|
int |
hashCode()
|
static ButtonOptions.Builder |
newBuilder()
Returns a new builder for building a
ButtonOptions .
|
void |
writeToParcel(Parcel dest, int
flags)
|
Inherited Method Summary
Fields
public static final Creator<ButtonOptions> CREATOR
Public Methods
public boolean equals (Object other)
public String getAllowedPaymentMethods ()
Return stringified JSON of allowedPaymentMethods
public int getButtonTheme ()
Return button theme
public int getButtonType ()
Return button type
public int getCornerRadius ()
Return corner radius value in dp
public int hashCode ()
public static ButtonOptions.Builder newBuilder ()
Returns a new builder for building a ButtonOptions
.