Contents

init(accountNickname:accountType:organizationName:requestedBalanceType:)

Initializes the intent object with the specified search parameters.

Declaration

init(accountNickname: INSpeakableString?, accountType: INAccountType, organizationName: INSpeakableString?, requestedBalanceType: INBalanceType)

Parameters

  • accountNickname:

    The nickname that the user assigned to the account in your app. Account nicknames make it easier for the user to refer to those accounts in Siri. For example, a user’s main checking account might be called “checking”.

  • accountType:

    The type of the account. For a list of possible values, see Inaccounttype.

  • organizationName:

    The name of an organization attached to an account.

  • requestedBalanceType:

    The type of balance requested by the user. Use this information to help identify the account to return. For a list of possible values, see Inbalancetype.

Return Value

An initialized intent object or nil if the object could not be created.

Discussion

Normally, you do not create instances of this class yourself. Instead, SiriKit creates instances when the user asks for account information. However, you can use this method during testing to create intent objects in order to validate your intent handling code paths.