Slide 19
Slide 19 text
৽͍͠1IPUP1JDLFS
private val photoPickerLauncher = registerForActivityResult
(
object : ActivityResultContract()
{
@CallSupe
r
override fun createIntent(context: Context, input: String): Intent
{
return Intent(MediaStore.ACTION_PICK_IMAGES
)
.setType(input
)
}
override fun parseResult(resultCode: Int, intent: Intent?): Uri?
{
return intent.takeIf { resultCode == Activity.RESULT_OK }?.dat
a
}
}
)
{
// ..
.
}
IUUQTEFWFMPQFSBOESPJEDPNBCPVUWFSTJPOTGFBUVSFTQIPUPQJDLFS