BrowserInterface
protocol BrowserInterface : NSObjectProtocol
Undocumented
-
Undocumented
Declaration
Swift
var header: any BrowserHeader { get }
-
Undocumented
Declaration
Swift
var footer: any BrowserFooter { get }
-
Undocumented
Declaration
Swift
weak var chromeDelegate: (any BrowserChromeDelegate)? { get set }
-
A transparent view on top of the In-App Checkout content view for containing arbitrary views. @discussion If you wish to display additional custom content to your users, add your views as subviews to this container view. The container responds to chrome position changes and rotation.
Declaration
Swift
func viewContainer() -> UIView
Return Value
A container view on top of the browser content view.
-
An object belonging to the browser interface that maintains the list of cards currently in the card system.
Declaration
Swift
func cardList() -> any CardList
Return Value
The interface to the card list object.
-
Reloads all cards from scratch and re-renders any visible cards. @discussion Call this method when you make changes to cards in the CardList.
Declaration
Swift
func reloadCards()
-
Animates the top card in the card list into the browser view.
Declaration
Swift
func showTopCard()
-
Animates the top card in the card list out of the browser view.
Declaration
Swift
func hideTopCard()
-
Indicates whether or not cards can be shown.
@discussion Call this method before attempting a call to showTopCard or hideTopCard.
Declaration
Swift
func canShowCards() -> Bool
Return Value
YES if cards can be shown, NO otherwise.
-
Navigates the browser to a new url.
@discussion Use this api to navigate the browser to a new url of the same domain. A url with a different domain should be opened by fetching and starting a new Purchase Path.
Declaration
Swift
func navigate(to url: URL)
Parameters
url
The url to be loaded in the browser.
-
Dismisses the browser.
Declaration
Swift
func dismiss()