@capgo/capacitor-contacts 8.1.4 → 8.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md
CHANGED
|
@@ -1,13 +1,28 @@
|
|
|
1
1
|
# @capgo/capacitor-contacts
|
|
2
|
-
|
|
2
|
+
|
|
3
|
+
Read, create, update and delete device contacts and groups from your Capacitor app, or open the native contact screens. One API for iOS and Android.
|
|
4
|
+
|
|
5
|
+
<a href="https://capgo.app/?ref=plugin_contacts"><img src="https://capgo.app/readme-banner.svg?repo=Cap-go/capacitor-contacts" alt="Capgo - Instant updates for Capacitor" /></a>
|
|
3
6
|
|
|
4
7
|
<div align="center">
|
|
5
|
-
<
|
|
6
|
-
<h2><a href="https://capgo.app/
|
|
8
|
+
<p><b>Capgo</b>: push fixes to your Capacitor users in minutes, build signed iOS and Android apps without a Mac, and roll back in one click.</p>
|
|
9
|
+
<h2><a href="https://capgo.app/register/?ref=plugin_contacts">➡️ Get started for free</a></h2>
|
|
10
|
+
<p>14-day unlimited free trial. No credit card required</p>
|
|
11
|
+
<p><a href="https://capgo.app/consulting/?ref=plugin_contacts">Missing a feature? We'll build the plugin for you 💪</a></p>
|
|
7
12
|
</div>
|
|
8
13
|
|
|
14
|
+
<p align="center">
|
|
15
|
+
<img src="https://raw.githubusercontent.com/Cap-go/capacitor-contacts/main/assets/github-social-preview.png" alt="@capgo/capacitor-contacts for Capacitor apps" width="300" />
|
|
16
|
+
</p>
|
|
17
|
+
|
|
18
|
+
## Key features
|
|
9
19
|
|
|
10
|
-
|
|
20
|
+
- **Read contacts**: `getContacts()`, `getContactById()` and `countContacts()`.
|
|
21
|
+
- **Write contacts**: `createContact()`, `updateContactById()` and `deleteContactById()`.
|
|
22
|
+
- **Native screens**: `displayContactById()`, `displayCreateContact()` and `displayUpdateContactById()` open the system UI.
|
|
23
|
+
- **Groups and accounts**: `getGroups()`, `createGroup()`, `deleteGroupById()` and `getAccounts()`.
|
|
24
|
+
- **Permissions**: `checkPermissions()`, `requestPermissions()` and `openSettings()`.
|
|
25
|
+
- **Platforms**: iOS and Android. iOS uses the Contacts framework, Android uses `ContactsContract`. Not available on web.
|
|
11
26
|
|
|
12
27
|
## Documentation
|
|
13
28
|
|
|
@@ -40,7 +40,7 @@ import java.util.Set;
|
|
|
40
40
|
)
|
|
41
41
|
public class CapacitorContactsPlugin extends Plugin {
|
|
42
42
|
|
|
43
|
-
private final String pluginVersion = "8.1.
|
|
43
|
+
private final String pluginVersion = "8.1.6";
|
|
44
44
|
private static final int BATCH_SIZE = 50;
|
|
45
45
|
|
|
46
46
|
// MARK: - Implemented API surface
|
|
@@ -5,7 +5,7 @@ import UIKit
|
|
|
5
5
|
|
|
6
6
|
@objc(CapacitorContactsPlugin)
|
|
7
7
|
public class CapacitorContactsPlugin: CAPPlugin, CAPBridgedPlugin {
|
|
8
|
-
private let pluginVersion: String = "8.1.
|
|
8
|
+
private let pluginVersion: String = "8.1.6"
|
|
9
9
|
public let identifier = "CapacitorContactsPlugin"
|
|
10
10
|
public let jsName = "CapacitorContacts"
|
|
11
11
|
public let pluginMethods: [CAPPluginMethod] = [
|