HotKeyManager class

Constructors

HotKeyManager.withBackend(SystemHotKeyBackend _backend)

Properties

hashCode → int
The hash code for this object.
no setterinherited
registeredHotKeyList → List<HotKey>
The live registered hotkey list, retained for legacy API compatibility.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

dispose() → Future<void>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
register(HotKey hotKey, {HotKeyHandler? keyDownHandler, HotKeyHandler? keyUpHandler}) → Future<void>
Registers a hotkey. Registering an existing identifier retains handlers that are not supplied again; different identifiers for one combination each receive events.
toString() → String
A string representation of this object.
inherited
unregister(HotKey hotKey) → Future<void>
unregisterAll() → Future<void>
Unregisters the hotkeys owned by this manager. Shortcuts registered directly with nativeapi's ShortcutManager are unaffected.

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Properties

instance → HotKeyManager
The shared instance of HotKeyManager.
final