iOS Guides | Samples

MonoTouch.UIKit.UIPress Class

Models the press of a physical button on a remote control or game controller. (See also UITouch)

See Also: UIPress


[MonoTouch.Foundation.Register("UIPress", true)]
[MonoTouch.ObjCRuntime.Introduced(MonoTouch.ObjCRuntime.PlatformName.iOS, 9, 0, MonoTouch.ObjCRuntime.PlatformArchitecture.None, null)]
[MonoTouch.ObjCRuntime.Unavailable(MonoTouch.ObjCRuntime.PlatformName.WatchOS, MonoTouch.ObjCRuntime.PlatformArchitecture.All, null)]
public class UIPress : NSObject


The UIPress class and related classes such as UIPressesEvent, UIPressPhase, and UIPressType model user manipulation on a device other than the screen. In particular, the Apple TV Remote and game controllers are devices that generate "presses" as opposed to "touches."

Related content


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

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

See Also: NSObject

Public Constructors

Default constructor, initializes a new instance of this class.
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

ClassHandleIntPtr. The handle for this class.
ForceSingle. Represents the force of the press in the range 0 to 1.
GestureRecognizersUIGestureRecognizer[]. The UIGestureRecognizer objects that are receiving the presses.
PhaseUIPressPhase. The UIPressPhase (Began, Changed, etc.) of the press.
ResponderUIResponder. The UIResponder that either has focus or whose UIResponder.IsFirstResponder property is true.
TimestampDouble. The time, in decimal seconds since system start, at which the press was last modified (created or changed).
TypeUIPressType. The UIPressType of the press.
WindowUIWindow. The UIWindow in which the press originated.