Last active
April 10, 2019 13:33
-
-
Save Takhion/2e1bee245aa22429f77ea60b92126df9 to your computer and use it in GitHub Desktop.
Expose `ViewModel.clear()`
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@file:Suppress("PackageDirectoryMismatch") | |
package android.arch.lifecycle | |
fun ViewModel.clear() = clear() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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