public final class KlarnaCheckout
extends java.lang.Object
SignalListener interface..);WebView instance that has loaded a web page which
already contains the checkout code snippet)SignalListener| Constructor and Description |
|---|
KlarnaCheckout(android.app.Activity currentActivity) |
KlarnaCheckout(android.app.Activity currentActivity,
java.lang.String redirectURI) |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy()
Method to destroy checkout and remove all resources.
|
android.view.View |
getView()
Returns the currentcheckout view} instance
|
void |
resume()
Sends message to checkout to resume operations.
|
static void |
setGooglePushMessageToken(java.lang.String token)
Sets google push messaging token if using with Klarna's GCM
|
void |
setSignalListener(SignalListener checkoutSignalListener)
Sets an instance of a CheckoutSignalListener for all signals to allow
switched implementations.
|
void |
setSnippet(java.lang.String snippet)
Startup option for use when using a snippet obtained from server
Loads html checkout "snippet" received from server into
main WebView.
|
void |
setWebView(android.webkit.WebView suppliedWebView) |
void |
suspend()
Sends message to checkout to suspend operations.
|
public KlarnaCheckout(android.app.Activity currentActivity)
public KlarnaCheckout(android.app.Activity currentActivity,
java.lang.String redirectURI)
public void suspend()
public void resume()
public void setWebView(android.webkit.WebView suppliedWebView)
suppliedWebView - public void setSnippet(java.lang.String snippet)
snippet - the snippet of html code that initializes the checkout.public static void setGooglePushMessageToken(java.lang.String token)
token - the token received from google.public android.view.View getView()
public void setSignalListener(SignalListener checkoutSignalListener)
checkoutSignalListener - an SignalListener implemented instance.public void destroy()