Resources.RegisterResourcePaths(String, ApplicationInfo) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
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.