commonMain.io.dyte.mobilecorebridge.DyteEventChannel.kt Maven / Gradle / Ivy
package io.dyte.mobilecorebridge
/*
* DyteSink is a callback interface for sending data from the platform side to the Flutter side.
* It is used by the DyteChannel to send data to the Flutter side.
* The success method is used to send data to the Flutter side.
* The error method is used to send error to the Flutter side.
* */
interface DyteSink {
fun success(result: Any?)
fun error(errorCode: String, errorMessage: String?, errorDetails: Any?)
}