addBlockingEntry(withNextSequentialPhoneNumber:)
Adds a blocking entry with the specified phone number.
Declaration
func addBlockingEntry(withNextSequentialPhoneNumber phoneNumber: CXCallDirectoryPhoneNumber)Parameters
- phoneNumber:
The phone number to be blocked.
Mentioned in
Discussion
When a phone number is blocked, the system telephony provider will disallow incoming calls from that phone number without displaying them to the user.
Call this method on the instance of CXCallDirectoryExtensionContext passed as an argument to the block parameter of the CXCallDirectoryProvider instance method beginRequest(with:).