Class NCConfigurationManager

  • All Implemented Interfaces:

    
    public class NCConfigurationManager
    
                        

    Configuration manager for locale and file size settings.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Constructor Detail

    • Method Detail

      • init

         static void init(Context context)
      • setFileMaxSize

         void setFileMaxSize(Context context, int size)

        Sets the maximum file size for sending files.

        Parameters:
        context - context
        size - maximum file size in MB
      • getFileMaxSize

         int getFileMaxSize(Context context)

        Gets the maximum file size for sending files.

        Parameters:
        context - context
        Returns:

        maximum file size in MB

      • switchLocale

         void switchLocale(LangUtils.NCLocale locale, Context context)

        Switches the app language.

        Parameters:
        locale - accepted values: NCLocale.LOCALE_CHINA, NCLocale.LOCALE_US, or NCLocale.
      • getConfigurationContext

         Context getConfigurationContext(Context newBase)

        Creates a ConfigurationContext for use in attachBaseContext.

        Parameters:
        newBase - the base context
        Returns:

        the configuration-wrapped context