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. def clone(): AnyRef

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

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

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

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

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

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

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

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

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

  17. def hashCode(): Int

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

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

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

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

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

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

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

  25. def onGetUserIdFailed(response: GetUserIdResponse): Unit

  26. def onGetUserIdResponse(response: GetUserIdResponse): Unit

    Callback for PurchasingManager.

    Callback for PurchasingManager.initiateGetUserIdRequest()

    response

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

    Definition Classes
    AmazonPurchasingObserver → BasePurchasingObserver → PurchasingObserver
  28. def onPurchaseFailed(response: PurchaseResponse): Unit

  29. def onPurchaseResponse(response: PurchaseResponse): Unit

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

  31. def onPurchaseSucceeded(sku: String): Unit

  32. 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
  33. def onRevokedSkus(skus: Set[String]): Unit

  34. def onSdkAvailable(isSandboxMode: Boolean): Unit

    Callback for PurchasingManager.

    Callback for PurchasingManager.registerObserver(Activity)

    isSandboxMode

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

  36. val purchase: Future[String]

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

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

    Definition Classes
    AnyRef
  39. def tag: String

    Definition Classes
    UtilLogMleLog
  40. def toString(): String

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

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

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

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

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

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

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

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

    Definition Classes
    MleLog
  49. 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