Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Public Member Functions | List of all members
io.flutter.plugin.common.EventChannel.EventSink Interface Reference

Public Member Functions

void success (Object event)
 
void error (String errorCode, String errorMessage, Object errorDetails)
 
void endOfStream ()
 

Detailed Description

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.

Member Function Documentation

◆ endOfStream()

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.

◆ error()

void io.flutter.plugin.common.EventChannel.EventSink.error ( String  errorCode,
String  errorMessage,
Object  errorDetails 
)

Consumes an error event.

Parameters
errorCodean error code String.
errorMessagea human-readable error message String, possibly null.
errorDetailserror details, possibly null

◆ success()

void io.flutter.plugin.common.EventChannel.EventSink.success ( Object  event)

Consumes a successful event.

Parameters
eventthe event, possibly null.

The documentation for this interface was generated from the following file: