Last active
March 30, 2020 22:16
-
-
Save NikolaDespotoski/cd5cc3b0b2e480dab0f9711c3120f2c6 to your computer and use it in GitHub Desktop.
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
class ProductsViewModel @Inject constructor( | |
private val activityResultContractor: ActivityResultContractor<Nothing, String>, | |
private val coroutineProvider: CoroutineProvider, | |
private val productInteractor: ProductInteractor | |
) : ViewModel(), ActivityResultCallback<String>, | |
ActivityResultContractor<Unit, String> by activityResultContractor{ | |
override fun onActivityResult(result: String?) { | |
// do something with the result | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment