contact-picker.idl (1404B)
1 // GENERATED CONTENT - DO NOT EDIT 2 // Content was automatically extracted by Reffy into webref 3 // (https://github.com/w3c/webref) 4 // Source: Contact Picker API (https://w3c.github.io/contact-picker/) 5 6 [Exposed=Window] 7 partial interface Navigator { 8 [SecureContext, SameObject] readonly attribute ContactsManager contacts; 9 }; 10 11 enum ContactProperty { "address", "email", "icon", "name", "tel" }; 12 13 [Exposed=Window] 14 interface ContactAddress { 15 [Default] object toJSON(); 16 readonly attribute DOMString city; 17 readonly attribute DOMString country; 18 readonly attribute DOMString dependentLocality; 19 readonly attribute DOMString organization; 20 readonly attribute DOMString phone; 21 readonly attribute DOMString postalCode; 22 readonly attribute DOMString recipient; 23 readonly attribute DOMString region; 24 readonly attribute DOMString sortingCode; 25 readonly attribute FrozenArray<DOMString> addressLine; 26 }; 27 28 dictionary ContactInfo { 29 sequence<ContactAddress> address; 30 sequence<DOMString> email; 31 sequence<Blob> icon; 32 sequence<DOMString> name; 33 sequence<DOMString> tel; 34 }; 35 36 dictionary ContactsSelectOptions { 37 boolean multiple = false; 38 }; 39 40 [Exposed=Window, SecureContext] 41 interface ContactsManager { 42 Promise<sequence<ContactProperty>> getProperties(); 43 Promise<sequence<ContactInfo>> select(sequence<ContactProperty> properties, optional ContactsSelectOptions options = {}); 44 };