iOS Guides | Samples

MonoTouch.UIKit.UIEvent Class

Touch Events.

See Also: UIEvent


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


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


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

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

AllTouchesNSSet. Returns all of the touches for the screen.
ClassHandleIntPtr. The handle for this class.
SubtypeUIEventSubtype. Get the UIEventSubtype for this event.
TimestampDouble. Timestamp for when the event was created.
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.
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.