Package oshi.jna.platform.mac
Interface CoreFoundation
- All Superinterfaces:
- com.sun.jna.platform.mac.CoreFoundation,- com.sun.jna.Library
public interface CoreFoundation
extends com.sun.jna.platform.mac.CoreFoundation
CoreFoundation class. This class should be considered non-API as it may be removed if/when its code is incorporated
 into the JNA project.
- 
Nested Class SummaryNested ClassesModifier and TypeInterfaceDescriptionstatic classCFDateFormatter objects format the textual representations of CFDate and CFAbsoluteTime objects, and convert textual representations of dates and times into CFDate and CFAbsoluteTime objects.static enumstatic classThe CFLocale opaque type provides support for obtaining available locales, obtaining localized locale names, and converting among locale data formats.Nested classes/interfaces inherited from interface com.sun.jna.platform.mac.CoreFoundationcom.sun.jna.platform.mac.CoreFoundation.CFAllocatorRef, com.sun.jna.platform.mac.CoreFoundation.CFArrayRef, com.sun.jna.platform.mac.CoreFoundation.CFBooleanRef, com.sun.jna.platform.mac.CoreFoundation.CFDataRef, com.sun.jna.platform.mac.CoreFoundation.CFDictionaryRef, com.sun.jna.platform.mac.CoreFoundation.CFIndex, com.sun.jna.platform.mac.CoreFoundation.CFMutableDictionaryRef, com.sun.jna.platform.mac.CoreFoundation.CFNumberRef, com.sun.jna.platform.mac.CoreFoundation.CFNumberType, com.sun.jna.platform.mac.CoreFoundation.CFStringRef, com.sun.jna.platform.mac.CoreFoundation.CFTypeID, com.sun.jna.platform.mac.CoreFoundation.CFTypeRefNested classes/interfaces inherited from interface com.sun.jna.Librarycom.sun.jna.Library.Handler
- 
Field SummaryFieldsFields inherited from interface com.sun.jna.platform.mac.CoreFoundationARRAY_TYPE_ID, BOOLEAN_TYPE_ID, DATA_TYPE_ID, DATE_TYPE_ID, DICTIONARY_TYPE_ID, kCFNotFound, kCFStringEncodingASCII, kCFStringEncodingUTF8, NUMBER_TYPE_ID, STRING_TYPE_IDFields inherited from interface com.sun.jna.LibraryOPTION_ALLOW_OBJECTS, OPTION_CALLING_CONVENTION, OPTION_CLASSLOADER, OPTION_FUNCTION_MAPPER, OPTION_INVOCATION_MAPPER, OPTION_OPEN_FLAGS, OPTION_STRING_ENCODING, OPTION_STRUCTURE_ALIGNMENT, OPTION_SYMBOL_PROVIDER, OPTION_TYPE_MAPPER
- 
Method SummaryModifier and TypeMethodDescriptionCFDateFormatterCreate(com.sun.jna.platform.mac.CoreFoundation.CFAllocatorRef allocator, CoreFoundation.CFLocale locale, com.sun.jna.platform.mac.CoreFoundation.CFIndex dateStyle, com.sun.jna.platform.mac.CoreFoundation.CFIndex timeStyle) Creates a new CFDateFormatter object, localized to the given locale, which will format dates to the given date and time styles.com.sun.jna.platform.mac.CoreFoundation.CFStringRefReturns a format string for the given date formatter object.Returns a copy of the logical locale for the current user.Methods inherited from interface com.sun.jna.platform.mac.CoreFoundationCFAllocatorGetDefault, CFArrayCreate, CFArrayGetCount, CFArrayGetTypeID, CFArrayGetValueAtIndex, CFBooleanGetTypeID, CFBooleanGetValue, CFCopyDescription, CFDataCreate, CFDataGetBytePtr, CFDataGetLength, CFDataGetTypeID, CFDateGetTypeID, CFDictionaryCreateMutable, CFDictionaryGetCount, CFDictionaryGetTypeID, CFDictionaryGetValue, CFDictionaryGetValueIfPresent, CFDictionarySetValue, CFEqual, CFGetRetainCount, CFGetTypeID, CFGetTypeID, CFNumberCreate, CFNumberGetType, CFNumberGetTypeID, CFNumberGetValue, CFRelease, CFRetain, CFStringCreateWithCharacters, CFStringGetCString, CFStringGetLength, CFStringGetMaximumSizeForEncoding, CFStringGetTypeID
- 
Field Details- 
INSTANCE
 
- 
- 
Method Details- 
CFLocaleCopyCurrentCoreFoundation.CFLocale CFLocaleCopyCurrent()Returns a copy of the logical locale for the current user.- Returns:
- The logical locale for the current user that is formed from the settings for the current user’s chosen
         system locale overlaid with any custom settings the user has specified in System Preferences. May return
         a retained cached object, not a new object.
         This reference must be released with CoreFoundation.CFRelease(com.sun.jna.platform.mac.CoreFoundation.CFTypeRef)to avoid leaking references.
 
- 
CFDateFormatterCreateCoreFoundation.CFDateFormatter CFDateFormatterCreate(com.sun.jna.platform.mac.CoreFoundation.CFAllocatorRef allocator, CoreFoundation.CFLocale locale, com.sun.jna.platform.mac.CoreFoundation.CFIndex dateStyle, com.sun.jna.platform.mac.CoreFoundation.CFIndex timeStyle) Creates a new CFDateFormatter object, localized to the given locale, which will format dates to the given date and time styles.- Parameters:
- allocator- The allocator to use to allocate memory for the new object. Pass- nullor- kCFAllocatorDefaultto use the current default allocator.
- locale- The locale to use for localization. If- nulluses the default system locale. Use- CFLocaleCopyCurrent()to specify the locale of the current user.
- dateStyle- The date style to use when formatting dates.
- timeStyle- The time style to use when formatting times.
- Returns:
- A new date formatter, localized to the given locale, which will format dates to the given date and time
         styles. Returns nullif there was a problem creating the object.This reference must be released with CoreFoundation.CFRelease(com.sun.jna.platform.mac.CoreFoundation.CFTypeRef)to avoid leaking references.
 
- 
CFDateFormatterGetFormatcom.sun.jna.platform.mac.CoreFoundation.CFStringRef CFDateFormatterGetFormat(CoreFoundation.CFDateFormatter formatter) Returns a format string for the given date formatter object.- Parameters:
- formatter- The date formatter to examine.
- Returns:
- The format string for formatter.
 
 
-