Click or drag to resize
PushButton Class
A basic push button that uses a single GPIO pin.
Inheritance Hierarchy
SystemObject
  Microsoft.IoT.Devices.InputPushButton

Namespace: Microsoft.IoT.Devices.Input
Assembly: Microsoft.IoT.Devices (in Microsoft.IoT.Devices.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
public sealed class PushButton : IPushButton, 
	IDevice, IClosable, IStringable

The PushButton type exposes the following members.

Constructors
  NameDescription
Public methodPushButton
Initializes a new PushButton instance.
Top
Properties
  NameDescription
Public propertyClickMode
Gets or sets a value that indicates when the Click event occurs.
Public propertyDebounceTimeout
Gets or sets the amount of time in milliseconds that will be used to debounce the pushbutton.
Public propertyIsPressed
Gets a value that indicates if the button is pressed.
Public propertyPin
Gets or sets the pin that the button is connected to.
Public propertyPressedValue
Gets or sets the GpioPinValue that indicates the button is pressed.
Public propertyUsePullResistors
Gets or sets a value that indicates if integrated pull up or pull down resistors should be used to help maintain the state of the pin.
Top
Methods
  NameDescription
Public methodClose
Public methodEquals (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Public methodToString (Inherited from Object.)
Top
Events
  NameDescription
Public eventClick
Occurs when the button is clicked.
Public eventPressed
Occurs when the button is pressed.
Public eventReleased
Occurs when the button is released.
Top
See Also