Resources.RegisterResourcePaths(String, ApplicationInfo) Method

Definition

Register the resources paths of a package (e.

[Android.Runtime.Register("registerResourcePaths", "(Ljava/lang/String;Landroid/content/pm/ApplicationInfo;)V", "", ApiSince=35)]
public static void RegisterResourcePaths(string uniqueId, Android.Content.PM.ApplicationInfo appInfo);
[<Android.Runtime.Register("registerResourcePaths", "(Ljava/lang/String;Landroid/content/pm/ApplicationInfo;)V", "", ApiSince=35)>]
static member RegisterResourcePaths : string * Android.Content.PM.ApplicationInfo -> unit

Parameters

uniqueId
String

The unique id for the ApplicationInfo object, to detect and ignore repeated API calls.

appInfo
ApplicationInfo

The ApplicationInfo that contains resources paths of the package.

Attributes

Remarks

Register the resources paths of a package (e.g. a shared library). This will collect the package resources' paths from its ApplicationInfo and add them to all existing and future contexts while the application is running. A second call with the same uniqueId is a no-op. The paths are not persisted during application restarts. The application is responsible for calling the API again if this happens.

Java documentation for android.content.res.Resources.registerResourcePaths(java.lang.String, android.content.pm.ApplicationInfo).

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