![]() |
Flutter Engine
The Flutter Engine
|
Public Member Functions | |
void | success (Object event) |
void | error (String errorCode, String errorMessage, Object errorDetails) |
void | endOfStream () |
Event callback. Supports dual use: Producers of events to be sent to Flutter act as clients of this interface for sending events. Consumers of events sent from Flutter implement this interface for handling received events (the latter facility has not been implemented yet).
Definition at line 161 of file EventChannel.java.
void io.flutter.plugin.common.EventChannel.EventSink.endOfStream | ( | ) |
Consumes end of stream. Ensuing calls to success(Object)
or error(String,
String, Object)
, if any, are ignored.
void io.flutter.plugin.common.EventChannel.EventSink.error | ( | String | errorCode, |
String | errorMessage, | ||
Object | errorDetails | ||
) |
Consumes an error event.
errorCode | an error code String. |
errorMessage | a human-readable error message String, possibly null. |
errorDetails | error details, possibly null |
void io.flutter.plugin.common.EventChannel.EventSink.success | ( | Object | event | ) |
Consumes a successful event.
event | the event, possibly null. |