Contents

handle(intent:completion:)

Handles changing the climate control settings.

Declaration

func handle(intent: INSetClimateSettingsInCarIntent, completion: @escaping  @Sendable (INSetClimateSettingsInCarIntentResponse) -> Void)
func handle(intent: INSetClimateSettingsInCarIntent) async -> INSetClimateSettingsInCarIntentResponse

Parameters

  • intent:

    The intent object containing details about the user’s request. Your handler has already resolved and confirmed the information in this object.

  • completion:

    The handler block to execute with your response. You must execute this handler at some point during your implementation of this method. This handler has no return value and takes the following parameter:

    response

    The Insetclimatesettingsincarintentresponse object you create to report the status of the request. This parameter must not be nil.

Discussion

Your implementation of this method should communicate with the vehicle and update the vehicle’s climate settings using the information in the intent object. When done, execute the provided block with a response object indicating whether or not the operation was successful.