Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Expose `ViewModel.clear()`
@file:Suppress("PackageDirectoryMismatch")
package android.arch.lifecycle
fun ViewModel.clear() = clear()
package com.example
import android.arch.lifecycle.ViewModel
import android.arch.lifecycle.clear
fun test(viewModel: ViewModel) {
viewModel.clear()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.