UIKit.UIMotionEffect.ComputeKeyPathsAndRelativeValues Method
Method returning an NSDictionary containing changes to be applied to a view in response to a motion event.

Syntax

[Foundation.Export("keyPathsAndRelativeValuesForViewerOffset:")]
public virtual Foundation.NSDictionary ComputeKeyPathsAndRelativeValues (UIOffset viewerOffset)

Parameters

viewerOffset
Tilt of the device. The component ranges from -1 to 1 on each dimension.

Returns

NSDictionary containing one key for each keyPath to alter on the host view. The value for each key is the actual change to be applied to the object.

Remarks

Methods overriding this implementation can return more than one value to alter on the hosting view. For example:

C# Example

public override NSDictionary ComputeKeyPathsAndRelativeValues (UIOffset offset)
{
	return new NSDictionary (
		"center.x", new NSNumber (offset*10),
		"center.y", new NSNumber (offset*10)
	};
}
	    

Requirements

Namespace: UIKit
Assembly: Xamarin.iOS (in Xamarin.iOS.dll)
Assembly Versions: 0.0.0.0