bfgpurchase.bfgPurchase Class
API for managing In-App Purchases via the Big Fish Android SDK. More...Inherits LifecycleObserver.
Public Member Functions | |
abstract boolean | acquireProductInformation () |
acquireProductInformation More... | |
abstract boolean | acquireProductInformation (@NonNull List< String > productIds) |
abstract boolean | acquireProductInformation (@NonNull String productId) |
abstract boolean | beginPurchase () |
beginPurchase More... | |
abstract boolean | beginPurchase (@NonNull String productId) |
beginPurchase More... | |
abstract boolean | canStartPurchase () |
canStartPurchase More... | |
abstract boolean | canStartPurchase (@NonNull String productId) |
canStartPurchase More... | |
void | cleanupService () |
cleanupService More... | |
abstract void | completePurchase (@NonNull String productId) |
abstract void | consumePurchase (@NonNull String productId) |
consumePurchase More... | |
abstract void | defineConsumableSKUs (@Nullable Set< String > consumableSKUs) |
defineConsumableSKUs More... | |
abstract void | finishPurchase (@Nullable String sku) |
finishPurchase More... | |
abstract String | getAppstoreName () |
getAppstoreName More... | |
abstract String | getCurrentUser () |
getCurrentUser More... | |
HashMap< String, Object > | getPurchaseStatus (@NonNull String productId) |
Get status of most recent purchase attempt for a product. More... | |
abstract PublicInventory | getVolatileInventory () |
getVolatileInventory More... | |
boolean | handleActivityResult (int requestCode, int resultCode, @Nullable final Intent data) |
handleActivityResult More... | |
abstract boolean | postCurrentInventory () |
postCurrentInventory More... | |
abstract Hashtable< String, Object > | productInformation () |
productInformation More... | |
abstract Hashtable< String, Object > | productInformation (@NonNull String productId) |
productInformation More... | |
abstract void | restorePurchase () |
restorePurchase More... | |
abstract void | restorePurchase (@NonNull List< String > productIds) |
restorePurchase More... | |
abstract void | restorePurchase (@NonNull String productId) |
restorePurchase More... | |
void | resumeUsingService () |
resumeUsingService More... | |
abstract void | setCurrentUser (@Nullable String userId) |
setCurrentUser More... | |
abstract void | setCurrentUserMarketplace (@Nullable String userMarketplace) |
setCurrentUserMarketplace More... | |
void | setupService (@NonNull Activity activity) |
Initial setup of purchase system. More... | |
void | stopUsingService () |
stopUsingService More... | |
Static Public Member Functions | |
static bfgPurchase | sharedInstance () throws IllegalStateException |
sharedInstance More... | |
Static Public Attributes | |
static final String | NOTIFICATION_PURCHASE_FAILED = "NOTIFICATION_PURCHASE_FAILED" |
Purchase failed. | |
static final String | NOTIFICATION_PURCHASE_PRODUCTINFORMATION = "NOTIFICATION_PURCHASE_PRODUCTINFORMATION" |
Got product information. | |
static final String | NOTIFICATION_PURCHASE_REVOKED = "NOTIFICATION_PURCHASE_REVOKED" |
SKU Revoked. | |
static final String | NOTIFICATION_PURCHASE_SUCCEEDED = "NOTIFICATION_PURCHASE_SUCCEEDED" |
Purchase succeeded. | |
static final String | NOTIFICATION_PURCHASE_SUCCEEDED_WITH_RECEIPT = "NOTIFICATION_PURCHASE_SUCCEEDED_WITH_RECEIPT" |
Purchase succeeded with purchase object. | |
static final String | NOTIFICATION_RESTORE_COMPLETED = "NOTIFICATION_RESTORE_COMPLETED" |
Restore completed. | |
static final String | NOTIFICATION_RESTORE_FAILED = "NOTIFICATION_RESTORE_FAILED" |