ElectronApp.setUserActivity method
ElectronApp › setUserActivity
Unofficial
Creates anNSUserActivity and sets it as the current activity. macOS only. Signature:
setUserActivity(type: string, userInfo: unknown, webpageURL?: string | undefined): voidParameters:
| 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