filterIsInstance

fun <E : Event> filterIsInstance(kClass: KClass<out E>): EventChannel<E>
fun <E : Event> filterIsInstance(clazz: <Error class: unknown class><out E>): EventChannel<E>

过滤事件的类型. 返回一个只包含 E 类型事件的 EventChannel

See also

获取更多信息