com.usebutton.sdk.checkout.CheckoutInterface |
Interface containing methods that a publisher can use to customize the in-app checkout experience.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Gets the list of cards used in the checkout card view container
| |||||||||||
Gets a view container that can be used to add a custom view to the checkout experience.
| |||||||||||
Animates the top card in the card list out of the checkout view
CardList
| |||||||||||
Reloads all cards from scratch and re-renders any visible cards.
| |||||||||||
Sets the primary color of the bottom bar in the checkout experience.
| |||||||||||
Sets the tint color of the bottom bar in the checkout experience.
| |||||||||||
Sets the subtitle of the checkout experience.
| |||||||||||
Sets the color of the subtitle in the checkout experience.
| |||||||||||
Sets the main title of the checkout experience.
| |||||||||||
Sets the color of the main title of in the checkout experience.
| |||||||||||
Sets the primary color of the top bar in the checkout experience.
| |||||||||||
Sets the tint color of the top bar in the checkout experience.
| |||||||||||
Animates the top card in the card list out of the checkout view
CardList
|
Gets the list of cards used in the checkout card view container
Gets a view container that can be used to add a custom view to the checkout experience.
Context context = getViewContainer.getContext(); LayoutInflater.from(context).inflate(R.layout.my_custom_view, viewContainer);The custom view must be inflated with the view container's context to avoid any memory leaks.
Animates the top card in the card list out of the checkout view
CardList
Reloads all cards from scratch and re-renders any visible cards. Call this method when you make changes to cards in the CardList.
Sets the primary color of the bottom bar in the checkout experience.
color | hex value of the bottom bar background color. |
---|
Sets the tint color of the bottom bar in the checkout experience. The tint color is applied to non-text UI elements (ex. navigation buttons).
color | hex value of the bottom bar tint color. |
---|
Sets the subtitle of the checkout experience.
subTitle | the subtitle text. |
---|
Sets the color of the subtitle in the checkout experience.
color | hex value of the subtitle text color. |
---|
Sets the main title of the checkout experience.
title | the title text. |
---|
Sets the color of the main title of in the checkout experience.
color | hex value of the title text color. |
---|
Sets the primary color of the top bar in the checkout experience.
color | hex value of the tob bar background color. |
---|
Sets the tint color of the top bar in the checkout experience. The tint color is applied to non-text UI elements (ex. cancel button).
color | hex value of the tob bar tint color. |
---|
Animates the top card in the card list out of the checkout view
CardList