Interface IAndroidSettings
- All Known Implementing Classes:
AndroidSettings
public interface IAndroidSettings
Allows to manage main Android settings in DT IDE:
- Android SDK location
Initial SDK location can be obtained by theANDROID_HOME
system environment variable or from third-party Eclipse plug-ins
- Restriction:
- This interface is not intended to be extended by clients.
- Restriction:
- This interface is not intended to be implemented by clients.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoid
Add Android settings change listener to service.Gets string containing Android Studio page url.Get default Android SDK location setting.Get Android SDK location setting.void
Remove registered listener from service.void
setSdkLocation
(Path location) Set Android SDK location setting.boolean
validateSdkLocation
(Path location) Validate the given Android SDK location.
-
Field Details
-
MOBILE_OS_ID
- See Also:
-
-
Method Details
-
getSdkLocation
Path getSdkLocation()Get Android SDK location setting. Can returnnull
if not set.- Returns:
- the Android SDK location or
null
if not set yet
-
getDefaultSdkLocation
Path getDefaultSdkLocation()Get default Android SDK location setting. Tries to get location from:- Environment variable
ANDROID_HOME
- Trird party plug-ins
null
if cannot get.- Returns:
- default Android SDK location setting or
null
if cannot get
- Environment variable
-
setSdkLocation
Set Android SDK location setting.- Parameters:
location
- the new location, cannot benull
-
validateSdkLocation
Validate the given Android SDK location. Returns whether the given location is valid to set.- Parameters:
location
- the location to check, cannot benull
- Returns:
- whether the given location is valid to set
-
addAndroidSettingsChangeListener
Add Android settings change listener to service. Listener will be notified about Android settings changes.Causes no effect if given listener is already registered.
- Parameters:
listener
- the listener to add, cannot benull
-
removeAndroidSettingsChangeListener
Remove registered listener from service. Listener will no longer be notified about Android settings changes.- Parameters:
listener
- the listener to remove, cannot benull
-
getAndroidStudioPageUrl
String getAndroidStudioPageUrl()Gets string containing Android Studio page url.- Returns:
- url of the Android Studio page, cannot be
null
-