Contents

handle(intent:completion:)

Handles the intent that shares the user’s focus status.

Declaration

func handle(intent: INShareFocusStatusIntent, completion: @escaping  @Sendable (INShareFocusStatusIntentResponse) -> Void)
func handle(intent: INShareFocusStatusIntent) async -> INShareFocusStatusIntentResponse

Parameters

  • intent:

    The Insharefocusstatusintent that contains details about the request.

  • completion:

    The closure 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 you create that reports your ability to handle the request.

See Also

Processing the Intent