iOS Guides | Samples

MonoTouch.UIKit.UIMotionEffect Class

The base class for motion-based visual effects on views linked to the device tilt.

See Also: UIMotionEffect

Syntax

[MonoTouch.Foundation.Register("UIMotionEffect", true)]
[MonoTouch.ObjCRuntime.Introduced(MonoTouch.ObjCRuntime.PlatformName.iOS, 7, 0, MonoTouch.ObjCRuntime.PlatformArchitecture.None, null)]
public class UIMotionEffect : NSObject, INSCoding, INSCopying, IDisposable

See Also

Remarks

This is an abstract class for doing motion effects on your application. When subclassing, you must at least implement the UIMotionEffect.ComputeKeyPathsAndRelativeValues method which returns a dictionary of changes that contain a list of keypaths along with the new value that will be applied to the view that this effect is attached to.

In general, you will want to use the UIKit.UIInterpolatingMotionEffect class which provides a way of interpolating the device tilt values to a linear value.

This class maps the hardware tilt into the range -1 to 1.

Related content

Requirements

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

The members of MonoTouch.UIKit.UIMotionEffect 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

ComputeKeyPathsAndRelativeValues(UIOffset) : NSDictionary
Method returning an NSDictionary containing changes to be applied to a view in response to a motion event.
Copy(NSZone) : NSObject
Performs a copy of the underlying Objective-C object.