Package org.mozilla.geckoview
Interface IPProtectionController.Delegate
- Enclosing class:
- IPProtectionController
public static interface IPProtectionController.Delegate
Delegate for receiving IP protection state notifications.
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidonCountryListChanged(List<IPProtectionController.Country> countries) Called when the proxy serverlist changes, either in response toIPProtectionController.getCountryList()or whenever the underlying list is replaced.default voidCalled when the IP proxy state changes.default voidonServiceStateChanged(int state) Called when the IP protection service state changes.default voidCalled when the IP proxy usage changes.
-
Method Details
-
onServiceStateChanged
@UiThread default void onServiceStateChanged(int state) Called when the IP protection service state changes.- Parameters:
state- The current service state. One of theIPProtectionController.ServiceStateconstants.
-
onProxyStateChanged
Called when the IP proxy state changes.- Parameters:
state- The current proxy state.
-
onUsageChanged
Called when the IP proxy usage changes.- Parameters:
info- The current usage information.
-
onCountryListChanged
@UiThread default void onCountryListChanged(@NonNull List<IPProtectionController.Country> countries) Called when the proxy serverlist changes, either in response toIPProtectionController.getCountryList()or whenever the underlying list is replaced.- Parameters:
countries- The current list of availablecountries.
-