Class adobeDPS-Folio
- Extends:
- adobeDPS-Folio -> adobeDPS-BaseFolio -> adobeDPS-Class
- Platforms:
- iOS, Android, Windows
Representation of a Folio object.
Constructor
[inner]
Creates an instance of a Folio.
Fields
Field | Defined By | |
---|---|---|
productId
: String
The id used to identify this Folio to the broker.
|
Folio
|
|
folioNumber
: String
The folioNumber field of this Folio.
|
Folio
|
|
publicationDate
: Date
The date this Folio was published.
|
Folio
|
|
folioDescription
: String
The description field of this Folio.
|
Folio
|
|
description
: String
The description field of this Folio.
|
Folio
|
|
price
: String
The localized price of this Folio.
|
Folio
|
|
broker
: String
The broker currently associated with this Folio.
|
Folio
|
|
filter
: String
The filter field of this Folio.
|
Folio
|
|
isThirdPartyEntitled
: Boolean
Indicates whether this Folio is entitled by an entitlement server.
|
Folio
|
|
targetDimensions
: String
The target device dimensions of this Folio.
|
Folio
|
|
isPurchasable
: Boolean
If a folio can be purchased
|
Folio
|
|
supportsContentPreview
: Boolean
If a folio has free articles that can be downloaded
without any folio entitlement.
|
Folio
|
|
The receipt associated with this Folio.
|
Folio
|
|
The EntitlementType of this Folio.
|
Folio
|
|
hasSections
: Boolean
This indicates whether this folio has sections.
|
Folio
|
|
contentPreviewState
: adobeDPS-FolioContentPreviewState = adobeDPS-FolioContentPreviewState.NOT_REQUESTED
The FolioContentPreviewState of this Folio.
|
Folio
|
|
Object containing the map of sections of a folio indexed by adobeDPS-BaseFolio#id
|
Folio
|
|
Signal to indicate that this BaseFolio has been updated.
|
||
id
: String
The Unique id of this BaseFolio.
|
||
currentTransactions
: Array
The current transactions acting on this BaseFolio.
|
||
downloadSize
: Number
The size of this BaseFolio in Bytes.
|
||
The State of this BaseFolio.
|
||
previewImageURL
: String
The local file URL of the preview image for this BaseFolio.
|
||
title
: String
The title of this BaseFolio.
|
||
isCompatible
: Boolean
This indicates whether this BaseFolio is compatible with this version of the viewer.
|
||
isDownloadable
: Boolean
Whether the BaseFolio is currently able to be downloaded.
|
||
isViewable
: Boolean
Whether the BaseFolio is currently able to be viewed.
|
||
isArchivable
: Boolean
Whether the BaseFolio is currently able to be archived.
|
||
isUpdatable
: Boolean
This indicates whether this BaseFolio is currently updatable.
|
Methods
Method | Defined By | |
---|---|---|
Start a ContentPreviewAvailabilityTransaction on this Folio.
|
Folio
|
|
Whether a {adobeDPS-PreviewContentTransaction} can be started on this folio.
|
Folio
|
|
Start a PreviewContentTransaction on this Folio.
|
Folio
|
|
purchase()
Start a purchase transaction on this Folio.
|
Folio
|
|
isFree()
Determine whether this Folio is free.
|
Folio
|
|
update()
Start an update transaction on this Folio.
|
Folio
|
|
archive()
Start an archive transaction on this Folio.
|
Folio
|
|
Start a FolioSectionsList transaction on this Folio.
|
Folio
|
|
download()
Start a download transaction on this BaseFolio.
|
||
view()
Start a view transaction on this BaseFolio.
|
||
getPreviewImage(width:Number, height:Number, isPortrait)
Start a preview image transaction on this BaseFolio.
|
||
Helper method to discover the current state changing transaction on a BaseFolio (if any)
|
||
toString()
Gets the string representation of this instance.
|
Field Details
productId
: String
The id used to identify this Folio to the broker.
- Platforms:
- iOS, Android, Windows
folioNumber
: String
The folioNumber field of this Folio. This will be the exact value that is
entered at publish time.
- Platforms:
- iOS, Android, Windows
publicationDate
: Date
The date this Folio was published.
- Platforms:
- iOS, Android, Windows
folioDescription
: String
The description field of this Folio. This will be the exact value that is
entered at publish time.
- Platforms:
- iOS, Android, Windows
description
: String
The description field of this Folio. If the folio is free it is the same as the
adobeDPS-Folio#folioDescription. On iOS, if the folio is retail, it is the description provided
to the broker.
- Platforms:
- iOS, Android, Windows
price
: String
The localized price of this Folio. This value is a string that is already localized
and contains the currency symbol.
- Platforms:
- iOS, Android, Windows
broker
: String
The broker currently associated with this Folio.
- Platforms:
- iOS, Android, Windows
filter
: String
The filter field of this Folio. This will be the exact value that is entered at publish time.
- Platforms:
- iOS, Android, Windows
isThirdPartyEntitled
: Boolean
Indicates whether this Folio is entitled by an entitlement server.
- Platforms:
- iOS, Android, Windows
targetDimensions
: String
The target device dimensions of this Folio.
- Platforms:
- iOS, Android, Windows
isPurchasable
: Boolean
If a folio can be purchased
- Platforms:
- iOS, Android, Windows
supportsContentPreview
: Boolean
If a folio has free articles that can be downloaded
without any folio entitlement. Will always be false unless
verifyContentPreviewSupported is called.
- Platforms:
- iOS, Windows
receipt
: adobeDPS-Receipt
The receipt associated with this Folio.
- Platforms:
- iOS, Windows
entitlementType
: adobeDPS-EntitlementType
The EntitlementType of this Folio.
- Default Value:
- adobeDPS-EntitlementType.UNKNOWN
- Platforms:
- iOS, Android, Windows
hasSections
: Boolean
This indicates whether this folio has sections.
- Platforms:
- iOS, Android, Windows
contentPreviewState
: adobeDPS-FolioContentPreviewState
The FolioContentPreviewState of this Folio.
- Default Value:
- adobeDPS-FolioContentPreviewState.NOT_REQUESTED
- Platforms:
- iOS, Windows
sections
: adobeDPS-DocumentMap
Object containing the map of sections of a folio indexed by adobeDPS-BaseFolio#id
- Platforms:
- iOS, Android, Windows
Method Details
Start a ContentPreviewAvailabilityTransaction on this Folio.
- Throws:
- Error If the transaction could not be created or started
- Returns:
- adobeDPS-ContentPreviewAvailabilityTransaction A new started transaction or the existing transaction if the folio has a ContentPreviewAvailabilityTransaction acting on it.
- Platforms:
- iOS, Android
canDownloadContentPreview()
: Boolean
Whether a {adobeDPS-PreviewContentTransaction} can be started on this folio.
- Returns:
- Boolean True if the Folio can be Preview Downloaded
- Platforms:
- iOS
Start a PreviewContentTransaction on this Folio. Requires that adobeDPS-Folio#canDownloadContentPreview()
be true.
- Throws:
- Error If adobeDPS-Folio#canDownloadContentPreview() is false.
- Returns:
- adobeDPS-PreviewContentTransaction The started preview transaction
- Platforms:
- iOS
Start a purchase transaction on this Folio. Requires that adobeDPS-Folio#isPurchasable
be true.
- Throws:
- Error If adobeDPS-Folio#isPurchasable is false or has another active transaction
- Returns:
- adobeDPS-PurchaseTransaction The started purchase transaction
- Platforms:
- iOS, Android, Windows
isFree()
: Boolean
Determine whether this Folio is free. Returns true if the folio is free.
- Returns:
- Boolean Whether the Folio is free
- Platforms:
- iOS, Android
Start an update transaction on this Folio. Requires that adobeDPS-BaseFolio#isUpdatable
be true.
- Throws:
- Error If adobeDPS-Folio#isUpdatable is false.
- Returns:
- adobeDPS-UpdateTransaction The started update transaction
- Platforms:
- iOS, Android, Windows
Start an archive transaction on this Folio. Requires that adobeDPS-Folio#isViewable be true.
- Throws:
- Error If the Folio is in the wrong state or has another active transaction
- Returns:
- adobeDPS-ArchiveTransaction The started archive transaction
- Platforms:
- iOS, Android, Windows
Start a FolioSectionsList transaction on this Folio. Requires that hasSections on the Folio
be true.
- Throws:
- Error If the folio does not have sections
- Returns:
- adobeDPS-FolioSectionListUpdateTransaction The started sectionsList transaction
- Platforms:
- iOS, Android
©2012-2013 Adobe Systems, inc
Documentation generated by JsDoc Toolkit 2.4.0 on Mon Aug 31 2015 09:23:26 GMT-0700 (PDT)
Documentation generated by JsDoc Toolkit 2.4.0 on Mon Aug 31 2015 09:23:26 GMT-0700 (PDT)