Expand description
Send message notifications (brief auto-expiring OS window element) to your user. Can also be used with the Notification Web API.
§Cargo features
- windows7-compat: Deprecated and does nothing, since Tauri no longer supports Windows 7.
Structs§
- Action
- A button the user can tap on a notification, belonging to an
ActionType. - Action
Builder - Builder for an
Action, created withAction::builder. - Action
Performed - An action the user performed on a notification, delivered to the handlers of
Notification::on_actionand to theonActionlisteners of the JavaScript API. - Action
Type - A group of
Actions a notification can display, referenced byNotificationBuilder::action_type_id. - Action
Type Builder - Builder for an
ActionType, created withActionType::builder. - Active
Notification - A notification that was delivered and is still visible in the notification center.
- Attachment
- A media file attached to a notification.
- Channel
- A notification channel, the category users configure notification behavior on.
- Channel
Builder - Builder for a
Channel, created withChannel::builder. - Notification
- Access to the notification APIs.
- Notification
Builder - The notification builder.
- Notification
Data - The payload of a notification, as sent to the platform implementation.
- Pending
Notification - A notification that was scheduled and has not been delivered yet.
- Schedule
Interval - The set of date fields a notification must match to be delivered.
Enums§
- Error
- Errors returned by the notification plugin.
- Importance
- How much the notifications of a
Channelinterrupt the user. - Permission
State - Permission state.
- Schedule
- Defines when a notification is delivered.
- Schedule
Every - The unit of the repeating interval used by
Schedule::Every. - Visibility
- How much of a notification is shown on the lock screen.
Traits§
- Notification
Ext - Extensions to
tauri::App,tauri::AppHandle,tauri::WebviewWindow,tauri::Webviewandtauri::Windowto access the notification APIs.
Functions§
- init
- Initializes the plugin.
Type Aliases§
- Result
- Alias for a
std::result::Resultwith the error type set toError.