UIResponder.TouchesMoved(NSSet, UIEvent) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Sent when one or more fingers move on the screen.
[Foundation.Export("touchesMoved:withEvent:")]
public virtual void TouchesMoved (Foundation.NSSet touches, UIKit.UIEvent evt);
abstract member TouchesMoved : Foundation.NSSet * UIKit.UIEvent -> unit
override this.TouchesMoved : Foundation.NSSet * UIKit.UIEvent -> unit
Parameters
- evt
- UIEvent
The UIEvent that encapsulates all of the touches and the event information.
This parameter can be null
.
- Attributes
Remarks
Since iOS 9.0, TouchesMoved(NSSet, UIEvent) events are raised on supported hardware and configurations for changes in user-applied pressure. The Force property of the UITouch object in the touches
set argument contains the magnitude of the touch that raised the event. The following example shows a basic use:
if (TraitCollection.ForceTouchCapability == UIForceTouchCapability.Available) {
UITouch t = touches.AnyObject as UITouch;
ForceLabel.Text = "Force: " + t.Force.ToString ();
}
else {
ForceLabel.Text = "Force Not Active";
}