ButtonOptions

  • 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.

public final classButtonOptions extendsObject
implementsParcelableParcelable

Define configurations for Android Dynamic Button

Nested Class Summary

class ButtonOptions.BuilderBuilder for buildingButtonOptions

Inherited Constant Summary

From interface android.os.Parcelable
intCONTENTS_FILE_DESCRIPTOR
intPARCELABLE_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
static ButtonOptions.Builder
newBuilder()
Returns a new builder for building aButtonOptions.
void
writeToParcel(Parcel dest, int flags)

Inherited Method Summary

From class java.lang.Object
Object
clone()
boolean
equals(Object arg0)
void
finalize()
finalClass<?>
getClass()
int
hashCode()
final void
notify()
final void
notifyAll()
String
toString()
final void
wait(long arg0, int arg1)
final void
wait(long arg0)
final void
wait()
From interface android.os.Parcelable
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.