Adobe DPS - Reading SDK 2.32

Class adobeDPS-DocumentMap

See:
adobeDPS-Folio
Platforms:
iOS, Android, Windows

A map of Documents to ids with update signals.
Accessible from adobeDPS.libraryService.folioMap

Constructor

adobeDPS-DocumentMap()
[inner] Create a new map of documents by id.

Fields

Field Defined By
Signal indicating that documents have been added to internal.
DocumentMap
Signal indicating that documents have been removed from internal.
DocumentMap
internal : Object
An associative array containing the documents, indexed by id.
DocumentMap

Methods

Method Defined By
sort(sortFunc:function)
Function to sort the map using a sort function and return a new Array of objects.
DocumentMap
getByProductId(productId:String)
Get a document from the list by its productId, if it has such a field.
DocumentMap
Class Detail
adobeDPS-DocumentMap()
[inner] Create a new map of documents by id.
Field Details
addedSignal : adobeDPS-Signal
Signal indicating that documents have been added to internal.
Callback Signature: documentsAddedHandler([ Object, ...])
Platforms:
iOS, Android, Windows
removedSignal : adobeDPS-Signal
Signal indicating that documents have been removed from internal.
Callback Signature: documentsRemovedHandler([ Object, ...])
Platforms:
iOS, Android, Windows
internal : Object
An associative array containing the documents, indexed by id.
Platforms:
iOS, Android, Windows
Method Details
sort(sortFunc:function) : Array
Function to sort the map using a sort function and return a new Array of objects.
Parameters
sortFunc function A function to sort the Map. This function can be any function accepted by the Array.sort() function.
Returns:
Array The sorted array of Objects
Platforms:
iOS, Android, Windows
getByProductId(productId:String) : Object
Get a document from the list by its productId, if it has such a field. Returns null if a document with the provided productId cannot be found.
Parameters
productId String The productId of the Folio requested.
Returns:
Object The Document with the requested productId or null
Platforms:
iOS, Android, Windows
©2012-2013 Adobe Systems, inc
Documentation generated by JsDoc Toolkit 2.4.0 on Mon Aug 31 2015 09:23:40 GMT-0700 (PDT)