Initializer

init(billPayee:paymentDateRange:billType:status:dueDateRange:)

Initializes the search for bills intent object with the specified search parameters.

Declaration

init(billPayee: INBillPayee?, paymentDateRange: INDateComponentsRange?, billType: INBillType, status: INPaymentStatus, dueDateRange: INDateComponentsRange?)

Parameters

billPayee

The entity that created the bill. The user must configure payees in advance using your app. Use this parameter to search for bills from a specific organization.

paymentDateRange

The date range during which payment was made. Use this parameter to search for bills that were paid during the specified date range.

billType

The type of bill being paid. Use this parameter to search for bills of a specific type. Specify INBillType.unknown to search for bills of any type.

status

The current status of the bill. Use this parameter to search for bills based on whether they are pending, have already been paid, or were not paid because of an error.

dueDateRange

The date range during which payment must be made. Use this parameter to search for bills whose due date falls within the specified date range.

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 to search for bills. However, you can use this method during testing to create intent objects in order to validate your intent handling code paths.