Slide 7
Slide 7 text
class XXXViewModel( )
: ViewModel(), CoroutineScope by MainScope()
abstract class AbstractViewModel : CoroutineScope by MainScope() {
@MainThread
protected open fun onCleared() {
}
internal fun clear() {
@Suppress("UNNECESSARY_SAFE_CALL")
coroutineContext?.cancel()
onCleared()
}
}
7JFX.PEFM
w $PSPVUJOFʹΑΔ7JFX.PEFM