https://github.com/satoshun/coroutinebinding
Kotlin Coroutine binding APIs for Android's UI widgets
https://github.com/satoshun/coroutinebinding
coroutines-android kotlin view
Last synced: 6 months ago
JSON representation
Kotlin Coroutine binding APIs for Android's UI widgets
- Host: GitHub
- URL: https://github.com/satoshun/coroutinebinding
- Owner: satoshun
- License: apache-2.0
- Created: 2018-04-22T22:46:45.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2019-09-14T09:21:29.000Z (almost 6 years ago)
- Last Synced: 2023-08-01T22:38:32.822Z (almost 2 years ago)
- Topics: coroutines-android, kotlin, view
- Language: Kotlin
- Homepage:
- Size: 720 KB
- Stars: 50
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
[](https://maven-badges.herokuapp.com/maven-central/com.github.satoshun.coroutinebinding/coroutinebinding)
[](https://circleci.com/gh/satoshun/CoroutineBinding/tree/master)# CoroutineBinding
Coroutine binding APIs for Android UI widgets from the platform and support libraries.
## Download
Platform bindings:
```groovy
implementation 'com.github.satoshun.coroutinebinding:coroutinebinding:{latest-version}'
```'appcompat' library bindings:
```groovy
implementation 'com.github.satoshun.coroutinebinding:coroutinebinding-appcompat:{latest-version}'
```'constraintLayout' library bindings:
```groovy
implementation 'com.github.satoshun.coroutinebinding:coroutinebinding-constraintlayout:{latest-version}'
```'androidx core' library bindings:
```groovy
implementation 'com.github.satoshun.coroutinebinding:coroutinebinding-core:{latest-version}'
```'DrawerLayout' library bindings:
```groovy
implementation 'com.github.satoshun.coroutinebinding:coroutinebinding-drawerlayout:{latest-version}'
```'Material component' library bindings:
```groovy
implementation 'com.github.satoshun.coroutinebinding:coroutinebinding-material:{latest-version}'
```'RecyclerView' library bindings:
```groovy
implementation 'com.github.satoshun.coroutinebinding:coroutinebinding-recyclerview:{latest-version}'
```'SlidingPaneLayout' library bindings:
```groovy
implementation 'com.github.satoshun.coroutinebinding:coroutinebinding-slidingpanelayout:{latest-version}'
```'SwipeRefreshLayout' library bindings:
```groovy
implementation 'com.github.satoshun.coroutinebinding:coroutinebinding-swiperefreshlayout:{latest-version}'
```'ViewPager' library bindings:
```groovy
implementation 'com.github.satoshun.coroutinebinding:coroutinebinding-viewpager:{latest-version}'
```## what is this?
Android event (e.g., view clicks) is transformed to [ReceiveChannel](https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines.experimental.channels/-receive-channel/receive.html).
This project is inspired by [RxBinding](https://github.com/JakeWharton/RxBinding). This library APIs is same RxBinding!
## etc
This library borrows so many many many codes from RxBinding. Thx!
## License
```
Copyright (C) 2018 Sato ShunLicensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License athttp://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
```