TrayIcon class
- Implemented types
Constructors
- TrayIcon.borrowed(int nativeHandle)
- Wraps a handle owned elsewhere; releasing it stays the owner's job.
- TrayIcon.fromHandle(int nativeHandle)
- Adopts a handle returned by the C API and releases it when this object becomes unreachable.
Properties
- contentView ↔ View?
-
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- icon ↔ Image?
-
getter/setter pair
- iconPosition ↔ TrayIconPosition
-
getter/setter pair
- iconSize ↔ Size
-
getter/setter pair
- identifier → String?
-
no setter
- isIconTemplate ↔ bool
-
getter/setter pair
- nativeHandle → int
-
The underlying handle-table entry.
final
-
nativeObject
→ Pointer<
Void> -
Platform-specific native object behind this handle.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
addListener(
FutureOr< void> callback(TrayIconEvent)) → ListenerId -
Registers
callbackfor everyTrayIconEventthisTrayIconemits. -
closeContextMenu(
) → bool -
dispose(
) → void - Releases the handle now instead of at collection.
-
getBounds(
) → Rectangle -
getContextMenu(
) → Menu? -
getContextMenuTrigger(
) → ContextMenuTrigger -
getId(
) → int -
getTitle(
) → String? -
getTooltip(
) → String? -
isVisible(
) → bool -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
openContextMenu(
) → bool -
removeListener(
ListenerId listenerId) → bool - Unregisters a listener. Returns false if unknown.
-
setContextMenu(
) → void -
setContextMenuTrigger(
ContextMenuTrigger trigger) → void -
setTitle(
String? title) → void -
setTooltip(
String? tooltip) → void -
setVisible(
bool visible) → bool -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
create(
) → TrayIcon? -
Creates a new
TrayIcon; returns null if the native side failed. -
createWithIdentifier(
String identifier) → TrayIcon? -
Creates a new
TrayIcon; returns null if the native side failed. -
createWithTray(
Pointer< Void> tray) → TrayIcon? -
Creates a new
TrayIcon; returns null if the native side failed.