confirm(intent:completion:)
Confirms the details of the request to share the user’s focus status.
Declaration
optional func confirm(intent: INShareFocusStatusIntent, completion: @escaping @Sendable (INShareFocusStatusIntentResponse) -> Void)optional func confirm(intent: INShareFocusStatusIntent) async -> INShareFocusStatusIntentResponseParameters
- intent:
The Insharefocusstatusintent that contains details about the request.
- completion:
The handler block to execute with your response. Execute this handler in your implementation of this method. This handler has no return value and takes the following parameter:
- response
The Insharefocusstatusintentresponse that contains the response code indicating whether your app can share the user’s focus status.