TinkMoneyManagerUI Documentation Beta

Protocol Categorize​Transaction​View​Controller​Delegate

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.

CategorizeTransactionViewControllerDelegate CategorizeTransactionViewControllerDelegate AnyObject AnyObject CategorizeTransactionViewControllerDelegate->AnyObject ActionableInsightsViewController ActionableInsightsViewController ActionableInsightsViewController->CategorizeTransactionViewControllerDelegate

Conforms To

AnyObject

Types Conforming to Categorize​Transaction​View​Controller​Delegate

ActionableInsightsViewController

A view controller that displays a list actionable insights.

Requirements

categorize​Transaction​View​Controller(_:​will​Categorize​As:​)

func categorizeTransactionViewController(_ controller: CategorizeTransactionViewController, willCategorizeAs category: TinkCore.Category)

Tells the delegate that the view controller will start categorizing transactions.

Parameters

controller Categorize​Transaction​View​Controller

The view controller that called this method.

category Tink​Core.​Category

The category that the user picked.

categorize​Transaction​View​Controller(_:​did​Categorize:​category:​)

func categorizeTransactionViewController(_ controller: CategorizeTransactionViewController, didCategorize transactionIDs: [Transaction.ID], category: TinkCore.Category)

Tells the delegate that the view controller finished categorizing transactions successfully.

Parameters

controller Categorize​Transaction​View​Controller

The view controller that called this method.

transaction​IDs [Transaction.​ID]

Identifiers of the transactions that were recategorized.

category Tink​Core.​Category

The category that the user picked.

categorize​Transaction​View​Controller(_:​did​Fail​With​Error:​)

func categorizeTransactionViewController(_ controller: CategorizeTransactionViewController, didFailWithError error: Error)

Tells the delegate that an error occured when categorizing.

Parameters

controller Categorize​Transaction​View​Controller

The view controller that called this method.

error Error

The error that occured when trying to recategorize.

categorize​Transaction​View​Controller​Did​Cancel(_:​)

func categorizeTransactionViewControllerDidCancel(_ controller: CategorizeTransactionViewController)

Tells the delegate that the user cancelled the categorization.

Parameters

controller Categorize​Transaction​View​Controller

The view controller that called this method.