Compartilhar via


ResourcesProvider.LoadFromDirectory(String, IAssetsProvider) Method

Definition

Creates a ResourcesProvider from a directory path.

[Android.Runtime.Register("loadFromDirectory", "(Ljava/lang/String;Landroid/content/res/loader/AssetsProvider;)Landroid/content/res/loader/ResourcesProvider;", "", ApiSince=30)]
public static Android.Content.Res.Loader.ResourcesProvider LoadFromDirectory (string path, Android.Content.Res.Loader.IAssetsProvider? assetsProvider);
[<Android.Runtime.Register("loadFromDirectory", "(Ljava/lang/String;Landroid/content/res/loader/AssetsProvider;)Landroid/content/res/loader/ResourcesProvider;", "", ApiSince=30)>]
static member LoadFromDirectory : string * Android.Content.Res.Loader.IAssetsProvider -> Android.Content.Res.Loader.ResourcesProvider

Parameters

path
String

the path of the directory to treat as an APK

assetsProvider
IAssetsProvider

the assets provider that overrides the loading of file-based resources

Returns

Attributes

Remarks

Creates a ResourcesProvider from a directory path.

File-based resources will be resolved within the directory as if the directory is an APK.

Java documentation for android.content.res.loader.ResourcesProvider.loadFromDirectory(java.lang.String, android.content.res.loader.AssetsProvider).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to