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

showFor

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

Shows the highlight for a given duration.

Parameters

seconds - Duration to show this highlight for in seconds.

callback - Called when the highlight is done showing.

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

Shows the highlight for a given duration.

Parameters

duration - Duration to show this highlight for.

unit - Unit of the duration.

callback - Called when the highlight is done showing.