apple_bundle/entitlements/contacts.rs
1use serde::{Deserialize, Serialize};
2
3/// Contacts
4#[derive(Serialize, Deserialize, Clone, Default, Debug, PartialEq, Eq)]
5pub struct Contacts {
6 /// A Boolean value that indicates whether the app may access the notes stored in
7 /// contacts.
8 ///
9 /// When your app loads one or more entries from the user’s contacts—for example, by
10 /// calling the unifiedContacts(matching:keysToFetch:) method—you provide a list
11 /// of keys specifying what fields to fetch. If your app links against iOS 13 or
12 /// later, the app must have the com.apple.developer.contacts.notes entitlement to
13 /// request the note field using CNContactNoteKey. Without the entitlement, your
14 /// app receives an unauthorizedKeys error when trying to fetch notes.
15 ///
16 /// To add the entitlement to your app, in the Xcode property list editor, set the
17 /// entitlement’s type to Boolean, and the corresponding value to YES.
18 /// Before you can submit an app with this entitlement to the App Store, you must
19 /// first get permission to use the entitlement.
20 /// Request permission at https://developer.apple.com/contact/request/contact-note-field.
21 ///
22 /// ## Availability
23 /// * iOS 13.0+
24 ///
25 /// ## Framework
26 /// * Contacts
27 #[serde(
28 rename = "com.apple.developer.contacts.notes",
29 serialize_with = "crate::serialize_option",
30 skip_serializing_if = "Option::is_none"
31 )]
32 pub carplay_audio: Option<bool>,
33}