npm i --save nativescript-contacts-chooser
- Version: 1.1.0
- GitHub: https://github.com/dammynex/nativescript-contacts-chooser
- NPM: https://www.npmjs.com/package/nativescript-contacts-chooser
- Downloads:
- Last Day: 0
- Last Week: 0
- Last Month: 0
nativescript-contacts-chooser
Installation
Describe your plugin installation steps. Ideally it would be something like:
tns plugin add nativescript-contacts-chooser
Usage
Describe any usage specifics for your plugin. Give examples for Android, iOS, Angular if needed. See nativescript-drop-down for example.
import { ContactsChooser, ContactsChooserResult } from 'nativescript-contacts-chooser';
//Request for permission (Android)
chooser.requestPermission();
//Choose contact
chooser.open()
.then((contact: ContactsChooserResult) => {
console.log(contact);
})
API
Describe your plugin methods and properties here. See nativescript-feedback for example.
Property | Description |
---|---|
requestPermission() | Request for permission to access contacts |
open() | Open contacts picker |
License
Apache License Version 2.0, January 2004