public class RxInApps
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
RxInApps.Builder |
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
TAG |
static java.lang.String |
VERSION |
| Modifier and Type | Method and Description |
|---|---|
<any> |
consume(java.lang.String productId)
Consume purchased product
|
android.content.Context |
getContext() |
<any> |
getProduct(java.lang.String productId)
Emits
SkuDetails of managed product for specified product id |
<any> |
getProducts(java.util.List<java.lang.String> productIdList)
Emits list
SkuDetails of managed products for specified product ids |
<any> |
getPurchasedProduct(java.lang.String productId)
Emits purchased product with specified id OR error if purchase not found
|
<any> |
getPurchasedSubscription(java.lang.String productId)
Emits purchased subscription with specified id OR error if purchase not found
|
<any> |
getSubscription(java.lang.String productId)
Emits
SkuDetails of subscription for specified product id |
<any> |
getSubscriptions(java.util.List<java.lang.String> productIdList)
Emits list
SkuDetails of subscription for specified product's ids |
static void |
init(RxInApps.Builder builder) |
<any> |
initialization()
Observable which emits InAppBillingService while this service is bound
|
static boolean |
isIabServiceAvailable(android.content.Context context)
Checks availability of InAppBillingService
|
<any> |
isPurchased(java.lang.String productId)
Emits whether product with specified id purchased or not
|
<any> |
isSubscribed(java.lang.String productId)
Emits whether subscription with specified id purchased or not
|
static boolean |
isValid(Purchase purchase)
Verifies purchase by license key and merchant id
|
<any> |
loadPurchasedProducts()
Simply loads purchased products and emits them
|
<any> |
loadPurchasedSubscriptions()
Simply loads purchased subscriptions and emits them
|
<any> |
purchase(java.lang.String productId)
Starts purchase managed product flow
|
<any> |
purchasedProductIds()
Loads or takes from cache purchased product's ids and emits them
|
<any> |
purchasedProducts()
Loads or takes from cache purchased products and emits them as
List |
<any> |
purchasedProductsMap()
Loads or takes from cache purchased products and maps them by product id
|
<any> |
purchasedSubscriptionIds()
Loads or takes from cache purchased subscription's ids and emits them
|
<any> |
purchasedSubscriptions()
Loads or takes from cache purchased subscriptions and emits them as
List |
<any> |
purchasedSubscriptionsMap()
Loads or takes from cache purchased subscriptions and maps them by product id
|
void |
release() |
<any> |
subscribe(java.lang.String productId)
Starts purchase subscription flow
|
static RxInApps |
with(android.content.Context context) |
public static final java.lang.String TAG
public static final java.lang.String VERSION
public static void init(RxInApps.Builder builder)
public static RxInApps with(android.content.Context context)
public static boolean isIabServiceAvailable(android.content.Context context)
public static boolean isValid(Purchase purchase)
public <any> initialization()
public <any> loadPurchasedProducts()
public <any> purchasedProductsMap()
public <any> purchasedProducts()
Listpublic <any> purchasedProductIds()
public <any> isPurchased(java.lang.String productId)
public <any> getPurchasedProduct(java.lang.String productId)
public <any> purchase(java.lang.String productId)
public <any> consume(java.lang.String productId)
public <any> getProduct(java.lang.String productId)
SkuDetails of managed product for specified product idpublic <any> getProducts(java.util.List<java.lang.String> productIdList)
SkuDetails of managed products for specified product idspublic <any> loadPurchasedSubscriptions()
public <any> purchasedSubscriptionsMap()
public <any> purchasedSubscriptions()
Listpublic <any> purchasedSubscriptionIds()
public <any> isSubscribed(java.lang.String productId)
public <any> getPurchasedSubscription(java.lang.String productId)
public <any> subscribe(java.lang.String productId)
public <any> getSubscription(java.lang.String productId)
SkuDetails of subscription for specified product idpublic <any> getSubscriptions(java.util.List<java.lang.String> productIdList)
SkuDetails of subscription for specified product's idspublic android.content.Context getContext()
public void release()