PayButton

  • The PayButton class extends FrameLayout and implements View.OnClickListener to create a dynamic payment button.

  • It inherits many constants and fields from android.view.ViewGroup and android.view.View related to view properties and states.

  • The class provides constructors for creating PayButton instances with different contexts and attributes.

  • Public methods include initialize(ButtonOptions options) to set up the button and methods for handling click events like onClick(View view) and setOnClickListener(View.OnClickListener listener).

public final class PayButton extends FrameLayout
implements View.OnClickListener

The API creates a View to render a dynamic payment button based on the provided ButtonOptions.

Inherited Constant Summary

Inherited Field Summary

Public Constructor Summary

PayButton(Context context)
Creates a new instance of PayButton for use in a non-activity Context.
PayButton(Context context, AttributeSet attrs)
Creates a new instance of PayButton for use in a non-activity Context.
PayButton(Context context, AttributeSet attrs, int defStyle)

Public Method Summary

void
initialize(ButtonOptions options)
Initialize the button view with given buttonOptions.
void
onClick(View view)
void

Inherited Method Summary

Public Constructors

public PayButton (Context context)

Creates a new instance of PayButton for use in a non-activity Context.

public PayButton (Context context, AttributeSet attrs)

Creates a new instance of PayButton for use in a non-activity Context.

public PayButton (Context context, AttributeSet attrs, int defStyle)

Public Methods

public void initialize (ButtonOptions options)

Initialize the button view with given buttonOptions.

public void onClick (View view)

public void setOnClickListener (View.OnClickListener listener)