only / com.skydoves.only

Package com.skydoves.only

Types

Only

Easy way to run block codes only as many times as necessary.

object Only

Extensions for External Classes

android.content.Context

android.view.View

Functions

only

Run Only by Only.Builder using kotlin dsl.

fun only(name: String, times: Int, block: Builder.() -> Unit): Unit

onlyOnce

Run only once Only by Only.Builder using kotlin dsl.

fun onlyOnce(name: String, times: Int = 1, block: Builder.() -> Unit): Unit

onlyThrice

Run only thrice Only by Only.Builder using kotlin dsl.

fun onlyThrice(name: String, times: Int = 3, block: Builder.() -> Unit): Unit

onlyTwice

Run only twice Only by Only.Builder using kotlin dsl.

fun onlyTwice(name: String, times: Int = 2, block: Builder.() -> Unit): Unit