removeAfter

fun removeAfter(removeAfterMs: Long): UIElement

The UIElement is automatically removed after removeAfterMsms

Time remove timeout countdown starts from the element first draw after the removeAfter method was called

Set the removeAfterMs to 0 to cancel it's automatic removal

Return

this

Parameters

removeAfterMs

timeout in milliseconds the element will be automatically removed


fun removeAfter(removeAfterMs: Long, onRemove: (UIElement) -> Unit): UIElement

The UIElement is automatically removed after removeAfterMsms

Time remove timeout countdown starts from the element first draw after the removeAfter method was called

Set the removeAfterMs to 0 to cancel it's automatic removal

Return

this

Parameters

removeAfterMs

timeout in milliseconds the element will be automatically removed

onRemove

callback function which is called after the element has been automatically removed