only
/
com.skydoves.only
/
Only
/
onDoTwice
androidJvm
on
Do
Twice
@
JvmStatic
()
fun
onDoTwice
(name:
String
, onDo:
Runnable
, onDone:
Runnable
, version:
String
= ""):
Only
Content copied to clipboard
inline fun
onDoTwice
(name:
String
, crossinline onDo: (
Int
) ->
Unit
, crossinline onDone: () ->
Unit
= {}, version:
String
= ""):
Only
Content copied to clipboard
execute the onDo block only twice.
@
JvmStatic
()
fun
onDoTwice
(name:
String
, onDo:
Runnable
, onDone:
Runnable
, onLastDo:
Runnable
, onBeforeDone:
Runnable
, version:
String
= ""):
Only
Content copied to clipboard
inline fun
onDoTwice
(name:
String
, crossinline onDo: (
Int
) ->
Unit
, crossinline onDone: () ->
Unit
= {}, crossinline onLastDo: () ->
Unit
= {}, crossinline onBeforeDone: () ->
Unit
= {}, version:
String
= ""):
Only
Content copied to clipboard
execute the onDo block only twice with onLastDo and onBeforeDone.