setResourcesCachePath

Changes the path of the resources cache database.

The callback reference is strongly kept throughout the process, so it needs to be wrapped in a weak reference or released on the client side if necessary.

Parameters

path

the new database path

callback

the callback to obtain the result


Deprecated

Use setResourcesCachePath

Changes the path of the resources cache database.

The callback reference is strongly kept throughout the process, so it needs to be wrapped in a weak reference or released on the client side if necessary.

Parameters

context

the context of the path

path

the new database path

callback

the callback to obtain the result