Function: start()
start(
appId,flags?):Application
Defined in: packages/ffi/src/native/lifecycle.ts:61
Initializes the GTK application runtime.
Creates a GTK Application instance, initializes Adwaita and GtkSource if available, and starts the event loop.
Parameters
| Parameter | Type | Description |
|---|---|---|
appId | string | Application ID in reverse domain notation (e.g., "com.example.app") |
flags? | ApplicationFlags | Optional GIO application flags |
Returns
Application
The GTK Application instance
Example
import { start } from "@gtkx/ffi";
const app = start("com.example.myapp");
See
stop for shutting down the application