iOS Guides | Samples

MonoTouch.UIKit.UIEvent Class

Touch Events.

See Also: UIEvent

Syntax

[MonoTouch.Foundation.Register("UIEvent", true)]
public class UIEvent : NSObject

Remarks

UIEvents contain a collection of all the touches (UITouch) taking place on the screen, these can be obtained by calling the UIEvent.AllTouches. If you want to fetch only the UITouch events associated with a specific window, call the UIEvent.TouchesForWindow(UIWindow) method. If you are only interested in the touch events for a particular view, call the UIEvent.TouchesForView(UIView) method.

Related content

Requirements

Namespace: MonoTouch.UIKit
Assembly: monotouch (in monotouch.dll)
Assembly Versions: 0.0.0.0

The members of MonoTouch.UIKit.UIEvent are listed below.

See Also: NSObject

Public Constructors

Default constructor that initializes a new instance of this class with no parameters.
A constructor that initializes the object from the data stored in the unarchiver object.
Constructor to call on derived classes to skip initialization and merely allocate the object.
A constructor used when creating managed representations of unmanaged objects; Called by the runtime.

Public Properties

[read-only]
AllTouchesNSSet. Returns all of the touches for the screen.
[read-only]
override
ClassHandleIntPtr. The handle for this class.
[read-only]
SubtypeUIEventSubtype. Get the UIEventSubtype for this event.
[read-only]
TimestampDouble. Timestamp for when the event was created.
[read-only]
TypeUIEventType. Returns the UIEventType for this event.

Public Methods

GetCoalescedTouches(UITouch) : UITouch[]
Returns the coalesced touches for the provided touch.
GetPredictedTouches(UITouch) : UITouch[]
Returns the predicted touches for the provided touch.
override
ToString() : String
Returns a string representation of the value of the current instance.
TouchesForGestureRecognizer(UIGestureRecognizer) : NSSet
Retrieves the UITouch events that are being delivered to the specified gesture recognizer.
TouchesForView(UIView) : NSSet
Fetches the UITouch for the specified view from the UIEvent.
TouchesForWindow(UIWindow) : NSSet
Fetches the UITouch for the specified window from the UIEvent.