createChannel
createChannel(
channel
):Promise
<void
>
Defined in: plugins/notification/guest-js/index.ts:519
Creates a notification channel.
Promise
<void
>
A promise indicating the success or failure of the operation.
import { createChannel, Importance, Visibility } from '@tauri-apps/plugin-notification';await createChannel({ id: 'new-messages', name: 'New Messages', lights: true, vibration: true, importance: Importance.Default, visibility: Visibility.Private});
2.0.0
© 2025 Tauri Contributors. CC-BY / MIT