CRNActionType
Electron APIs / CRN / CRNActionType
type CRNActionType =
| "Dismissed"
| "IgnoredByLaunchingGame"
| "Timeout"
| "TurnOffNotificationsRequested"
| "OpenExternalUrl"
| "DownloadExternalApp"
| "CancelDownloadExternalApp"
| "CloseClickedWhileDownloadingExternalApp"
| "ForceClosed";
All supported notification actions.
Represents the different ways a user or the system can interact with or dismiss a notification. It is useful for analytics, handling UI state changes, or triggering specific behavior based on user intent or automated conditions.
Example
function handleAction(action: CRNActionType) {
if (action === "OpenExternalUrl") {
// Open a browser tab
}
}