Contents

confirm(intent:completion:)

Confirms the transaction details and validates the transaciton.

Declaration

optional func confirm(intent: INTransferMoneyIntent, completion: @escaping  @Sendable (INTransferMoneyIntentResponse) -> Void)
optional func confirm(intent: INTransferMoneyIntent) async -> INTransferMoneyIntentResponse

Parameters

  • intent:

    The intent object containing details about the user’s request. Your handler object has already resolved the properties of 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. The handler has no return value and takes the following parameter:

    response

    The Intransfermoneyintentresponse object containing the details to confirm with the user. This parameter must not be nil.

Discussion

Implement this method to resolve the transaction details. Use this method to validate that scheduling payment for the specified bill is possible. You might use this method to validate the following information:

  • The user logged in to your app, and is able to transfer money between accounts.

  • The user’s accounts are valid and the source account contains sufficient funds.

At some point in your implementation, execute the provided handler block with a response object containing the transaction details. Siri displays this information to the user during the confirmation process. For more information about creating the response object, see INTransferMoneyIntentResponse.