-
Notifications
You must be signed in to change notification settings - Fork 72
/
appmanifest.idl
83 lines (72 loc) · 1.9 KB
/
appmanifest.idl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
// GENERATED CONTENT - DO NOT EDIT
// Content was automatically extracted by Reffy into reffy-reports
// (https://github.com/tidoust/reffy-reports)
// Source: Web App Manifest (https://w3c.github.io/manifest/)
[Exposed=Window]
interface BeforeInstallPromptEvent : Event {
constructor(DOMString type, optional EventInit eventInitDict = {});
Promise<PromptResponseObject> prompt();
};
dictionary PromptResponseObject {
AppBannerPromptOutcome userChoice;
};
enum AppBannerPromptOutcome {
"accepted",
"dismissed"
};
partial interface Window {
attribute EventHandler onappinstalled;
attribute EventHandler onbeforeinstallprompt;
};
dictionary WebAppManifest {
TextDirectionType dir = "auto";
DOMString lang;
USVString name;
USVString short_name;
USVString description;
sequence<ImageResource> icons;
sequence<ImageResource> screenshots;
sequence<USVString> categories;
DOMString iarc_rating_id;
USVString start_url;
DisplayModeType display = "browser";
OrientationLockType orientation;
USVString theme_color;
USVString background_color;
USVString scope;
sequence<ExternalApplicationResource> related_applications;
boolean prefer_related_applications = "false";
sequence<ShortcutItem> shortcuts;
};
enum TextDirectionType { "ltr", "rtl", "auto" };
enum DisplayModeType {
"fullscreen",
"standalone",
"minimal-ui",
"browser"
};
dictionary ImageResource {
required USVString src;
DOMString sizes;
USVString type;
USVString purpose;
USVString platform;
};
dictionary ShortcutItem {
required USVString name;
USVString short_name;
USVString description;
required USVString url;
sequence<ImageResource> icons;
};
dictionary ExternalApplicationResource {
required USVString platform;
USVString url;
DOMString id;
USVString min_version;
sequence<Fingerprint> fingerprints;
};
dictionary Fingerprint {
USVString type;
USVString value;
};