skrypton-api / com.waicool20.skrypton.jni.objects / WebViewHighlighter / showForAndDispose

showForAndDispose

fun showForAndDispose(seconds: Float, callback: () -> Unit = {}): Unit
fun showForAndDispose(seconds: Double, callback: () -> Unit = {}): Unit

Same as showFor but disposes the highlighter before calling the callback.

Parameters

seconds - Duration to show this highlight for in seconds.

callback - Called when the highlight is done showing.

fun showForAndDispose(duration: Long, unit: TimeUnit = TimeUnit.SECONDS, callback: () -> Unit = {}): Unit

Same as showFor but disposes the highlighter before calling the callback.

Parameters

duration - Duration to show this highlight for.

unit - Unit of the duration.

callback - Called when the highlight is done showing.