Skip to content

ElectronApp.updateCurrentActivity method

ElectronApp › updateCurrentActivity

Unofficial

Updates the current activity if its type matches type, merging the entries from userInfo. macOS only.

Signature:

updateCurrentActivity(type: string, userInfo: unknown): void

Parameters:

ParameterTypeDescription
typestringUniquely identifies the activity.
userInfounknownApp-specific state to merge into the current activity.

Returns: void