Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EventChannel ¶
type EventChannel struct { EventHandler // contains filtered or unexported fields }
EventChannel defines event channel with passing events to platform.
func (*EventChannel) Cancel ¶
func (ec *EventChannel) Cancel()
Cancel closes EventChannel and executed actions assigned with SetCancel.
func (*EventChannel) SetCancel ¶
func (ec *EventChannel) SetCancel(cancel context.CancelFunc)
SetCancel allows adding cancel action executed closing EventChannel.
func (*EventChannel) SetHandler ¶
func (ec *EventChannel) SetHandler(handler EventHandler)
SetHandler binds platform-side EventHandler implementation to EventChannel.
type EventHandler ¶
EventHandler defines interface for binding Event channel between platform and gomobile backend.
Click to show internal directories.
Click to hide internal directories.