일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 | 31 |
- arm-linux-androideabi
- JetPack
- 용산 호반써밋 에이디션
- Android
- gradle
- RETROFIT
- 고금리
- ndk r24
- 예금
- java
- kotlin
- audio record
- 달러예금
- 새마을금고
- KB
- 3rd framework
- 청약
- MG더뱅킹정기예금
- Data Binding
- BindingAdapter
- Swift
- ndkVersion
- EditText
- ios
- CHAT GPT
- Andorid
- 사전청약
- ChatGPT
- Mac
- Android Studio
- Today
- Total
목록전체 글 (95)
pear
databinding send view & BindingAdapter ViewModel class ViewModel() : ViewModel() { //If want update view data then use LiveData //EditText support String simple private val _text = MutableLiveData(String) val data: LiveData = _text //EditText not support Int Type need BindingAdapter private val _num = MutableLiveData(String) val num: LiveData = _num layout BindingAdapter object EditTextDataBindi..
ViewModel class ViewModel() : ViewModel() { //EditText support String simple private val _text = MutableLiveData(String) val text: LiveData = _text //EditText not support Int need BindingAdapter private val _num = MutableLiveData(String) val num: LiveData = _num layout
비동기 처리에서 listener(callback event)의 관리를 simaple 하게 하기 위해 react, rx 등을 사용하고 있다 kotlin에서는 channel을 제공하고 있다. 기본적으로 send와 receive를 지원하며 blocking queue event라고 생각 하면 이해에 도움이 될거 같다. coroutine을 사용하여 비동기로 사용할 수 있다. trysend는 receive가 queue가 full이면 fail 처리 된다. send처럼 receive의 quque가 full이면 suspends되어 대기 한다. rx의 hot obserable과 유사한 개념을 가지고 있지만 기본적인 동작은 queue이다. trysend overflow option을 사용해서 유사하게 처리 할수 있을 것 같..