openSettings(completionHandler:)
Opens the iOS Settings app and shows the Call Blocking & Identification settings.
Declaration
func openSettings(completionHandler completion: (@Sendable ((any Error)?) -> Void)? = nil)func openSettings() async throwsParameters
- completion:
A block executed when the manager finishes opening the Call Directory panel.
- error
If an error occurred, an error object indicating how the operation failed; otherwise,
nil.
Discussion
Before a Call Directory extension can operate on incoming calls, the user must explicitly enable the extension in the iOS Settings app.
Use this method to open the Settings app and show the Call Blocking & Identification settings directly.