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:

Parameter Type Description
event "update-activity-state" The event name.
listener (event: ElectronEvent, type: string, userInfo: unknown) => void The event handler.

Returns: thisThis ElectronApp instance.