Protocol
CategorizeTransactionViewControllerDelegate
public protocol CategorizeTransactionViewControllerDelegate: AnyObject
A set of methods that your delegate object can implement to track when the user picks a category and what transactions to categorize, or to track when the categorization fails.
Relationships
Conforms To
AnyObject
Types Conforming to CategorizeTransactionViewControllerDelegate
ActionableInsightsViewController
A view controller that displays a list actionable insights.
Requirements
categorizeTransactionViewController(_:willCategorizeAs:)
func categorizeTransactionViewController(_ controller: CategorizeTransactionViewController, willCategorizeAs category: TinkCore.Category)
Tells the delegate that the view controller will start categorizing transactions.
Parameters
Name | Type | Description |
---|---|---|
controller | CategorizeTransactionViewController |
The view controller that called this method. |
category | TinkCore.Category |
The category that the user picked. |
categorizeTransactionViewController(_:didCategorize:category:)
func categorizeTransactionViewController(_ controller: CategorizeTransactionViewController, didCategorize transactionIDs: [Transaction.ID], category: TinkCore.Category)
Tells the delegate that the view controller finished categorizing transactions successfully.
Parameters
Name | Type | Description |
---|---|---|
controller | CategorizeTransactionViewController |
The view controller that called this method. |
transactionIDs | [Transaction.ID] |
Identifiers of the transactions that were recategorized. |
category | TinkCore.Category |
The category that the user picked. |
categorizeTransactionViewController(_:didFailWithError:)
func categorizeTransactionViewController(_ controller: CategorizeTransactionViewController, didFailWithError error: Error)
Tells the delegate that an error occured when categorizing.
Parameters
Name | Type | Description |
---|---|---|
controller | CategorizeTransactionViewController |
The view controller that called this method. |
error | Error |
The error that occured when trying to recategorize. |
categorizeTransactionViewControllerDidCancel(_:)
func categorizeTransactionViewControllerDidCancel(_ controller: CategorizeTransactionViewController)
Tells the delegate that the user cancelled the categorization.
Parameters
Name | Type | Description |
---|---|---|
controller | CategorizeTransactionViewController |
The view controller that called this method. |