/// <summary> /// <para> /// Handles a request to tear down the most recently created event stream. /// </para> /// <para> /// Any uncaught exception thrown by this method will be caught by the channel implementation and logged. /// An error result message will be sent back to Flutter. /// </para> /// <para> /// The channel implementation may call this method with null arguments to separate a pair of two consecutive set up requests. /// Such request pairs may occur during Flutter hot restart. /// Any uncaught exception thrown in this situation will be logged without notifying Flutter. /// </para> /// <para> /// Invoked when the first listener is registered with the Stream associated to this channel on the Flutter side. /// </para> /// </summary> /// <param name="arguments">Stream configuration arguments, possibly null.</param> /// <param name="events">An <see cref="EventChannel.IEventSink"/> for emitting events to the Flutter receiver.</param> public void OnListen(Java.Lang.Object arguments, EventChannel.IEventSink events) { _events = events; }
public void OnListen(Object p0, EventChannel.IEventSink p1) { _eventSink = p1; }
/// <summary> /// <para> /// Handles a request to tear down the most recently created event stream. /// </para> /// <para> /// Any uncaught exception thrown by this method will be caught by the channel implementation and logged. /// An error result message will be sent back to Flutter. /// </para> /// <para> /// The channel implementation may call this method with null arguments to separate a pair of two consecutive set up requests. /// Such request pairs may occur during Flutter hot restart. /// Any uncaught exception thrown in this situation will be logged without notifying Flutter. /// </para> /// <para> /// Invoked when the last listener is deregistered from the Stream associated to this channel on the Flutter side. /// </para> /// </summary> /// <param name="arguments">Stream configuration arguments, possibly null.</param> public void OnCancel(Object arguments) { _events = null; }
public void OnCancel(Object p0) { _eventSink = null; }