Interface IPProtectionController.Delegate

Enclosing class:
IPProtectionController

public static interface IPProtectionController.Delegate
Delegate for receiving IP protection state notifications.
  • 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 the IPProtectionController.ServiceState constants.
    • onProxyStateChanged

      @UiThread default void onProxyStateChanged(@NonNull IPProtectionController.ProxyState state)
      Called when the IP proxy state changes.
      Parameters:
      state - The current proxy state.
    • onUsageChanged

      @UiThread default void onUsageChanged(@NonNull IPProtectionController.UsageInfo info)
      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 to IPProtectionController.getCountryList() or whenever the underlying list is replaced.
      Parameters:
      countries - The current list of available countries.