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:

ParameterTypeDescription
typestringUniquely identifies the activity.
userInfounknownApp-specific state to store for use by another device.
webpageURL?string | undefinedThe webpage to load in a browser if no suitable app is installed on the resuming device.

Returns: void