Interface WidgetTheme<T extends WidgetTheme<T,V>,V extends BaseTheme<V>>

Type Parameters:
T - The type of the dynamic theme.
V - The type of the app theme.
All Superinterfaces:
BaseTheme<V>
All Known Implementing Classes:
AppWidgetTheme

public interface WidgetTheme<T extends WidgetTheme<T,V>,V extends BaseTheme<V>> extends BaseTheme<V>
A BaseTheme to implement the widget theme.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Get the header state used by this theme.
    Returns the header state string used by this theme.
    int
    Get the app widget id used by this theme.
    setHeader(int header)
    Set the header state used by this theme.
    Set the header state used by this theme.
    setWidgetId(int widgetId)
    Set the widget id used by this theme.

    Methods inherited from interface com.pranavpandey.android.dynamic.theme.base.BaseTheme

    isHost, setHost
  • Method Details

    • getWidgetId

      int getWidgetId()
      Get the app widget id used by this theme.
      Returns:
      The app widget id used by this theme.
    • setWidgetId

      @NonNull T setWidgetId(int widgetId)
      Set the widget id used by this theme.
      Parameters:
      widgetId - The widget id to be set.
      Returns:
      The WidgetTheme object to allow for chaining of calls to set methods.
    • getHeader

      int getHeader()
      Get the header state used by this theme.
      Returns:
      The header state used by this theme.
    • getHeaderString

      @NonNull String getHeaderString()
      Returns the header state string used by this theme.
      Returns:
      The header state string used by this theme.
    • setHeader

      @NonNull T setHeader(int header)
      Set the header state used by this theme.
      Parameters:
      header - The header state to be set.
      Returns:
      The WidgetTheme object to allow for chaining of calls to set methods.
    • setHeaderString

      @NonNull T setHeaderString(@NonNull String header)
      Set the header state used by this theme.
      Parameters:
      header - The header state to be set.
      Returns:
      The WidgetTheme object to allow for chaining of calls to set methods.