chromium/third_party/blink/renderer/modules/app_banner/before_install_prompt_event.idl

// Copyright 2015 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

[
    ActiveScriptWrappable,
    Exposed=Window
] interface BeforeInstallPromptEvent : Event {
    [CallWith=ExecutionContext] constructor(DOMString type, optional BeforeInstallPromptEventInit eventInitDict = {});
    [HighEntropy=Direct, Measure] readonly attribute FrozenArray<DOMString> platforms;
    [CallWith=ScriptState, RaisesException] readonly attribute Promise<AppBannerPromptResult> userChoice;
    [CallWith=ScriptState, RaisesException] Promise<AppBannerPromptResult> prompt();
};