Package 

Class Parameters


  • 
    public final class Parameters
    
                        

    Parameters to get and set parameters

    • Constructor Detail

      • Parameters

        Parameters(Context context)
        Parameters:
        context - The Android's context
    • Method Detail

      • get

         String get(String key)

        Get parameter value

        Parameters:
        key - The key of the parameter
      • get

         String get(String key, String fallback)

        Get parameter value.

        Parameters:
        key - The key of the parameter
        fallback - The fallback if no value found
      • set

         void set(@NonNull() String key, @NonNull() String value, boolean save)

        Set the parameter

        Parameters:
        key - The key of the parameter
        value - the value of the parameter
        save - if true, the value will be here at next app launch, it will be lost otherwise
      • setOrRemove

         void setOrRemove(@NonNull() String key, @Nullable() String value, boolean save)

        Set the parameter or remove it if null

        Parameters:
        key - The key of the parameter
        value - the value of the parameter
        save - if true, the value will be here at next app launch, it will be lost otherwise
      • remove

         void remove(String key)

        Remove the value of the given parameter

        Parameters:
        key - The key of the parameter to remove
      • wipeData

         void wipeData()

        Clear all parameters