Interface IAndroidSettings


  • public interface IAndroidSettings
    Allows to manage main Android settings in DT IDE:
    • Android SDK location
      Initial SDK location can be obtained by the ANDROID_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.
    • Method Detail

      • getSdkLocation

        Path getSdkLocation()
        Get Android SDK location setting. Can return null 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
        Can return null if cannot get.
        Returns:
        default Android SDK location setting or null if cannot get
      • setSdkLocation

        void setSdkLocation​(Path location)
        Set Android SDK location setting.
        Parameters:
        location - the new location, cannot be null
      • validateSdkLocation

        boolean validateSdkLocation​(Path location)
        Validate the given Android SDK location. Returns whether the given location is valid to set.
        Parameters:
        location - the location to check, cannot be null
        Returns:
        whether the given location is valid to set
      • addAndroidSettingsChangeListener

        void addAndroidSettingsChangeListener​(IAndroidSettingsChangeListener listener)
        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 be null
      • removeAndroidSettingsChangeListener

        void removeAndroidSettingsChangeListener​(IAndroidSettingsChangeListener listener)
        Remove registered listener from service. Listener will no longer be notified about Android settings changes.
        Parameters:
        listener - the listener to remove, cannot be null