[ type ] AppEvent

Description:

Represents an application event used in ui.onAppEvents(callback).

Type: Object

Properties:

Name Type Description

type

string

One of event types: about, foreground, background, searchTerm, files, print, uri, preferences, quit, screenSleep, screenAwake, systemSleep, systemAwake

[files]

Array.<string>

File list. Present when type is files or print.

[searchTerm]

string

Present when type is files.

Examples:

Example of a `print` AppEvent object:

const e = {
  type: "print",
  files: [
      "/home/mike/Desktop/Document.pdf"
  ]
};

Also See: