Skip to content

Instantly share code, notes, and snippets.

@ktvipin27
Created May 29, 2020 03:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • 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