TinkMoneyManagerUI Documentation Beta

Protocol Transactions​View​Controller​Delegate

public protocol TransactionsViewControllerDelegate: AnyObject

A set of methods that your delegate object can implement to track when the user selects a transaction, or to track when the loading transactions fails.

TransactionsViewControllerDelegate TransactionsViewControllerDelegate AnyObject AnyObject TransactionsViewControllerDelegate->AnyObject LeftToSpendViewController LeftToSpendViewController LeftToSpendViewController->TransactionsViewControllerDelegate AccountDetailsViewController AccountDetailsViewController AccountDetailsViewController->TransactionsViewControllerDelegate

Conforms To

AnyObject

Types Conforming to Transactions​View​Controller​Delegate

AccountDetailsViewController

A view controller that displays balance and transactions for a specific account. Required scopes: accounts:read, categories:read, transactions:read and transactions:categorize.

LeftToSpendViewController

A view controller for displaying left to spend details. Required scopes: statistics:read, transactions:read, transactions:categorize, categories:read and calendar:read .

Requirements

transactions​View​Controller(_:​did​Select​Transaction:​)

func transactionsViewController(_ viewController: TransactionsViewController, didSelectTransaction transaction: Transaction)

Tells the delegate that the user selected a transaction.

Parameters

view​Controller Transactions​View​Controller

The view controller that called this method.

transaction Transaction

The transaction that the user selected.

transactions​View​Controller(_:​did​Fail​With​Error:​)

func transactionsViewController(_ viewController: TransactionsViewController, didFailWithError error: Error)

Tells the delegate that an error occured when loading transactions.

Parameters

view​Controller Transactions​View​Controller

The view controller that called this method.

error Error

The error that occured.