Package com.android.repository.api
Interface SettingsController
-
public interface SettingsControllerSettings used by the repository framework. TODO: implement more settings.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description ChannelgetChannel()Gets the current channel.booleangetDisableSdkPatches()booleangetForceHttp()default java.net.ProxygetProxy()Gets the proxy to use for http connections.voidsetDisableSdkPatches(boolean disable)voidsetForceHttp(boolean force)
-
-
-
Method Detail
-
getForceHttp
boolean getForceHttp()
- Returns:
- If
true, all connections should be made using HTTP rather than HTTPS.
-
setForceHttp
void setForceHttp(boolean force)
- Parameters:
force- Iftrue, all connections should be made using HTTP rather than HTTPS.
-
getDisableSdkPatches
boolean getDisableSdkPatches()
- Returns:
- If
true, SDK updates should be performed using full installer (optimizes for local installation time, but not for download time). Recommended for lower-end hardware.
-
setDisableSdkPatches
void setDisableSdkPatches(boolean disable)
- Parameters:
disable- Iftrue, SDK updates should be performed using full installer (optimizes for local installation time, but not for download time). Recommended for lower-end hardware.
-
getChannel
@Nullable Channel getChannel()
Gets the current channel. Only packages of channels at least as stable as specified will be downloaded.
-
getProxy
@NonNull default java.net.Proxy getProxy()
Gets the proxy to use for http connections. If no proxy is configured, returnsProxy.NO_PROXY.
-
-