Pay

Spark icon
  • The Pay class serves as the entry point for the Pay API.

  • It provides a static method, getClient, to create instances of PayClient.

  • getClient can take either an Activity or a non-Activity Context as an argument.

  • The PayClient instance returned by getClient(Activity) should only be used within that Activity.

public class Pay extends Object

Entry point for Pay API.

Public Method Summary

static PayClient
getClient(Activity activity)
Creates a new instance of PayClient for use in an Activity.
static PayClient
getClient(Context context)
Creates a new instance of PayClient for use in a non-Activity Context.

Inherited Method Summary

Public Methods

public static PayClient getClient (Activity activity)

Creates a new instance of PayClient for use in an Activity. This client should not be used outside of the given Activity.

public static PayClient getClient (Context context)

Creates a new instance of PayClient for use in a non-Activity Context.

Morty Proxy This is a proxified and sanitized view of the page, visit original site.