Package org.robovm.apple.foundation
Class Foundation
java.lang.Object
org.robovm.apple.foundation.CocoaUtility
org.robovm.apple.foundation.Foundation
public class Foundation extends CocoaUtility
-
Constructor Summary
Constructors Constructor Description Foundation() -
Method Summary
Modifier and Type Method Description static intgetMajorSystemVersion()static intgetMinorSystemVersion()static intgetPatchSystemVersion()static StringgetSystemVersionString()Cached convenience method forUIDevice.getSystemVersion().static voidlog(String message)Prints the specified message to the system log facility.static voidlog(String format, NSObject arg)Formats a log message using the specified format string and argument and prints it to the system log facility.static voidlog(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 voidlog(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 voidlog(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 voidlog(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.
-
Constructor Details
-
Foundation
public Foundation()
-
-
Method Details
-
log
Prints the specified message to the system log facility.- Parameters:
message- the message to print to the log.
-
log
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 inNSNumberinstances.- Parameters:
format- the format string.arg- the argument to be used in the format string.
-
log
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 inNSNumberinstances.- 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
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 inNSNumberinstances.- 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
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 inNSNumberinstances.- 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 inNSNumberinstances.- 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
Cached convenience method forUIDevice.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.
-