iOS Guides | Samples

MonoTouch.CoreFoundation Namespace

The CoreFoundation namespace provides low-level access to C-based CocoaTouch APIs.

Remarks

The types in the MonoTouch.CoreFoundation namespace are bindings to the object oriented CocoaTouch C-API. They are lower level classes, functions and types than the Objective-C based APIs found in Monotouch.Foundation.

Classes

TypeReason
CFAllocatorA class that allows for explicit allocation and de-allocation of memory.
CFBundle
CFBundle+Architecture
CFBundle+PackageInfo
CFBundle+PackageType
CFErrorDomainA class whose static fields define error domains for CFException.Domain.
CFExceptionRepresents an exception arising from a Core Foundation CFError, having an error domain, a domain-specific error code, and perhaps additional information.
CFExceptionDataKeyClass that contains keys that identify exception data values.
CFMachPortBasic access to the underlying operating system Mach Port and integration with run loops.
CFMessagePortA communication channel between multiple threads on the local device.
CFMessagePort+CFMessagePortCallBack
CFMessagePortSendRequestStatusThis enumeration contains status codes for CFMessagePort.SendRequest.
CFNetworkProvides the necessary methods needed for accessing the system's global proxy configuration settings and resolving a list of proxies to use for connecting to a URL.
CFNetworkErrors
CFNotificationCenterNotification hub for the application.
CFNotificationObserverTokenToken returned by a call to CFNotificationCenter.AddObserver that can be used to unregister observers.
CFNotificationSuspensionBehaviorFlags that determine how notifications should be handled when the application is running in the background.
CFObjectBase class for CoreFoundation objects.
CFPreferencesA collection of utility methods for setting Core Foundation preferences.
CFProxyProvides information about a proxy.
CFProxySettingsConfiguration settings used by CFNetwork.GetProxiesForURL.
CFProxyTypeAn enum of CFProxy proxy types.
CFRangeRepresents a range from two integers: location and length.
CFReadStreamA CFStream that reads streams of bytes.
CFRunLoopMain loop implementation for Cocoa and CocoaTouch applications.
CFRunLoopExitReasonThe reason for a CFRunLoop to stop running.
CFRunLoopSourceAn input source that generates asynchronous events and is intended to be used with a CFRunLoop.
CFRunLoopSourceCustomAn abstract CFRunLoop that, when extended, gives the application developer fine-grained control over lifecycle events.
CFSocket
CFSocket+CFSocketAcceptEventArgs EventArgs for the CFSocket.AcceptEvent event.
CFSocket+CFSocketConnectEventArgs EventArgs for the CFSocket.ConnectEvent event.
CFSocket+CFSocketDataEventArgsArguments for socket data events.
CFSocket+CFSocketReadEventArgsArguments for socket read events.
CFSocket+CFSocketWriteEventArgsArguments for socket write events.
CFSocketCallBackTypeAn enumeration whose values can be used with the CFSocket.DisableCallbacks and CFSocket.EnableCallbacks methods.
CFSocketErrorAn enumeration whose values specify errors relating to CFSockets.
CFSocketExceptionAn Exception that is raised by various methods of the CFSocket class.
CFSocketFlagsAn enumeration whose values can be used with the CFSocket.GetSocketFlags and CFSocket.SetSocketFlags methods.
CFSocketNativeHandleType for the platform-specific native socket handle.
CFStreamAn abstract class that defines a stream for reading or writing bytes.
CFStream+CFStreamCallbackA delegate used as a callback in various CFStream methods.
CFStream+StreamEventArgsAn EventArgs used by several events in CFString.
CFStreamClientContextA structure used to support custom stream-related events.
CFStreamEventTypeConstants for stream-related events.
CFStreamStatusAn enumeration whose values specify valid statuses for a CFStream.
CFStringString class used by C-only Cocoa APIs.
CFTypeBase type for some Core Foundation classes, such as CFSocket and CFStream.
CFUrlURL class used by C-only Cocoa APIs.
CFUrlPathStyleUrl Style.
CFWriteStreamA CFStream that writes streams of bytes.
DispatchGroupManages group of code blocks allows for aggregate synchronization.
DispatchObjectBase class for dispatch objects.
DispatchQueueProvides a task queue that can perform tasks either synchronously or asynchronously.
DispatchQueuePriorityAn enumeration whose values define priorities available to DispatchQueues.
DispatchSource

DispatchSource is a base class used to reprenset event sources that can monitor a variety of system objects and events including file descriptors, mach ports, processes, virtual filesystem nodes, signal delivery and timers.

DispatchSource+DataBase class for dispatch sources that allow applications to trigger an event handler on the target queue.
DispatchSource+DataAddDispatch sources that allow applications to trigger an event handler on the target queue.
DispatchSource+DataOrDispatch sources that allow applications to trigger an event handler on the target queue.
DispatchSource+MachBase class for dispatch sources that allow applications to monitor a Mach port.
DispatchSource+MachReceiveDispatch Sources of this type monitor a mach port with a receive right for state changes.  
DispatchSource+MachSendDispatch sources of this type monitors a mach port with a send right for state changes. 
DispatchSource+MemoryPressureSources of this type monitor the system memory pressure condition for state changes.  
DispatchSource+ProcessMonitorDispatch Source of this type monitor processes for state changes
DispatchSource+ReadMonitorSources of this type monitor file descriptors for pending data.
DispatchSource+SignalMonitorSources of this type monitor signals delivered to the current process.
DispatchSource+TimerSources of this type periodically invoke the event handler on the target queue. 
DispatchSource+VnodeMonitorSources of this type monitor the virtual filesystem nodes for state changes.
DispatchSource+WriteMonitorSources of this type monitor file descriptors for available write buffer space.
DispatchTimeDispatch time and time-out representation.
ICFTypeMonoTouch-internal interface for now.
MemoryPressureFlagsMemory pressure flags surfaced by the DispatchSource+MemoryPressure dispatch source.
ProcessMonitorFlagsEnumerates process state transitions to monitor for DispatchSource+ProcessMonitor.
VnodeMonitorKindType of Vnode monitoring operation to perform on a file.