Package org.mozilla.geckoview
Interface GeckoRuntime.ActivityDelegate
- Enclosing class:
- GeckoRuntime
public static interface GeckoRuntime.ActivityDelegate
This is used to allow GeckoRuntime to start activities via the embedding application (and
Activity
). Currently this is used to invoke the Google Play FIDO Activity
in order to integrate with the Web Authentication API.- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionSometimes GeckoView needs the application to perform aActivity.startActivityForResult(Intent, int)
on its behalf.
-
Method Details
-
onStartActivityForResult
Sometimes GeckoView needs the application to perform aActivity.startActivityForResult(Intent, int)
on its behalf. Implementations of this method should call that based on the information in the passedPendingIntent
, collect the result, and resolve the returnedGeckoResult
with that data. If the Activity does not returnActivity.RESULT_OK
, theGeckoResult
must be completed with an exception of your choosing.- Parameters:
intent
- ThePendingIntent
to launch- Returns:
- A
GeckoResult
that is eventually resolved with the Activity result.
-