Skip to content

ElectronApp.on('update-activity-state') method

ElectronApp › on(‘update-activity-state’)

Unofficial

Registers a listener for the update-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): this

Parameters:

ParameterTypeDescription
event"update-activity-state"The event name.
listener(event: ElectronEvent, type: string, userInfo: unknown) => voidThe event handler.

Returns: thisThis ElectronApp instance.