Adobe DPS - Reading SDK 2.32

Class adobeDPS-Subscription

Platforms:
iOS

An representation of an available subscription product.

Constructor

adobeDPS-Subscription(productId:String, title:String, duration:String, price:String, isOwned:Boolean)
[inner] Create a Subscription.

Fields

Field Defined By
Signal to indicate that this Subscription has been updated.
Subscription
productId : String
The productId (aka SKU or Subscription SKU) of this subscription.
Subscription
title : String
The localized title of this subscription.
Subscription
duration : String
The localized duration of this subscription.
Subscription
price : String
The localized price of this subscription.
Subscription
isOwned : String
Whether this subscription is currently owned by the user.
Subscription
receipt : SubscriptionReceipt
The latest receipt associated with this subscription.
Subscription

Methods

Method Defined By
Start a subscription purchase transaction on this Subscription.
Subscription
Tells whether this subscription isOwned and the subscription window covers today.
Subscription
Class Detail
adobeDPS-Subscription(productId:String, title:String, duration:String, price:String, isOwned:Boolean)
[inner] Create a Subscription.
Parameters
productId String The productId that this receipt is associated with
title String The title of this subscription
duration String The localized representation of subscription duration
price String The localized representation of the price returned by the broker
isOwned Boolean Whether this subscription is currently owned by the user
Default: false
Field Details
updatedSignal : adobeDPS-Signal
Signal to indicate that this Subscription has been updated. It will pass an array of Strings containing the names of the properties that have been updated.
Callback Signature: updatedHandler([String, ...])
Platforms:
iOS
productId : String
The productId (aka SKU or Subscription SKU) of this subscription.
Platforms:
iOS
title : String
The localized title of this subscription.
Platforms:
iOS
duration : String
The localized duration of this subscription.
Platforms:
iOS
price : String
The localized price of this subscription.
Platforms:
iOS
isOwned : String
Whether this subscription is currently owned by the user.
Platforms:
iOS
receipt : SubscriptionReceipt
The latest receipt associated with this subscription.
Platforms:
iOS
Method Details
purchase() : adobeDPS-SubscribeTransaction
Start a subscription purchase transaction on this Subscription. Requires that this isActive() be false.
Throws:
Error If the Subscription is currently active
Returns:
adobeDPS-SubscribeTransaction The started subscription purchase transaction
Platforms:
iOS
isActive() : Boolean
Tells whether this subscription isOwned and the subscription window covers today.
Returns:
Boolean Whether this subscription is owned and contains today
Platforms:
iOS
©2012-2013 Adobe Systems, inc
Documentation generated by JsDoc Toolkit 2.4.0 on Mon Aug 31 2015 09:23:40 GMT-0700 (PDT)