Edit

Share via


ButtonBase Class

Definition

Base implementation of Button logic. Hardware independent. Inherit for specific hardware handling.

C#
public class ButtonBase : IDisposable
Inheritance
ButtonBase
Derived
Implements

Constructors

ButtonBase()

Initialization of the button.

ButtonBase(TimeSpan, TimeSpan, TimeSpan)

Initialization of the button.

Properties

IsDoublePressEnabled

Define if double press event is enabled or disabled on the button.

IsHoldingEnabled

Define if holding event is enabled or disabled on the button.

IsPressed

Define if single press event is enabled or disabled on the button.

Methods

Dispose()

Public dispose method for IDisposable interface.

Dispose(Boolean)

Cleanup resources.

HandleButtonPressed()

Handler for pressing the button.

HandleButtonReleased()

Handler for releasing the button.

Events

ButtonDown

Delegate for button down event.

ButtonUp

Delegate for button up event.

DoublePress

Delegate for button double pressed event.

Holding

Delegate for button holding event.

Press

Delegate for button pressed event.

Applies to

Product Versions
.NET IoT Libraries 2.0.0, 2.1.0, 2.2.0