Skip to content
This repository has been archived by the owner on Oct 28, 2022. It is now read-only.

Commit

Permalink
Change readme file
Browse files Browse the repository at this point in the history
  • Loading branch information
ant013 committed Feb 18, 2019
1 parent d55d988 commit 0dd62e8
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion README.md
Expand Up @@ -192,10 +192,15 @@ class Manager {

extension Manager: BitcoinKitDelegate {

public func transactionsUpdated(bitcoinKit: BitcoinKit, inserted: [TransactionInfo], updated: [TransactionInfo], deleted: [Int]) {
public func transactionsUpdated(bitcoinKit: BitcoinKit, inserted: [TransactionInfo], updated: [TransactionInfo]) {
// do something with transactions
}

public func transactionsDeleted(hashes: [String]) {
// do something with transactions
}


public func balanceUpdated(bitcoinKit: BitcoinKit, balance: Int) {
// do something with balance
}
Expand All @@ -215,6 +220,11 @@ extension Manager: BitcoinKitDelegate {

}
```
Listener events are run in a dedicated background thread. It can be switched to main thread by setting the ```delegateQueue``` property to ```DispatchQueue.main```

```swift
bitcoinKit.delegateQueue = DispatchQueue.main
```

## Prerequisites

Expand Down

0 comments on commit 0dd62e8

Please sign in to comment.