ElectronApp.on('update-activity-state') method
ElectronApp › on(‘update-activity-state’)
Unofficial
Registers a listener for theupdate-activity-state event.Emitted when Handoff is about to be resumed on another device. macOS only.
Signature:
on(event: "update-activity-state", listener: (event: ElectronEvent, type: string, userInfo: unknown) => void): thisParameters:
| Parameter | Type | Description |
|---|---|---|
| event | "update-activity-state" | The event name. |
| listener | (event: ElectronEvent, type: string, userInfo: unknown) => void | The event handler. |
Returns: this — This ElectronApp instance.