data
A collection that describes the details of all resources to be canceled for preloading, with its keys defined as follows:
data
: Type array
, each item inside the array corresponds to a resource. The keys for each item are defined as follows:
uri
: Type string
, represents the CDN address of the resource.type
: Type string
, represents the type of resource. The supported resource types are defined as follows:
video
: Audio/video resources (preloading cancellation for image resources is currently not supported)params
: Custom control parameters for canceling preloading, the supported parameters are as follows:
preloadKey
: Only for video
type resources. Represents a unique key that identifies the resource. It is necessary to ensure that the preloadKey
passed here is consistent with that used when calling requestResourcePrefetch. This is a required parameter.callback
The callback function that is called after the API execution is completed or fails. The structure of its return parameters is as follows:
code
: Type number
, status code, which may take the following values:
0
: Success11001
: Parameter errormsg
: Type string
, a global error messagedetails
: Type array
, where each detail represents the cancelation status details of a resource. The structure of each detail is as follows:
code
: Type number
, status code, which may take the following values:
0
: Success11001
: Parameter errormsg
: Type string
, error messageuri
: Type string
, represents the CDN address of the resource.type
: Type string
, represents the type of the resource, defined as follows:
video
: Audio/video resourcesNone (undefined
).
code
will return the 11001
error code, and the msg
will contain detailed error information.LCD tables only load in the browser