com.mle.android.iap.amazon

AsyncAmazonIapHelper

class AsyncAmazonIapHelper extends AmazonPurchasingObserver with PromiseHelpers

This class registers itself as the observer for the com.amazon.inapp.purchasing.PurchasingManager upon construction.

Clients shall not use this class directly. Instead, use com.mle.android.iap.amazon.AmazonIapUtils.

TODO: Create rx observables that get new values when the callbacks are called. Futures are one-off and a bad match for this API.

Linear Supertypes
PromiseHelpers, AmazonPurchasingObserver, UtilLog, MleLog, BasePurchasingObserver, PurchasingObserver, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. AsyncAmazonIapHelper
  2. PromiseHelpers
  3. AmazonPurchasingObserver
  4. UtilLog
  5. MleLog
  6. BasePurchasingObserver
  7. PurchasingObserver
  8. AnyRef
  9. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new AsyncAmazonIapHelper(ctx: Context)

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. val availableItems: Future[Set[ProductInfo]]

  8. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  9. def debug(msg: ⇒ String): Unit

    Definition Classes
    MleLog
  10. val entitledSkus: Future[Set[String]]

  11. final def eq(arg0: AnyRef): Boolean

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

    Definition Classes
    AnyRef → Any
  13. def err(msg: ⇒ String): Unit

    Definition Classes
    MleLog
  14. def failMessage(e: Throwable, stackTrace: Boolean = true): String

    Attributes
    protected
    Definition Classes
    MleLog
  15. def finalize(): Unit

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

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

  18. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  19. def info(msg: ⇒ String): Unit

    Definition Classes
    MleLog
  20. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  21. val isSandbox: Future[Boolean]

  22. final def ne(arg0: AnyRef): Boolean

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

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

    Definition Classes
    AnyRef
  25. def onEntitledSkus(skus: Set[String]): Unit

  26. def onGetUserIdFailed(response: GetUserIdResponse): Unit

  27. def onGetUserIdResponse(response: GetUserIdResponse): Unit

    Callback for PurchasingManager.

    Callback for PurchasingManager.initiateGetUserIdRequest()

    response

    Definition Classes
    AmazonPurchasingObserver → BasePurchasingObserver → PurchasingObserver
  28. def onItemDataResponse(response: ItemDataResponse): Unit

    Definition Classes
    AsyncAmazonIapHelperAmazonPurchasingObserver → BasePurchasingObserver → PurchasingObserver
  29. def onPurchaseFailed(response: PurchaseResponse): Unit

  30. def onPurchaseResponse(response: PurchaseResponse): Unit

    Definition Classes
    AmazonPurchasingObserver → BasePurchasingObserver → PurchasingObserver
  31. def onPurchaseStatusFailed(response: PurchaseUpdatesResponse): Unit

  32. def onPurchaseSucceeded(sku: String): Unit

  33. def onPurchaseUpdatesResponse(response: PurchaseUpdatesResponse): Unit

    Callback for initiatePurchaseUpdatesRequest(Offset).

    Callback for initiatePurchaseUpdatesRequest(Offset).

    "You must use this method to sync purchases made from other devices onto this device, and to sync revoked entitlements across all instances of your app."

    response

    Definition Classes
    AmazonPurchasingObserver → BasePurchasingObserver → PurchasingObserver
  34. def onRevokedSkus(skus: Set[String]): Unit

  35. def onSdkAvailable(isSandboxMode: Boolean): Unit

    Callback for PurchasingManager.

    Callback for PurchasingManager.registerObserver(Activity)

    isSandboxMode

    Definition Classes
    AsyncAmazonIapHelperAmazonPurchasingObserver → BasePurchasingObserver → PurchasingObserver
  36. def onUserId(userId: String): Unit

  37. val purchase: Future[String]

  38. val revokedSkus: Future[Set[String]]

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

    Definition Classes
    AnyRef
  40. def tag: String

    Definition Classes
    UtilLogMleLog
  41. def toString(): String

    Definition Classes
    AnyRef → Any
  42. def tryFailure(t: Throwable, promises: Promise[_]*): Unit

    Definition Classes
    PromiseHelpers
  43. def tryIfPossible[T, U](promise: Promise[T])(f: (Promise[T]) ⇒ U): Option[Try[U]]

    Definition Classes
    PromiseHelpers
  44. def trySuccess[T](value: T, promise: Promise[T]): Unit

    Definition Classes
    PromiseHelpers
  45. val userId: Future[String]

  46. final def wait(arg0: Long, arg1: Int): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  49. def warn(msg: ⇒ String): Unit

    Definition Classes
    MleLog
  50. def warn(msg: ⇒ String, ex: Throwable): Unit

    Definition Classes
    MleLog

Inherited from PromiseHelpers

Inherited from AmazonPurchasingObserver

Inherited from UtilLog

Inherited from MleLog

Inherited from BasePurchasingObserver

Inherited from PurchasingObserver

Inherited from AnyRef

Inherited from Any

Ungrouped