Added in API level 30
AssetsProvider
public
interface
AssetsProvider
| android.content.res.loader.AssetsProvider |
Provides callbacks that allow for the value of a file-based resources or assets of a
ResourcesProvider to be specified or overridden.
Summary
Public methods | |
|---|---|
default
AssetFileDescriptor
|
loadAssetFd(String path, int accessMode)
Callback that allows the value of a file-based resources or asset to be specified or overridden. |
Public methods
loadAssetFd
Added in API level 30
public AssetFileDescriptor loadAssetFd (String path, int accessMode)
Callback that allows the value of a file-based resources or asset to be specified or overridden.
The system will take ownership of the file descriptor returned from this method, so
dup the file descriptor before returning if the system
should not own it.
There are two sit