UIMotionEffect.ComputeKeyPathsAndRelativeValues(UIOffset) UIMotionEffect.ComputeKeyPathsAndRelativeValues(UIOffset) Method

Definition

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

[Foundation.Export("keyPathsAndRelativeValuesForViewerOffset:")]
public virtual Foundation.NSDictionary ComputeKeyPathsAndRelativeValues (UIKit.UIOffset viewerOffset);
abstract member ComputeKeyPathsAndRelativeValues : UIKit.UIOffset -> Foundation.NSDictionary
override this.ComputeKeyPathsAndRelativeValues : UIKit.UIOffset -> Foundation.NSDictionary

Parameters

viewerOffset
UIOffset UIOffset

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:


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

Applies to