ContentStoreItem

ContentStoreItem object.

Constructors

Link copied to clipboard
constructor()
constructor(address: Long)
constructor(address: Long, isRef: Boolean)

Properties

Link copied to clipboard

Address of native referenced object. nullptr if not referencing any native allocated object. Note native allocation will happen only once.

Link copied to clipboard

Available size of the content in bytes.

Link copied to clipboard

Product chapter name translated to interface language Items with same chapter name are considered to be part of the same group

Link copied to clipboard

Client version of the content. Requires the content available size greater than zero.

Link copied to clipboard

Additional parameters for the content. This is not available for all content types.

Link copied to clipboard

Country code (ISO 3166-1 alpha-3 ) list of the product as text.

Link copied to clipboard

Current download progress.

Link copied to clipboard

Full path to the content data file when available.

Link copied to clipboard
val id: Long

Unique id of the item in content store.

Link copied to clipboard

Image preview if available. Available only if isImagePreviewAvailable() returns true.

Link copied to clipboard

Full language code for the product.

Link copied to clipboard
val name: String?

Name of the associated product.

Link copied to clipboard

Current item status.

Link copied to clipboard

Size of the content in bytes.

Link copied to clipboard

Type of the product as a EContentType value.

Link copied to clipboard

Corresponding update item function will return an valid item only if an update is in progress for that item

Link copied to clipboard

Update size ( if an update is available for this item ) function will return a valid size ( != 0 ) only if item has a newer version in store this function doesn't request an update to be started for the item

Link copied to clipboard

Update version ( if an update is available for this item ) function will return a valid version ( != 0 ) only if item has a newer version in store this function doesn't request an update to be started for the item

Functions

Link copied to clipboard
fun asyncDownload(listener: ProgressListener, savePolicy: GemSdk.EDataSavePolicy = GemSdk.EDataSavePolicy.UseDefault, allowChargedNetworks: Boolean = true): Int
fun asyncDownload(savePolicy: GemSdk.EDataSavePolicy = GemSdk.EDataSavePolicy.UseDefault, allowChargedNetworks: Boolean = true, onStarted: OnStarted? = null, onProgress: OnProgress? = null, onCompleted: OnCompleted? = null, onStatusChanged: OnStatusChanged? = null): Int

Asynchronous start/resume the download of the content store product content.

Link copied to clipboard
external fun cancelDownload(): Int

Cancel a previous download operation. The partially downloaded content is deleted.

Link copied to clipboard
external fun canDeleteContent(): Boolean

Check if associated content can be deleted Note: Content can be deleted if has partially or complete local data and is not marked as SDK resource

Link copied to clipboard
external fun deleteContent(): Int

Delete the associated content.

Link copied to clipboard
fun finalize()

Overrides finalize that garbage collector will call when needed.

Link copied to clipboard
external fun isCompleted(): Boolean

Check if the item is completed downloaded.

Link copied to clipboard

Check if there is an image preview available on the client.

Link copied to clipboard

True if keeps a reference to a C++ SDK object False if keeps a C++ SDK object

Link copied to clipboard
external fun isUpdatable(): Boolean

Check if item is updatable, i.e. it has a newer version available.

Link copied to clipboard
operator fun not(): Boolean

Checks if this object is valid.

Link copied to clipboard
external fun pauseDownload(): Int

Pause a previous download operation.

Link copied to clipboard
fun release()

Releases the native referenced value of this object if:

Link copied to clipboard
external fun setProgressListener(listener: ProgressListener)

Sets the item progress listener