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


[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


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


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

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

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.