Delen via


PenDockListener Class

Definition

Provides access to docking state event notifications from a connected pen device.

public ref class PenDockListener sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 655360)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class PenDockListener final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 655360)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class PenDockListener
Public NotInheritable Class PenDockListener
Inheritance
Object Platform::Object IInspectable PenDockListener
Attributes

Windows requirements

Device family
Windows 10, version 2004 (introduced in 10.0.19041.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v10.0)

Methods

GetDefault()

Retrieves the default listener for pen dock events.

IsSupported()

Retrieves whether pen docking state event notifications are currently supported.

Events

Docked

Occurs when the user docks a pen.

IsSupportedChanged

Occurs when the availability of pen docking event changes (pen settings are changed by the user or system support changes).

Undocked

Occurs when the user undocks a pen.

Applies to