Packageorg.vostokframework.application.services
Classpublic class LoadingService
InheritanceLoadingService Inheritance Object

description



Public Methods
 MethodDefined By
  
description
LoadingService
  
cancel(loaderId:String, locale:String = null):void
description
LoadingService
  
changePriority(loaderId:String, priority:LoadPriority, locale:String = null):void
description
LoadingService
  
containsAssetData(assetId:String, locale:String = null):Boolean
description
LoadingService
  
exists(loaderId:String, locale:String = null):Boolean
description
LoadingService
  
getAssetData(assetId:String, locale:String = null):*
description
LoadingService
  
getMonitor(loaderId:String, locale:String = null):ILoadingMonitor
description
LoadingService
  
isLoading(loaderId:String, locale:String = null):Boolean
description
LoadingService
  
isQueued(loaderId:String, locale:String = null):Boolean
description
LoadingService
  
isStopped(loaderId:String, locale:String = null):Boolean
description
LoadingService
  
load(loaderId:String, assets:IList, priority:LoadPriority = null, concurrentConnections:int = 1):ILoadingMonitor
description
LoadingService
  
loadSingle(loaderId:String, asset:Asset, priority:LoadPriority = null, concurrentConnections:int = 1):ILoadingMonitor
description
LoadingService
  
mergeAssets(loaderId:String, assets:IList, locale:String = null):ILoadingMonitor
description
LoadingService
  
removeAssetData(assetId:String, locale:String = null):void
description
LoadingService
  
resume(loaderId:String, locale:String = null):void
description
LoadingService
  
stop(loaderId:String, locale:String = null):void
description
LoadingService
Constructor Detail
LoadingService()Constructor
public function LoadingService()

description

Method Detail
cancel()method
public function cancel(loaderId:String, locale:String = null):void

description

Parameters

loaderId:String
 
locale:String (default = null)

changePriority()method 
public function changePriority(loaderId:String, priority:LoadPriority, locale:String = null):void

description

Parameters

loaderId:String
 
priority:LoadPriority
 
locale:String (default = null)


Throws
ArgumentError — if the <codeph>assetId</codeph> argument is <codeph>null</codeph> or <codeph>empty</codeph>.
 
ArgumentError — if the <codeph>priority</codeph> argument is <codeph>null</codeph>.
 
org.vostokframework.assetmanagement.errors:AssetNotFoundError — if do not exist an <codeph>Asset</codeph> object stored with the provided <codeph>assetId</codeph> and <codeph>locale</codeph>.
containsAssetData()method 
public function containsAssetData(assetId:String, locale:String = null):Boolean

description

Parameters

assetId:String
 
locale:String (default = null)

Returns
Boolean
exists()method 
public function exists(loaderId:String, locale:String = null):Boolean

description

Parameters

loaderId:String
 
locale:String (default = null)

Returns
Boolean
getAssetData()method 
public function getAssetData(assetId:String, locale:String = null):*

description

Parameters

assetId:String
 
locale:String (default = null)

Returns
*
getMonitor()method 
public function getMonitor(loaderId:String, locale:String = null):ILoadingMonitor

description

Parameters

loaderId:String
 
locale:String (default = null)

Returns
ILoadingMonitor
isLoading()method 
public function isLoading(loaderId:String, locale:String = null):Boolean

description

Parameters

loaderId:String
 
locale:String (default = null)

Returns
Boolean
isQueued()method 
public function isQueued(loaderId:String, locale:String = null):Boolean

description

Parameters

loaderId:String
 
locale:String (default = null)

Returns
Boolean
isStopped()method 
public function isStopped(loaderId:String, locale:String = null):Boolean

description

Parameters

loaderId:String
 
locale:String (default = null)

Returns
Boolean
load()method 
public function load(loaderId:String, assets:IList, priority:LoadPriority = null, concurrentConnections:int = 1):ILoadingMonitor

description

Parameters

loaderId:String
 
assets:IList
 
priority:LoadPriority (default = null)
 
concurrentConnections:int (default = 1)

Returns
ILoadingMonitor
loadSingle()method 
public function loadSingle(loaderId:String, asset:Asset, priority:LoadPriority = null, concurrentConnections:int = 1):ILoadingMonitor

description

Parameters

loaderId:String
 
asset:Asset
 
priority:LoadPriority (default = null)
 
concurrentConnections:int (default = 1)

Returns
ILoadingMonitor
mergeAssets()method 
public function mergeAssets(loaderId:String, assets:IList, locale:String = null):ILoadingMonitor

description

Parameters

loaderId:String
 
assets:IList
 
locale:String (default = null)

Returns
ILoadingMonitor
removeAssetData()method 
public function removeAssetData(assetId:String, locale:String = null):void

description

Parameters

assetId:String
 
locale:String (default = null)

resume()method 
public function resume(loaderId:String, locale:String = null):void

description

Parameters

loaderId:String
 
locale:String (default = null)

stop()method 
public function stop(loaderId:String, locale:String = null):void

description

Parameters

loaderId:String
 
locale:String (default = null)