Table of Contents

Class ContactsManager

Namespace
CSharpToJavaScript.APIs.JS
Assembly
CSharpToJavaScript.dll
NOTE
Experimental
The ContactsManager 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.

-A Contact Picker for the Web
-Contact Picker API live demo

See also on MDN

Constructors

ContactsManager()

public ContactsManager()

Methods

GetProperties()

NOTE
Experimental
The getProperties() method of the
ContactsManager 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
Experimental
The select() method of the
ContactsManager 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

properties List<ContactProperty>
options ContactsSelectOptions

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:

Remarks