CSEventOwner

interface CSEventOwner

Functions

Link copied to clipboard
open fun later(function: () -> Unit): CSRegistration

open fun later(delayMilliseconds: Int, function: () -> Unit): CSRegistration

later should be here instead of extension so Any.later is not called by mistake There is strange issue where postOnMain invokes immediately for unknown reason, so this was rewritten to not fail, even 5ms caused issue on some device so..

Link copied to clipboard
open fun <T : Any> T.onMain(function: T.() -> Unit): CSRegistration?

onMain uses later(5) due to one strange rare multithreading issue where later function where executed earlier then later returned registration

Properties

Link copied to clipboard
abstract val registrations: CSRegistrations

Inheritors

Link copied to clipboard

Extensions

Link copied to clipboard
fun CSEventOwner.cancel(registration: CSRegistration): CSRegistration
@JvmName(name = "CSEventOwnerCancelNullable")
fun CSEventOwner.cancel(registration: CSRegistration?): Unit?
fun CSEventOwner.cancel(vararg registrations: CSRegistration?)
fun CSEventOwner.cancel(registrations: List<CSRegistration>?)
Link copied to clipboard
fun CSEventOwner.register(registration: CSRegistration): CSRegistration
fun CSEventOwner.register(key: Any, registration: CSRegistration): CSRegistration
@JvmName(name = "CSEventOwnerRegisterNullable")
fun CSEventOwner.register(registration: CSRegistration?): CSRegistration?
Link copied to clipboard
fun CSEventOwner.remove(registration: CSRegistration): CSRegistration
@JvmName(name = "CSEventOwnerRemoveNullable")
fun CSEventOwner.remove(registration: CSRegistration?): CSRegistration?