Class ContactsManager
- Namespace
- CSharpToJavaScript.APIs.JS
- Assembly
- CSharpToJavaScript.dll
NOTE
ExperimentalContactsManager interface of the Contact Picker API allows users to select entries from their contact list and share limited details of the selected entries with a website or application.
[Value("ContactsManager")]
public class ContactsManager
- Inheritance
-
ContactsManager
- Inherited Members
Remarks
The ContactsManager is available through the global 'navigator.Contacts' property.
Constructors
ContactsManager()
public ContactsManager()
Methods
GetProperties()
NOTE
ExperimentalgetProperties() method of theContactsManager interface returns a {{jsxref('Promise')}} which resolves
with an 'Array' of 'String' indicating which contact
properties are available.
[Value("getProperties")]
public Task<List<ContactProperty>> GetProperties()
Returns
- Task<List<ContactProperty>>
Returns a 'Promise' that resolves with an 'Array' of 'String' naming the contact properties that can be returned by the current system.Properties can include the following:
Remarks
Select(List<ContactProperty>, ContactsSelectOptions)
NOTE
Experimentalselect() method of theContactsManager interface returns a {{jsxref('Promise')}} which, when
resolved, presents the user with a contact picker which allows them to select contact(s)
they wish to share. This method requires a user gesture for the 'Promise' to
resolve.
[Value("select")]
public Task<List<ContactInfo>> Select(List<ContactProperty> properties, ContactsSelectOptions options = null)
Parameters
propertiesList<ContactProperty>optionsContactsSelectOptions
Returns
- Task<List<ContactInfo>>
Returns a 'Promise' that resolves with an array of objects containing contact information. Each object represents a single contact may contain the following properties: