Skip to content

nanaten/Activity-Contract-Example

Repository files navigation

Activity-Contract-Example

This is a sample registerForActivityResult that replaces startActivityForResult.

From androidx.fragment:fragment-ktx:1.3.0-alpha04, the following method is deprecated: androidx.fragment:fragment-ktx:1.3.0-alpha04.

  • startActivityForResult
  • onActivityResult
  • requestPermissions
  • onRequestPermissionsResult

official source

The announcement says to use registerForActivityResult of ActivityResultContract instead.

Registering a callback for an Activity Result

Then, I summarized the usage of registerForActivityResult.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages