Class DynamicThemeTypeAdapter<T extends BaseTheme<T>>

java.lang.Object
com.google.gson.TypeAdapter<T>
com.pranavpandey.android.dynamic.theme.adapter.DynamicThemeTypeAdapter<T>
Type Parameters:
T - The type of the dynamic theme.

public class DynamicThemeTypeAdapter<T extends BaseTheme<T>> extends TypeAdapter<T>
Gson type adapter to export and import the dynamic theme.
See Also:
  • Constructor Details

    • DynamicThemeTypeAdapter

      public DynamicThemeTypeAdapter(@NonNull T dynamicTheme)
      Constructor to initialize an object of this class.
      Parameters:
      dynamicTheme - The dynamic theme to be used.
    • DynamicThemeTypeAdapter

      public DynamicThemeTypeAdapter(@NonNull T dynamicTheme, boolean resolve, boolean inverse)
      Constructor to initialize an object of this class.
      Parameters:
      dynamicTheme - The dynamic theme to be used.
      resolve - true to resolve the values.
      inverse - true to resolve the inverse values.
  • Method Details