Skip to content

@halone/sdk / Events

Interface: Events ​

Properties ​

apps.changed ​

ts
apps.changed: null;

An app was installed or removed; apps.list has the new list.


bookmarks.changed ​

ts
bookmarks.changed: Bookmark[];

browser.changed ​

ts
browser.changed: BrowserState;

Sent only to the chrome of the web window that changed.


browser.command ​

ts
browser.command: object;

A keyboard shortcut for the chrome of this web window, such as Ctrl+L's focus-address.

command ​

ts
command: "focus-address";

display.changed ​

ts
display.changed: DisplayState;

The environment started or stopped, or the glasses changed mode: 2D or 3D, or a new refresh rate.


downloads.changed ​

ts
downloads.changed: Download[];

files.accessChanged ​

ts
files.accessChanged: FileAccess;

history.changed ​

ts
history.changed: null;

launcher.changed ​

ts
launcher.changed: object;

open ​

ts
open: boolean;

media.changed ​

ts
media.changed: MediaState;

Sent to the window that owns the player, a few times a second while it plays.


ts
menu.changed: MenuRequest | null;

Sent to the menu overlay when there is a menu to show, or null when there no longer is.


plugins.changed ​

ts
plugins.changed: PluginInfo[];

A plugin was found, removed, enabled or disabled, or listed new apps.


screen.recordingChanged ​

ts
screen.recordingChanged: RecordingState;

settings.changed ​

ts
settings.changed: Settings;

socket.closed ​

ts
socket.closed: object;

The other end closed, or the connection failed with [error]. Not sent for sockets.close.

error ​

ts
error: string | null;

socketId ​

ts
socketId: number;

socket.data ​

ts
socket.data: object;

Bytes a socket received, base64.

data ​

ts
data: string;

socketId ​

ts
socketId: number;

status.changed ​

ts
status.changed: StatusItem[];

A plugin set, changed or removed a status item.


system.batteryChanged ​

ts
system.batteryChanged: Battery;

window.fileOpened ​

ts
window.fileOpened: object;

Sent to a window asked to open a file while it was already running.

path ​

ts
path: string;

window.focusChanged ​

ts
window.focusChanged: object;

focused ​

ts
focused: boolean;

window.routed ​

ts
window.routed: object;

Sent to a running window that apps.launch asked to go somewhere.

route ​

ts
route: string;

windows.changed ​

ts
windows.changed: WindowInfo[];

Released under the MIT License.