RequestItem Class
Module: cc.AssetManager
A collection of information about a request
Index
Properties
uuidStringThe uuid of requesturlStringThe final url of requestextStringThe extension name of assetcontent*The content of assetfile*The file of assetinfoObjectThe information of assetisNativeBooleanWhether or not it is native assetoptionsObjectCustom optionsidStringThe id of request, combined from uuid and isNative
Methods
constructorCreate a request itemrecycleRecycle this for reusecreateCreate 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 |