Compartir a través de


ResourcesProvider.LoadFromApk Method

Definition

Overloads

LoadFromApk(ParcelFileDescriptor)

Creates a ResourcesProvider from an APK (.apk) file descriptor.

LoadFromApk(ParcelFileDescriptor, IAssetsProvider)

Creates a ResourcesProvider from an APK (.apk) file descriptor.

LoadFromApk(ParcelFileDescriptor)

Creates a ResourcesProvider from an APK (.apk) file descriptor.

[Android.Runtime.Register("loadFromApk", "(Landroid/os/ParcelFileDescriptor;)Landroid/content/res/loader/ResourcesProvider;", "", ApiSince=30)]
public static Android.Content.Res.Loader.ResourcesProvider LoadFromApk (Android.OS.ParcelFileDescriptor fileDescriptor);
[<Android.Runtime.Register("loadFromApk", "(Landroid/os/ParcelFileDescriptor;)Landroid/content/res/loader/ResourcesProvider;", "", ApiSince=30)>]
static member LoadFromApk : Android.OS.ParcelFileDescriptor -> Android.Content.Res.Loader.ResourcesProvider

Parameters

fileDescriptor
ParcelFileDescriptor

the file descriptor of the APK to load

Returns

Attributes

Remarks

Creates a ResourcesProvider from an APK (.apk) file descriptor.

The file descriptor is duplicated and the original may be closed by the application at any time without affecting the ResourcesProvider.

Java documentation for android.content.res.loader.ResourcesProvider.loadFromApk(android.os.ParcelFileDescriptor).

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

LoadFromApk(ParcelFileDescriptor, IAssetsProvider)

Creates a ResourcesProvider from an APK (.apk) file descriptor.

[Android.Runtime.Register("loadFromApk", "(Landroid/os/ParcelFileDescriptor;Landroid/content/res/loader/AssetsProvider;)Landroid/content/res/loader/ResourcesProvider;", "", ApiSince=30)]
public static Android.Content.Res.Loader.ResourcesProvider LoadFromApk (Android.OS.ParcelFileDescriptor fileDescriptor, Android.Content.Res.Loader.IAssetsProvider? assetsProvider);
[<Android.Runtime.Register("loadFromApk", "(Landroid/os/ParcelFileDescriptor;Landroid/content/res/loader/AssetsProvider;)Landroid/content/res/loader/ResourcesProvider;", "", ApiSince=30)>]
static member LoadFromApk : Android.OS.ParcelFileDescriptor * Android.Content.Res.Loader.IAssetsProvider -> Android.Content.Res.Loader.ResourcesProvider

Parameters

fileDescriptor
ParcelFileDescriptor

the file descriptor of the APK to load

assetsProvider
IAssetsProvider

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

Returns

Attributes

Remarks

Creates a ResourcesProvider from an APK (.apk) file descriptor.

The file descriptor is duplicated and the original may be closed by the application at any time without affecting the ResourcesProvider.

The assets provider can override the loading of files within the APK and can provide entirely new files that do not exist in the APK.

Java documentation for android.content.res.loader.ResourcesProvider.loadFromApk(android.os.ParcelFileDescriptor, 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