You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to implement multiple crypto-currencies in my app. When I attempt to implement both Bitcoin Core & DashKit listener interfaces and their onTransactionUpdate functions class MainViewModel:ViewModel(), BitcoinKit.Listener, DashKit.Listener
I get a compiler error: Platform declaration clash: The following declarations have the same JVM signature (onTransactionsUpdate(Ljava/util/List;Ljava/util/List;)V):
When I tried to annotate one of the functions I get another error saying: '@JvmName' annotation is not applicable to this declaration.
What's the solution/workaround?
The text was updated successfully, but these errors were encountered:
I'm trying to implement multiple crypto-currencies in my app. When I attempt to implement both Bitcoin Core & DashKit listener interfaces and their onTransactionUpdate functions
class MainViewModel:ViewModel(), BitcoinKit.Listener, DashKit.Listener
override fun onTransactionsUpdate( inserted: List<TransactionInfo>, updated: List<TransactionInfo> ) { super.onTransactionsUpdate(inserted, updated) }
override fun onTransactionsUpdate( inserted: List<DashTransactionInfo>, updated: List<DashTransactionInfo> ) { TODO("Not yet implemented") }
I get a compiler error:
Platform declaration clash: The following declarations have the same JVM signature (onTransactionsUpdate(Ljava/util/List;Ljava/util/List;)V):
When I tried to annotate one of the functions I get another error saying:
'@JvmName' annotation is not applicable to this declaration.
What's the solution/workaround?
The text was updated successfully, but these errors were encountered: