registerForDropInResult

Register your Activity or Fragment with the Activity Result API and receive the final Drop-in result using the SessionDropInCallback.

This must be called unconditionally, as part of the initialization path, typically as a field initializer of an Activity or Fragment.

You will receive the Drop-in result in the SessionDropInCallback.onDropInResult method. Check out SessionDropInResult class for all the possible results you might receive.

Return

The ActivityResultLauncher required to receive the result of Drop-in.

Parameters

caller

The class that needs to launch Drop-in and receive its callback.

callback

Callback for the Drop-in result.


Register your Activity or Fragment with the Activity Result API and receive the final Drop-in result using the DropInCallback.

This must be called unconditionally, as part of the initialization path, typically as a field initializer of an Activity or Fragment.

You will receive the Drop-in result in the DropInCallback.onDropInResult method. Check out DropInResult for all the possible results you might receive.

Return

The ActivityResultLauncher required to receive the result of Drop-in.

Parameters

caller

The class that needs to launch Drop-in and receive its callback.

callback

Callback for the Drop-in result.