One Logo Pool Ball
ContactsUI · IOS API REFERENCE

ContactAccessButton

struct · iOS 18.0+ · SDK 27.1

@MainActor @preconcurrency struct ContactAccessButton

Members (1)

init · iOS 18.0+

init

TypeScript
static init(query: string, ignoredEmails?: (Array<string>) | null, ignoredPhoneNumbers?: (Array<string>) | null, approvalCallback?: (((arg0: Array<string>) => void)) | null): Promise<ContactAccessButton>
Swift declaration
@MainActor @preconcurrency init(queryString query: String, ignoredEmails: Set<String>? = nil, ignoredPhoneNumbers: Set<String>? = nil, approvalCallback: (([String]) -> Void)? = nil)

Creates a ContactAccessButton to allow users to quickly add contacts in the Limited Access state Parameters: - queryString: Required. This is the string that will be used to search for matches in the database that aren't yet part of the limited access set for this app - ignoredEmails: skip adding any contacts having an email in this list. They will not be discovered by the query - ignoredPhoneNumbers: skip adding any contacts having a phone number in this list. They will not be discovered by the query - approvalCallback: Invoked with a list of contact IDs added by the button, whenever the user approves new contacts to be added to the set

Skipped declarations

1 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.

ContactAccessButton.body

This protocol needs associated types that cannot yet cross the bridge.

All ContactsUI types →