Interface DetailsTypes.ApiDetailsType

    • Method Summary

      All Methods Static Methods Instance Methods Abstract Methods Default Methods 
      Modifier and Type Method Description
      default com.android.sdklib.AndroidVersion getAndroidVersion()
      Convenience method to create an AndroidVersion with the information from the given DetailsTypes.ApiDetailsType.
      default int getApiLevel()
      Gets the api level of this package.
      static int getApiLevelInt​(java.lang.String apiLevel)  
      default java.lang.String getApiLevelString()
      Only to be used for schema v3 and above.Returns the contents of the api-level tag.
      java.lang.String getCodename()
      Gets the codename of this release.
      default java.lang.Integer getExtensionLevel()
      Gets the extension level of this package.
      default boolean isBaseExtension()
      Returns whether the package is the base sdk for this api level.
      default void setApiLevel​(int apiLevel)
      Sets the api level this package corresponds to.
      default void setApiLevelString​(java.lang.String apiLevelString)  
      default void setBaseExtension​(boolean isBaseExtension)
      Sets whether the package is the base sdk for this api level.
      void setCodename​(java.lang.String codename)
      If this is a preview release the api is identified by a codename in addition to the api level.
      default void setExtensionLevel​(java.lang.Integer extensionLevel)
      Sets the extension level of this package.
    • Method Detail

      • getAndroidVersion

        @NonNull
        default com.android.sdklib.AndroidVersion getAndroidVersion()
        Convenience method to create an AndroidVersion with the information from the given DetailsTypes.ApiDetailsType.
      • setApiLevel

        default void setApiLevel​(int apiLevel)
        Sets the api level this package corresponds to.
      • getApiLevel

        default int getApiLevel()
        Gets the api level of this package.
      • getApiLevelString

        default java.lang.String getApiLevelString()
        Only to be used for schema v3 and above.Returns the contents of the api-level tag. This is an int if it is the base SDK, or an int followed by an 'x' character if the sdk contains extensions eg. "32x".
      • setApiLevelString

        default void setApiLevelString​(java.lang.String apiLevelString)
      • isBaseExtension

        default boolean isBaseExtension()
        Returns whether the package is the base sdk for this api level.
      • setBaseExtension

        default void setBaseExtension​(boolean isBaseExtension)
        Sets whether the package is the base sdk for this api level.
      • getExtensionLevel

        @Nullable
        default java.lang.Integer getExtensionLevel()
        Gets the extension level of this package.
      • setExtensionLevel

        default void setExtensionLevel​(java.lang.Integer extensionLevel)
        Sets the extension level of this package.
      • setCodename

        void setCodename​(@Nullable
                         java.lang.String codename)
        If this is a preview release the api is identified by a codename in addition to the api level. In this case codename should be non-null.
      • getCodename

        java.lang.String getCodename()
        Gets the codename of this release. Should be null for regular releases, and non- null for preview releases.
      • getApiLevelInt

        static int getApiLevelInt​(java.lang.String apiLevel)