//woua-matrimony-sdk/com.woualabs.matrimony.mvvm.dispatcher/EventsDispatcher
EventsDispatcher¶
[common, android, iOS, js]\ class EventsDispatcher<ListenerType : Any>
Constructors¶
EventsDispatcher | [android] fun EventsDispatcher(executor: Executor) |
EventsDispatcher | [android] fun <ListenerType : Any> EventsDispatcher(executor: Executor, listener: ListenerType) Constructor without lifecycle connection. |
EventsDispatcher | [iOS] fun EventsDispatcher(queue: dispatch_queue_t) |
EventsDispatcher | [iOS] fun <ListenerType : Any> EventsDispatcher(listener: ListenerType) |
Functions¶
Name | Summary |
---|---|
bind | [android] fun bind(lifecycleOwner: LifecycleOwner, listener: ListenerType) |
dispatchEvent | [common, android, iOS, js] [common, android, iOS, js] fun dispatchEvent(block: ListenerType.() -> Unit) |
Properties¶
Name | Summary |
---|---|
listener | [iOS] var listener: ListenerType? |