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
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 forUIDevice.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.
-
-
-
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 inNSNumber
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 inNSNumber
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 inNSNumber
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 inNSNumber
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 inNSNumber
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 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.
-
-