com.android.sdklib.internal.repository.updater
Interface ISettingsPage


public interface ISettingsPage

Interface that a settings page must implement.


Nested Class Summary
static interface ISettingsPage.SettingsChangedCallback
          Callback used to notify the application that settings have changed and need to be applied.
 
Field Summary
static java.lang.String KEY_ASK_ADB_RESTART
          Setting to ask for permission before restarting ADB.
static java.lang.String KEY_ENABLE_PREVIEWS
          Setting to enabling previews in the package list Type: Boolean.
static java.lang.String KEY_FORCE_HTTP
          Setting to force using http:// instead of https:// connections.
static java.lang.String KEY_HTTP_PROXY_HOST
          Java system setting picked up by URL for http proxy host.
static java.lang.String KEY_HTTP_PROXY_PORT
          Java system setting picked up by URL for http proxy port.
static java.lang.String KEY_MONITOR_DENSITY
          Setting to set the density of the monitor.
static java.lang.String KEY_SHOW_UPDATE_ONLY
          Setting to display only packages that are new or updates.
static java.lang.String KEY_USE_DOWNLOAD_CACHE
          Setting to use the DownloadCache, for small manifest XML files.
 
Method Summary
 void loadSettings(java.util.Properties inSettings)
          Loads settings from the given Properties container and update the page UI.
 void retrieveSettings(java.util.Properties outSettings)
          Called by the application to retrieve settings from the UI and store them in the given Properties container.
 void setOnSettingsChanged(ISettingsPage.SettingsChangedCallback settingsChangedCallback)
          Called by the application to give a callback that the page should invoke when settings have changed.
 

Field Detail

KEY_HTTP_PROXY_PORT

static final java.lang.String KEY_HTTP_PROXY_PORT
Java system setting picked up by URL for http proxy port. Type: String.

See Also:
Constant Field Values

KEY_HTTP_PROXY_HOST

static final java.lang.String KEY_HTTP_PROXY_HOST
Java system setting picked up by URL for http proxy host. Type: String.

See Also:
Constant Field Values

KEY_FORCE_HTTP

static final java.lang.String KEY_FORCE_HTTP
Setting to force using http:// instead of https:// connections. Type: Boolean. Default: False.

See Also:
Constant Field Values

KEY_SHOW_UPDATE_ONLY

static final java.lang.String KEY_SHOW_UPDATE_ONLY
Setting to display only packages that are new or updates. Type: Boolean. Default: True.

See Also:
Constant Field Values

KEY_ASK_ADB_RESTART

static final java.lang.String KEY_ASK_ADB_RESTART
Setting to ask for permission before restarting ADB. Type: Boolean. Default: False.

See Also:
Constant Field Values

KEY_USE_DOWNLOAD_CACHE

static final java.lang.String KEY_USE_DOWNLOAD_CACHE
Setting to use the DownloadCache, for small manifest XML files. Type: Boolean. Default: True.

See Also:
Constant Field Values

KEY_ENABLE_PREVIEWS

static final java.lang.String KEY_ENABLE_PREVIEWS
Setting to enabling previews in the package list Type: Boolean. Default: False.

See Also:
Constant Field Values

KEY_MONITOR_DENSITY

static final java.lang.String KEY_MONITOR_DENSITY
Setting to set the density of the monitor. Type: Integer. Default: -1

See Also:
Constant Field Values
Method Detail

loadSettings

void loadSettings(java.util.Properties inSettings)
Loads settings from the given Properties container and update the page UI.


retrieveSettings

void retrieveSettings(java.util.Properties outSettings)
Called by the application to retrieve settings from the UI and store them in the given Properties container.


setOnSettingsChanged

void setOnSettingsChanged(ISettingsPage.SettingsChangedCallback settingsChangedCallback)
Called by the application to give a callback that the page should invoke when settings have changed.