类 AppUtils


  • public final class AppUtils
    extends java.lang.Object
    from Github: https://github.com/Blankj/AndroidUtilCode thanks Blankj
    • 方法详细资料

      • init

        public static void init​(android.content.Context context)
        Init utils.

        Init it in the class of Application.

        参数:
        context - context
      • init

        public static void init​(android.app.Application app)
        Init utils.

        Init it in the class of Application.

        参数:
        app - application
      • getApp

        public static android.app.Application getApp()
        Return the context of Application object.
        返回:
        the context of Application object