RequestItem
Class
Module: cc.AssetManager
A collection of information about a request
Index
Properties
uuid
String
The uuid of requesturl
String
The final url of requestext
String
The extension name of assetcontent
*
The content of assetfile
*
The file of assetinfo
Object
The information of assetisNative
Boolean
Whether or not it is native assetoptions
Object
Custom optionsid
String
The id of request, combined from uuid and isNative
Methods
constructor
Create a request itemrecycle
Recycle this for reusecreate
Create a new request item from pool
Details
Properties
uuid
The uuid of request
meta | description |
---|---|
Type | String |
Defined in | cocos2d/core/asset-manager/request-item.js:49 |
url
The final url of request
meta | description |
---|---|
Type | String |
Defined in | cocos2d/core/asset-manager/request-item.js:61 |
ext
The extension name of asset
meta | description |
---|---|
Type | String |
Defined in | cocos2d/core/asset-manager/request-item.js:73 |
content
The content of asset
meta | description |
---|---|
Type | |
Defined in | cocos2d/core/asset-manager/request-item.js:85 |
file
The file of asset
meta | description |
---|---|
Type | |
Defined in | cocos2d/core/asset-manager/request-item.js:97 |
info
The information of asset
meta | description |
---|---|
Type | Object |
Defined in | cocos2d/core/asset-manager/request-item.js:109 |
isNative
Whether or not it is native asset
meta | description |
---|---|
Type | Boolean |
Defined in | cocos2d/core/asset-manager/request-item.js:123 |
options
Custom options
meta | description |
---|---|
Type | Object |
Defined in | cocos2d/core/asset-manager/request-item.js:135 |
id
The id of request, combined from uuid and isNative
meta | description |
---|---|
Type | String |
Defined in | cocos2d/core/asset-manager/request-item.js:164 |
Methods
constructor
Create a request item
meta | description |
---|---|
Defined in | cocos2d/core/asset-manager/request-item.js:150 |
recycle
Recycle this for reuse
meta | description |
---|---|
Defined in | cocos2d/core/asset-manager/request-item.js:181 |
create
Create a new request item from pool
meta | description |
---|---|
Returns | RequestItem |
Defined in | cocos2d/core/asset-manager/request-item.js:209 |