onScaleChanged

fun onScaleChanged(handler: EventCallback<ScaleFactorChanged>): ERROR CLASS: Symbol not found for js.promise.Promise<{tauri/apps/api/UnlistenFn=} kotlin/Function0<kotlin/Unit>>(source)

Listen to window scale change. Emitted when the window's scale factor has changed. The following user actions can cause DPI changes:

  • Changing the display's resolution.

  • Changing the display's scale factor (e.g. in Control Panel on Windows).

  • Moving the window to a display with a different scale factor.