WindowClient class
Client for WindowService.
Handles window lifecycle: create, destroy, content.
- Inheritance
-
- Object
- ServiceClient
- WindowClient
Constructors
- WindowClient(NativeBridge bridge)
Properties
- bridge → NativeBridge
-
Protected access to bridge for subclasses that need direct bridge access.
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- serviceName → String
-
The service name (must match native side).
no setteroverride
Methods
-
create(
String id, {required PaletteAppearance appearance, required PaletteSize size, String? entryPoint, bool keepAlive = false}) → Future< String?> - Create a new window.
-
destroy(
String id) → Future< void> - Destroy a window.
-
dispose(
) → void -
Clean up all subscriptions.
inherited
-
exists(
String id) → Future< bool> - Check if a window exists.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onContentReady(
String id, void callback()) → void - Called when Flutter content is ready.
-
onCreated(
String id, void callback()) → void - Called when a window is created.
-
onDestroyed(
String id, void callback()) → void - Called when a window is destroyed.
-
onEvent(
String eventName, void callback(NativeEvent)) → void -
Subscribe to events from this service.
inherited
-
onWindowEvent(
String windowId, String eventName, void callback(NativeEvent)) → void -
Subscribe to events for a specific window.
inherited
-
send<
T> (String command, {String? windowId, Map< String, dynamic> ? params}) → Future<T?> -
Send a command to this service.
inherited
-
sendFireAndForget(
String command, {String? windowId, Map< String, dynamic> ? params}) → void -
Send a command, fire and forget.
inherited
-
sendForMap(
String command, {String? windowId, Map< String, dynamic> ? params}) → Future<Map< String, dynamic> ?> -
Send a command expecting a Map result.
inherited
-
setEntryPoint(
String id, String entryPoint) → Future< void> - Set the Flutter entry point for a window.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited