subscribe For
abstract fun subscribeFor( eventTypes: Array<String>, lifecycleOwner: LifecycleOwner? = null, listener: STWEventListener<STWEvent>)
Content copied to clipboard
Subscribes to the specific eventTypes, in the lifecycle of lifecycleOwner.
Only receives events when the lifecycle is in a STARTED state, otherwise events are dropped.