Modifier

Partager via


UIResponder.TouchesMoved(NSSet, UIEvent) Method

Definition

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

touches
NSSet

Set containing the touches as objects of type UITouch.

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";
}

Applies to