ButtonOptions Stay organized with collections Save and categorize content based on your preferences.
Page Summary
ButtonOptions defines configurations for Android Dynamic Button.
It includes a Builder class for creating ButtonOptions instances.
Key methods allow retrieving allowed payment methods, button theme, button type, and corner radius.
Define configurations for Android Dynamic Button
Nested Class Summary
| class | ButtonOptions.Builder | Builder for buildingButtonOptions. | |
Inherited Constant Summary
| int | CONTENTS_FILE_DESCRIPTOR | |
| int | PARCELABLE_WRITE_RETURN_VALUE |
Field Summary
| public static finalCreator<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
| abstract int | describeContents() |
| abstract void | writeToParcel(Parcel arg0, int arg1) |
Fields
public static finalCreator<ButtonOptions>CREATOR
Public Methods
public booleanequals(Object other)
publicStringgetAllowedPaymentMethods()
Return stringified JSON of allowedPaymentMethods
public intgetButtonTheme()
Return button theme
public intgetButtonType()
Return button type
public intgetCornerRadius()
Return corner radius value in dp
public inthashCode()
public staticButtonOptions.BuildernewBuilder()
Returns a new builder for building aButtonOptions.
public voidwriteToParcel(Parcel dest, int flags)
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-10-31 UTC.