Resources Constructors
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.
Overloads
Resources(IntPtr, JniHandleOwnership) |
A constructor used when creating managed representations of JNI objects; called by the runtime. |
Resources(AssetManager, DisplayMetrics, Configuration) |
Create a new Resources object on top of an existing set of assets in an AssetManager. |
Resources(IntPtr, JniHandleOwnership)
A constructor used when creating managed representations of JNI objects; called by the runtime.
protected Resources (IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Android.Content.Res.Resources : nativeint * Android.Runtime.JniHandleOwnership -> Android.Content.Res.Resources
Parameters
- transfer
- JniHandleOwnership
A JniHandleOwnershipindicating how to handle javaReference
Remarks
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
Resources(AssetManager, DisplayMetrics, Configuration)
Create a new Resources object on top of an existing set of assets in an AssetManager.
[Android.Runtime.Register(".ctor", "(Landroid/content/res/AssetManager;Landroid/util/DisplayMetrics;Landroid/content/res/Configuration;)V", "")]
public Resources (Android.Content.Res.AssetManager? assets, Android.Util.DisplayMetrics? metrics, Android.Content.Res.Configuration? config);
[<Android.Runtime.Register(".ctor", "(Landroid/content/res/AssetManager;Landroid/util/DisplayMetrics;Landroid/content/res/Configuration;)V", "")>]
new Android.Content.Res.Resources : Android.Content.Res.AssetManager * Android.Util.DisplayMetrics * Android.Content.Res.Configuration -> Android.Content.Res.Resources
Parameters
- assets
- AssetManager
Previously created AssetManager.
- metrics
- DisplayMetrics
Current display metrics to consider when selecting/computing resource values.
- config
- Configuration
Desired device configuration to consider when selecting/computing resource values (optional).
- Attributes
Remarks
Create a new Resources object on top of an existing set of assets in an AssetManager.
This member is deprecated. Resources should not be constructed by apps. See android.content.Context#createConfigurationContext(Configuration)
.
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.