tizen_window_manager 0.1.0 copy "tizen_window_manager: ^0.1.0" to clipboard
tizen_window_manager: ^0.1.0 copied to clipboard

Tizen window APIs.

tizen_window_manager #

pub package

Tizen window manager APIs. Used to control windows and get window geometry information.

Usage #

To use this package, add tizen_window_manager as a dependency in your pubspec.yaml file.

dependencies:
  tizen_window_manager: ^0.1.0

API Reference #

The WindowManager class provides methods to control window behavior on the Tizen platform.

Controls windows #

Activates the window and brings it to the foreground.

await WindowManager.activate();

Lowers the window and sends it to the background.

await WindowManager.lower();

Retrieving window geometry #

Gets the geometry(position and size) of the window.

Returns a Map<String, int> containing:

  • x: The x coordinate of the window
  • y: The y coordinate of the window
  • width: The width of the window
  • height: The height of the window
Map<String, int> geometry = await WindowManager.getGeometry();
print('Window position: (${geometry['x']}, ${geometry['y']})');
print('Window size: ${geometry['width']}x${geometry['height']}');