iOS Guides | Samples

MonoTouch.UIKit.UIImageAsset Class

Holds a mapping of UITraitCollection keys to UIImage values.

See Also: UIImageAsset

Syntax

[MonoTouch.Foundation.Register("UIImageAsset", true)]
[MonoTouch.ObjCRuntime.Introduced(MonoTouch.ObjCRuntime.PlatformName.iOS, 8, 0, MonoTouch.ObjCRuntime.PlatformArchitecture.None, null)]
public class UIImageAsset : NSObject, INSSecureCoding, IDisposable

Remarks

This is primarily used to hold images of varying resolutions appropriate to particular UITraitCollection displays.

Related content

Requirements

Namespace: MonoTouch.UIKit
Assembly: monotouch (in monotouch.dll)
Assembly Versions: 0.0.0.0

The members of MonoTouch.UIKit.UIImageAsset are listed below.

See Also: NSObject

Public Constructors

Default constructor, initializes a new instance of this class.
A constructor that initializes the object from the data stored in the unarchiver object.
Constructor to call on derived classes to skip initialization and merely allocate the object.
A constructor used when creating managed representations of unmanaged objects; Called by the runtime.

Public Properties

[read-only]
override
ClassHandleIntPtr. The handle for this class.

Public Methods

FromTraitCollection(UITraitCollection) : UIImage
Returns the image from the asset that best matches traitCollection.
RegisterImage(UIImage, UITraitCollection)
Registers image with the asset and associates it with traitCollection.
UnregisterImageWithTraitCollection(UITraitCollection)
Finds the image that is associated with an exact match of traitCollection and unregisters from the image asset.