Protocol
TransactionsViewControllerDelegate
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.
Relationships
Conforms To
AnyObject
Types Conforming to TransactionsViewControllerDelegate
AccountDetailsViewController
A view controller that displays balance and transactions for a specific account. Required scopes:
accounts:read
,categories:read
,transactions:read
andtransactions:categorize
.LeftToSpendViewController
A view controller for displaying left to spend details. Required scopes:
statistics:read
,transactions:read
,transactions:categorize
,categories:read
andcalendar:read
.
Requirements
transactionsViewController(_:didSelectTransaction:)
func transactionsViewController(_ viewController: TransactionsViewController, didSelectTransaction transaction: Transaction)
Tells the delegate that the user selected a transaction.
Parameters
Name | Type | Description |
---|---|---|
viewController | TransactionsViewController |
The view controller that called this method. |
transaction | Transaction |
The transaction that the user selected. |
transactionsViewController(_:didFailWithError:)
func transactionsViewController(_ viewController: TransactionsViewController, didFailWithError error: Error)
Tells the delegate that an error occured when loading transactions.
Parameters
Name | Type | Description |
---|---|---|
viewController | TransactionsViewController |
The view controller that called this method. |
error | Error |
The error that occured. |