Skip to content

Instantly share code, notes, and snippets.

@ktvipin27
Created May 29, 2020 03:36
Show Gist options
  • Save ktvipin27/ea343674dcb417fcfc889b1c97b5ac25 to your computer and use it in GitHub Desktop.
Save ktvipin27/ea343674dcb417fcfc889b1c97b5ac25 to your computer and use it in GitHub Desktop.
BaseViewModel for the demo of template creation.
abstract class BaseViewModel : ViewModel() {
open fun onActivityCreated(extras: Bundle?) {}
open fun onActivityResult(requestCode: Int, resultCode: Int, data: Intent?) {}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment