Class Foundation

java.lang.Object
org.robovm.apple.foundation.CocoaUtility
org.robovm.apple.foundation.Foundation

public class Foundation
extends CocoaUtility
  • Constructor Details

    • Foundation

      public Foundation()
  • Method Details

    • log

      public static void log​(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​(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​(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​(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​(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​(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 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.