Asset
final class Asset
Class providing Asset related actions.
-
Gets details about given asset id
Declaration
Swift
public static func getAsset(id: Int, success: @escaping (InPlayerItem) -> Void, failure: @escaping (InPlayerError) -> Void)Parameters
idAsset ID
successA closure to be executed once the request has finished successfully.
assetContains item info.
failureA closure to be executed once the request has finished with error.
errorContaining information about the error that occurred.
-
Returns a collection of fees for a specific asset
Declaration
Swift
public static func getAssetAccessFees(id: Int, voucherId: Int? = nil, success: @escaping ([InPlayerAccessFee]) -> Void, failure: @escaping (InPlayerError) -> Void)Parameters
idAsset ID.
voucherIdVoucher ID
successA closure to be executed once the request has finished successfully.
accessFeesCollection of access fees for specific asset.
failureA closure to be executed once the request has finished with error.
errorContaining information about the error that occurred.
-
This method checks and retrieves a customer’s entitlement to an asset
Declaration
Swift
public static func checkAccessForAsset(id: Int, entryId: String?, success: @escaping (InPlayerItemAccess) -> Void, failure: @escaping (InPlayerError) -> Void)Parameters
idAsset ID
entryIdOptional string specifying external video id
successA closure to be executed once the request has finished successfully.
itemAccessObject containing info about the item plus additional info.
failureA closure to be executed once the request has finished with error.
errorContaining information about the error that occurred.
-
Get an external assets info
Declaration
Swift
public static func getExternalAsset(type: String, externalID: String, merchantUUID: String?, success: @escaping (InPlayerItem) -> Void, failure: @escaping (InPlayerError) -> Void)Parameters
typeThe type ID of the asset
externalIDThe ID of the external asset
merchantUUIDThe merchant uuid
successA closure to be executed once the request has finished successfully.
assetContains item info.
failureA closure to be executed once the request has finished with error.
errorContaining information about the error that occurred.
View on GitHub
Asset Class Reference