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

See Also: UIMotionEffect Members

Syntax

[Foundation.Register("UIMotionEffect", true)]
[ObjCRuntime.Availability(Introduced=ObjCRuntime.Platform.iOS_7_0)]
public class UIMotionEffect : Foundation.NSObject, Foundation.INSCoding, Foundation.INSCopying, IDisposable

See Also

UIInterpolatingMotionEffect

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: UIKit
Assembly: Xamarin.iOS (in Xamarin.iOS.dll)
Assembly Versions: 0.0.0.0