Skip to content

ElectronApp.setUserActivity method

ElectronApp › setUserActivity

Unofficial

Creates an NSUserActivity and sets it as the current activity. macOS only.

Signature:

setUserActivity(type: string, userInfo: unknown, webpageURL?: string | undefined): void

Parameters:

Parameter Type Description
type string Uniquely identifies the activity.
userInfo unknown App-specific state to store for use by another device.
webpageURL? string | undefined The webpage to load in a browser if no suitable app is installed on the resuming device.

Returns: void