objective_c library

Classes

AEDesc
CFRunLoop
CFString
CGPoint
CGRect
CGSize
Consumed<T>
A sentinel class representing the ns_consumed attribute for ObjCBlock function signatures.
Dart_FinalizableHandle_
DartProtocol
Base class of all classes DOBJCDartProtocolBuilder creates.
DartProtocolBuilder
Used by the Dart ObjCProtocolBuilder to construct ObjC classes at runtime to implement protocols.
DOBJC_Context
NSArray
NSArray
NSCharacterSet
NSCharacterSet
NSCoder
NSCoder
NSCoding
NSCoding
NSCopying
NSCopying
NSData
NSData
NSDate
NSDate
NSDictionary
NSDictionary
NSEdgeInsets
NSEnumerator
NSEnumerator
NSError
NSError
NSFastEnumeration
NSFastEnumeration
NSFastEnumerationState
NSIndexSet
NSIndexSet
NSInputStream
NSInputStream
NSInvocation
NSInvocation
NSItemProvider
NSItemProvider
NSItemProviderReading
NSItemProviderReading
NSItemProviderWriting
NSItemProviderWriting
NSLocale
NSLocale
NSMethodSignature
NSMethodSignature
NSMutableArray
NSMutableArray
NSMutableCopying
NSMutableCopying
NSMutableData
NSMutableData
NSMutableDictionary
NSMutableDictionary
NSMutableIndexSet
NSMutableIndexSet
NSMutableOrderedSet
NSMutableOrderedSet
NSMutableSet
NSMutableSet
NSMutableString
NSMutableString
NSNotification
NSNotification
NSNumber
NSNumber
NSObject
NSObject
NSObjectProtocol
NSObject
NSOrderedCollectionChange
NSOrderedCollectionChange
NSOrderedCollectionDifference
NSOrderedCollectionDifference
NSOrderedSet
NSOrderedSet
NSOutputStream
NSOutputStream
NSPort
NSPort
NSPortDelegate
NSPortDelegate
NSPortMessage
NSPortMessage
NSProgress
NSProgress
NSRange
NSRunLoop
NSRunLoop
NSSecureCoding
NSSecureCoding
NSSet
NSSet
NSStream
NSStream
NSStreamDelegate
NSStreamDelegate
NSString
NSString
NSTimer
NSTimer
NSURL
NSURL
NSURLHandle
NSURLHandle
NSValue
NSValue
NSZone
ObjCBlock<T extends Function>
An Objective-C block.
ObjCBlockBase
Only for use by ffigen bindings.
ObjCBlockDesc
ObjCBlockImpl
ObjCBlockRef
ObjCMethodDesc
ObjCObject
ObjCObjectBase
Only for use by ffigen bindings.
ObjCObjectRef
ObjCProtocol
ObjCProtocolBase
Only for use by ffigen bindings.
ObjCProtocolBuilder
Helper class for building Objective C objects that implement protocols.
ObjCProtocolListenableMethod<T extends Function>
A method in an ObjC protocol that can be implemented as a listener.
ObjCProtocolMethod<T extends Function>
A method in an ObjC protocol.
ObjCSelector
Observation
Represents a single KVO observation.
Observer
Protocol for observing changes to values of objects.
OpaqueAEDataStorageType
Protocol
Protocol
Retained<T>
A sentinel class representing the ns_returns_retained attribute for ObjCBlock function signatures.
Version
A parsed semantic version number.

Extensions

CFStringRefConversions on CFStringRef
DartListToNSArray on List<Object>
DartMapToNSDictionary on Map<Object, Object>
DartProtocol$Methods on DartProtocol
DartProtocolBuilder$Methods on DartProtocolBuilder
DartSetToNSSet on Set<Object>
DateTimeToNSDate on DateTime
DoubleToNSNumber on double
GetProtocolName on Pointer<ObjCProtocol>
IntToNSNumber on int
NSArray$Methods on NSArray
NSArrayToDartList on NSArray
NSCharacterSet$Methods on NSCharacterSet
NSCoder$Methods on NSCoder
NSData$Methods on NSData
NSDataCreation on NSData
NSDataCreation
NSDataExtensions on NSData
NSDataListExtension on List<int>
NSDate$Methods on NSDate
NSDateToDateTime on NSDate
NSDictionary$Methods on NSDictionary
NSDictionaryToDartMap on NSDictionary
NSEnumerator$Methods on NSEnumerator
NSError$Methods on NSError
NSExtendedArray on NSArray
NSExtendedArray
NSExtendedData on NSData
NSExtendedData
NSExtendedDate on NSDate
NSExtendedDate
NSExtendedDictionary on NSDictionary
NSExtendedDictionary
NSExtendedEnumerator on NSEnumerator
NSExtendedEnumerator
NSExtendedMutableArray on NSMutableArray
NSExtendedMutableArray
NSExtendedMutableData on NSMutableData
NSExtendedMutableData
NSExtendedMutableDictionary on NSMutableDictionary
NSExtendedMutableDictionary
NSExtendedMutableOrderedSet on NSMutableOrderedSet
NSExtendedMutableOrderedSet
NSExtendedMutableSet on NSMutableSet
NSExtendedMutableSet
NSExtendedOrderedSet on NSOrderedSet
NSExtendedOrderedSet
NSExtendedSet on NSSet
NSExtendedSet
NSIndexSet$Methods on NSIndexSet
NSInputStream$Methods on NSInputStream
NSInputStreamStreamExtension on Stream<List<int>>
NSInvocation$Methods on NSInvocation
NSItemProvider$Methods on NSItemProvider
NSLocale$Methods on NSLocale
NSMethodSignature$Methods on NSMethodSignature
NSMutableArray$Methods on NSMutableArray
NSMutableData$Methods on NSMutableData
NSMutableDataExtensions on NSMutableData
NSMutableDataListExtension on List<int>
NSMutableDictionary$Methods on NSMutableDictionary
NSMutableIndexSet$Methods on NSMutableIndexSet
NSMutableOrderedSet$Methods on NSMutableOrderedSet
NSMutableSet$Methods on NSMutableSet
NSMutableString$Methods on NSMutableString
NSNotification$Methods on NSNotification
NSNumber$Methods on NSNumber
NSNumberCreation on NSNumber
NSNumberCreation
NSNumberIsFloat on NSNumber
NSNumberIsFloat
NSNumberToNum on NSNumber
NSObject$Methods on NSObject
NSOrderedCollectionChange$Methods on NSOrderedCollectionChange
NSOrderedCollectionDifference$Methods on NSOrderedCollectionDifference
NSOrderedSet$Methods on NSOrderedSet
NSOutputStream$Methods on NSOutputStream
NSPort$Methods on NSPort
NSPortMessage$Methods on NSPortMessage
NSProgress$Methods on NSProgress
NSRunLoop$Methods on NSRunLoop
NSSet$Methods on NSSet
NSSetToDartSet on NSSet
NSStream$Methods on NSStream
NSString$Methods on NSString
NSStringExtensionMethods on NSString
NSStringExtensionMethods
NSStringToString on NSString
NSTimer$Methods on NSTimer
NSURL$Methods on NSURL
NSURLHandle$Methods on NSURLHandle
NSValue$Methods on NSValue
NumToNSNumber on num
Observed on NSObject
Protocol$Methods on Protocol
SelectorToString on Pointer<ObjCSelector>
StringToNSString on String
StringToSelector on String

Properties

msgSendFpretPointer Pointer<NativeFunction<Void Function()>>
Only for use by ffigen bindings.
final
msgSendPointer Pointer<NativeFunction<Void Function()>>
Only for use by ffigen bindings.
final
msgSendStretPointer Pointer<NativeFunction<Void Function()>>
Only for use by ffigen bindings.
final
NSKeyValueChangeIndexesKey NSString
getter/setter pair
NSKeyValueChangeKindKey NSString
getter/setter pair
NSKeyValueChangeNewKey NSString
getter/setter pair
NSKeyValueChangeNotificationIsPriorKey NSString
getter/setter pair
NSKeyValueChangeOldKey NSString
getter/setter pair
NSLocalizedDescriptionKey NSString
getter/setter pair
objCContext Pointer<DOBJC_Context>
Only for use by ffigen bindings.
final
osVersion Version
Returns the current MacOS/iOS version.
no setter
useMsgSendVariants bool
Only for use by ffigen bindings.
final

Functions

blockRetain(Pointer<ObjCObject> object) Pointer<ObjCObject>
checkOSVersion({Version? iOS, Version? macOS}) bool
Returns whether the current MacOS/iOS version is greater than or equal to the given version.
checkOsVersionInternal(String apiName, {PlatformAvailability? iOS, PlatformAvailability? macOS}) → void
Only for use by ffigen bindings.
getBlockClosure(BlockPtr block) Function
Only for use by ffigen bindings.
getClass(String name) ObjectPtr
Only for use by ffigen bindings.
getProtocol(String name) Pointer<ObjCProtocol>
Only for use by ffigen bindings.
getProtocolMethodSignature(Pointer<ObjCProtocol> protocol, Pointer<ObjCSelector> sel, {required bool isRequired, required bool isInstanceMethod}) Pointer<Char>?
Only for use by ffigen bindings.
newClosureBlock(VoidPtr invoke, Function fn, bool keepIsolateAlive) BlockPtr
Only for use by ffigen bindings.
newPointerBlock(VoidPtr invoke, VoidPtr target) BlockPtr
Only for use by ffigen bindings.
objectRelease(Pointer<ObjCObject> object) → void
objectRetain(Pointer<ObjCObject> object) Pointer<ObjCObject>
registerName(String name) Pointer<ObjCSelector>
Only for use by ffigen bindings.
respondsToSelector(ObjectPtr obj, Pointer<ObjCSelector> sel) bool
Only for use by ffigen bindings.
signalWaiter(Pointer<Void> waiter) → void
toDartObject(ObjCObjectBase objCObject, {Object convertOther(ObjCObjectBase) = _defaultDartConverter}) Object
Converts a Objective C object to the corresponding Dart object.
toObjCObject(Object dartObject, {ObjCObjectBase convertOther(Object) = _defaultObjCConverter}) ObjCObjectBase
Converts a Dart object to the corresponding Objective C object.