Skip to content

Instantly share code, notes, and snippets.

@vinodbaste
Created July 8, 2022 11:29
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 vinodbaste/7f1a6f221094cef0210ad22d2b4d4afc to your computer and use it in GitHub Desktop.
Save vinodbaste/7f1a6f221094cef0210ad22d2b4d4afc to your computer and use it in GitHub Desktop.
class MainActivity : AppCompatActivity() {
private lateinit var inAppUpdate: InAppUpdate
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_main)
inAppUpdate = InAppUpdate(this)
}
override fun onActivityResult(requestCode: Int, resultCode: Int, data: Intent?) {
super.onActivityResult(requestCode, resultCode, data)
inAppUpdate.onActivityResult(requestCode,resultCode, data)
}
override fun onResume() {
super.onResume()
inAppUpdate.onResume()
}
override fun onDestroy() {
super.onDestroy()
inAppUpdate.onDestroy()
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment