set Resources Cache Path
open fun setResourcesCachePath(@NonNull path: String, @NonNull callback: FileSource.ResourcesCachePathChangeCallback)
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
open fun setResourcesCachePath(@NonNull context: Context, @NonNull path: String, @NonNull callback: FileSource.ResourcesCachePathChangeCallback)
Deprecated
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