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.
Gson type adapter to export and import the dynamic theme.
-
Constructor Summary
ConstructorDescriptionDynamicThemeTypeAdapter
(T dynamicTheme) Constructor to initialize an object of this class.DynamicThemeTypeAdapter
(T dynamicTheme, boolean resolve, boolean inverse) Constructor to initialize an object of this class. -
Method Summary
Methods inherited from class com.google.gson.TypeAdapter
fromJson, fromJson, fromJsonTree, nullSafe, toJson, toJson, toJsonTree
-
Constructor Details
-
DynamicThemeTypeAdapter
Constructor to initialize an object of this class.- Parameters:
dynamicTheme
- The dynamic theme to be used.
-
DynamicThemeTypeAdapter
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
-
write
- Specified by:
write
in classTypeAdapter<T extends BaseTheme<T>>
- Throws:
IOException
-
read
- Specified by:
read
in classTypeAdapter<T extends BaseTheme<T>>
- Throws:
IOException
-