script::dom::notification

Function create_notification

Source
fn create_notification(
    global: &GlobalScope,
    title: DOMString,
    options: RootedTraceableBox<NotificationOptions>,
    origin: ImmutableOrigin,
    base_url: ServoUrl,
    fallback_timestamp: u64,
    proto: Option<HandleObject<'_>>,
    can_gc: CanGc,
) -> Fallible<DomRoot<Notification>>
Expand description

<https://notifications.spec.whatwg.org/#create-a-notification