Package org.mozilla.geckoview
Interface GeckoView.ActivityContextDelegate
- Enclosing class:
- GeckoView
@AnyThread
public static interface GeckoView.ActivityContextDelegate
This delegate is used to provide the GeckoView an Activity context for certain operations such
as retrieving a PrintManager, which requires an Activity context. Using getContext() directly
might retrieve an Activity context or a Fragment context, this delegate ensures an Activity
context.
Not to be confused with the GeckoRuntime delegate GeckoRuntime.ActivityDelegate
which is tightly coupled with WebAuthn - see bug 1671988.
-
Method Summary
Modifier and TypeMethodDescriptionMethod should return an Activity context.
-
Method Details
-
getActivityContext
Method should return an Activity context. May return null if not available.- Returns:
- Activity context
-