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

Syntax

[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

Remarks

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

Requirements

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

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

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