Class Foundation

    • Constructor Summary

      Constructors 
      Constructor Description
      Foundation()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static int getMajorSystemVersion()  
      static int getMinorSystemVersion()  
      static int getPatchSystemVersion()  
      static java.lang.String getSystemVersionString()
      Cached convenience method for UIDevice.getSystemVersion().
      static void log​(java.lang.String message)
      Prints the specified message to the system log facility.
      static void log​(java.lang.String format, NSObject arg)
      Formats a log message using the specified format string and argument and prints it to the system log facility.
      static void log​(java.lang.String format, NSObject arg1, NSObject arg2)
      Formats a log message using the specified format string and arguments and prints it to the system log facility.
      static void log​(java.lang.String format, NSObject arg1, NSObject arg2, NSObject arg3)
      Formats a log message using the specified format string and arguments and prints it to the system log facility.
      static void log​(java.lang.String format, NSObject arg1, NSObject arg2, NSObject arg3, NSObject arg4)
      Formats a log message using the specified format string and arguments and prints it to the system log facility.
      static void log​(java.lang.String format, NSObject arg1, NSObject arg2, NSObject arg3, NSObject arg4, NSObject arg5)
      Formats a log message using the specified format string and arguments and prints it to the system log facility.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Foundation

        public Foundation()
    • Method Detail

      • log

        public static void log​(java.lang.String message)
        Prints the specified message to the system log facility.
        Parameters:
        message - the message to print to the log.
      • log

        public static void log​(java.lang.String format,
                               NSObject arg)
        Formats a log message using the specified format string and argument and prints it to the system log facility. Primitive value arguments must be wrapped in NSNumber instances.
        Parameters:
        format - the format string.
        arg - the argument to be used in the format string.
      • log

        public static void log​(java.lang.String format,
                               NSObject arg1,
                               NSObject arg2)
        Formats a log message using the specified format string and arguments and prints it to the system log facility. Primitive value arguments must be wrapped in NSNumber instances.
        Parameters:
        format - the format string.
        arg1 - the first argument to be used in the format string.
        arg2 - the second argument to be used in the format string.
      • log

        public static void log​(java.lang.String format,
                               NSObject arg1,
                               NSObject arg2,
                               NSObject arg3)
        Formats a log message using the specified format string and arguments and prints it to the system log facility. Primitive value arguments must be wrapped in NSNumber instances.
        Parameters:
        format - the format string.
        arg1 - the first argument to be used in the format string.
        arg2 - the second argument to be used in the format string.
        arg3 - the third argument to be used in the format string.
      • log

        public static void log​(java.lang.String format,
                               NSObject arg1,
                               NSObject arg2,
                               NSObject arg3,
                               NSObject arg4)
        Formats a log message using the specified format string and arguments and prints it to the system log facility. Primitive value arguments must be wrapped in NSNumber instances.
        Parameters:
        format - the format string.
        arg1 - the first argument to be used in the format string.
        arg2 - the second argument to be used in the format string.
        arg3 - the third argument to be used in the format string.
        arg4 - the forth argument to be used in the format string.
      • log

        public static void log​(java.lang.String format,
                               NSObject arg1,
                               NSObject arg2,
                               NSObject arg3,
                               NSObject arg4,
                               NSObject arg5)
        Formats a log message using the specified format string and arguments and prints it to the system log facility. Primitive value arguments must be wrapped in NSNumber instances.
        Parameters:
        format - the format string.
        arg1 - the first argument to be used in the format string.
        arg2 - the second argument to be used in the format string.
        arg3 - the third argument to be used in the format string.
        arg4 - the forth argument to be used in the format string.
        arg5 - the fifth argument to be used in the format string.
      • getSystemVersionString

        public static java.lang.String getSystemVersionString()
        Cached convenience method for UIDevice.getSystemVersion().
        Returns:
        the OS version that this app is running on.
      • getMajorSystemVersion

        public static int getMajorSystemVersion()
        Returns:
        the major part of the running OS version.
      • getMinorSystemVersion

        public static int getMinorSystemVersion()
        Returns:
        the minor part of the running OS version.
      • getPatchSystemVersion

        public static int getPatchSystemVersion()
        Returns:
        the patch part of the running OS version.