Skip to content

Latest commit

 

History

History
 
 

views-coroutines

Views Coroutines

Android Views + Kotlin coroutines.

Supported platforms: Android.

Setup

If you want to use this dependency without using one of the fun packs, you can use Splitties.viewsCoroutines, provided you have refreshVersions added to the project.

For reference, the maven coordinates of this module are com.louiscad.splitties:splitties-views-coroutines.

Content

Extension functions:

Name Description
View.awaitOneClick Suspends until the view is clicked. Cancellable.
View.awaitOneLongClick Suspends until the view is long clicked. Cancellable.
View.visibleUntilClicked Makes the view visible until it is clicked and the passed lambda is executed. Cancellable.
View.visibleUntilLongClicked Makes the view visible until it is long clicked and the passed lambda is executed. Cancellable.
View.visibleInScope Makes the view visible while the passed lambda is executing.
View.goneInScope Makes the view gone while the passed lambda is executing.
View.invisibleInScope Makes the view invisible while the passed lambda is executing.