com.mle.android.iap.google

AsyncIabHelper

class AsyncIabHelper extends Closeable

Converts Google Play's callback-based IAB API to one based on scala.concurrent.Futures.

The UI thread is used to submit the asynchronous requests; exceptions are apparently thrown otherwise.

Linear Supertypes
Closeable, AutoCloseable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. AsyncIabHelper
  2. Closeable
  3. AutoCloseable
  4. AnyRef
  5. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new AsyncIabHelper(activity: Activity, iabHelper: IabHelper)

Type Members

  1. trait FutureBuilder[T] extends AnyRef

  2. class InventoryListener extends QueryInventoryFinishedListener with FutureBuilder[Inventory]

  3. class PayloadVerifyingPurchaseListener extends PurchaseListener

  4. class PurchaseListener extends OnIabPurchaseFinishedListener with FutureBuilder[Purchase]

  5. class SetupListener extends OnIabSetupFinishedListener with FutureBuilder[IabResult]

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. def close(): Unit

    Definition Classes
    AsyncIabHelper → Closeable → AutoCloseable
  9. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  10. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  11. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  12. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  13. def hasPurchase(sku: String): Future[Boolean]

    sku

    the product ID

    returns

    true if the currently signed in user owns SKU sku, false otherwise

  14. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  15. val iabHelper: IabHelper

  16. def inventory(skus: Seq[String], querySkuDetails: Boolean = true): Future[Inventory]

    Queries for details of the items with the SKUs given in skus.

    Queries for details of the items with the SKUs given in skus.

    Use this to query available (and possibly unowned) items: check the SKUs in advance from the Google Developer Console.

    skus

    the SKUs to query for

    querySkuDetails

    whether to return SKU details ("should be set to true")

    returns

    details of skus

  17. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  18. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  19. final def notify(): Unit

    Definition Classes
    AnyRef
  20. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  21. def productDetails(sku: String): Future[SkuDetails]

  22. def purchase(activity: Activity, sku: String, requestCode: Int): Future[Purchase]

  23. def purchase(activity: Activity, sku: String, requestCode: Int, payload: String): Future[Purchase]

    Purchases sku.

    Purchases sku.

    The string payload will be returned in subsequent queries about this purchase.

    The returned future only completes successfully if the IabResult is successful and the developer payload of the returned Purchase matches payload. If the payloads don't match, the future fails with a com.mle.android.iap.google.PayloadMismatchException.

    activity

    your activity

    sku

    SKU of item to purchase

    requestCode

    any positive integer; will be returned in onActivityResult with the purchase response

    payload

    supplemental information about the order; can be an empty string

    returns

    the purchase

    See also

    http://developer.android.com/training/in-app-billing/purchase-iab-products.html

  24. def startSetup: Future[IabResult]

  25. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  26. def toString(): String

    Definition Classes
    AnyRef → Any
  27. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  28. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  29. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Closeable

Inherited from AutoCloseable

Inherited from AnyRef

Inherited from Any

Ungrouped