objective_c library
Classes
- AEDesc
- CFRunLoop
- CFString
- CGPoint
- CGRect
- CGSize
-
Consumed<
T> -
A sentinel class representing the
ns_consumedattribute for ObjCBlock function signatures. - Dart_FinalizableHandle_
- DOBJC_Context
- NSAppleEventSendOptions
- iOS: unavailable macOS: introduced 10.11.0
- NSAttributedStringEnumerationOptions
- NSAttributedStringFormattingOptions
- NSBinarySearchingOptions
- NSCoding$Builder
- NSCopying$Builder
- NSDataBase64DecodingOptions
- NSDataBase64EncodingOptions
- NSDataReadingOptions
- NSDataSearchOptions
- NSDataWritingOptions
- NSEdgeInsets
- NSEnumerationOptions
- NSFastEnumeration$Builder
- NSFastEnumerationState
- NSItemProviderFileOptions
- NSItemProviderReading$Builder
- NSItemProviderWriting$Builder
- NSKeyValueObservingOptions
- NSLinguisticTaggerOptions
- NSMutableCopying$Builder
- NSObjectProtocol$Builder
- NSOrderedCollectionDifferenceCalculationOptions
- iOS: introduced 13.0.0 macOS: introduced 10.15.0
- NSPortDelegate$Builder
- NSRange
- NSSecureCoding$Builder
- NSSortOptions
- NSStreamDelegate$Builder
- NSStreamEvent
- NSStringCompareOptions
- NSStringEncodingConversionOptions
- NSStringEnumerationOptions
- NSURLBookmarkCreationOptions
- NSURLBookmarkResolutionOptions
- NSZone
-
ObjCBlock<
T extends Function> - An Objective-C block.
- ObjCBlockBase
- Only for use by FFIgen bindings.
- ObjCBlockDesc
- ObjCBlockImpl
- ObjCBlockRef
- ObjCMethodDesc
- ObjCObject
- Base class for all Objective-C objects.
- ObjCObjectImpl
- ObjCObjectRef
- ObjCProtocolBuilder
- Helper class for building Objective C objects that implement protocols.
- ObjCProtocolImpl
-
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$Builder
- OpaqueAEDataStorageType
-
Retained<
T> -
A sentinel class representing the
ns_returns_retainedattribute for ObjCBlock function signatures. - Version
- A parsed semantic version number.
Enums
- NSAttributedStringMarkdownInterpretedSyntax
- iOS: introduced 15.0.0 macOS: introduced 12.0.0
- NSAttributedStringMarkdownParsingFailurePolicy
- iOS: introduced 15.0.0 macOS: introduced 12.0.0
- NSCollectionChangeType
- iOS: introduced 13.0.0 macOS: introduced 10.15.0
- NSComparisonResult
- NSDataCompressionAlgorithm
- iOS: introduced 13.0.0 macOS: introduced 10.15.0
- NSDecodingFailurePolicy
- NSItemProviderRepresentationVisibility
- NSKeyValueChange
- NSKeyValueSetMutationKind
- NSLocaleLanguageDirection
- NSPropertyListFormat
- NSQualityOfService
- NSStreamStatus
- NSURLHandleStatus
Extension Types
- DartInputStreamAdapter
-
Helper class to adapt a Dart stream into a
NSInputStream. - DartInputStreamAdapterWeakHolder
-
Helper class that contains a weak reference to a
DOBJCDartInputStreamAdapter. - DartProtocol
- Base class of all classes DOBJCDartProtocolBuilder creates.
- DartProtocolBuilder
- Used by the Dart ObjCProtocolBuilder to construct ObjC classes at runtime to implement protocols.
- DOBJCObservation
- Represents a single KVO observation. Each observation creates a new DOBJCObservation, even for the same observer, observed object, and keyPath.
- NSArray
- NSArray
- NSAttributedString
- NSAttributedString
- NSAttributedStringMarkdownParsingOptions
- NSAttributedStringMarkdownParsingOptions
- NSBundle
- NSBundle
- NSCharacterSet
- NSCharacterSet
- NSCoder
- NSCoder
- NSCoding
- NSCoding
- NSCopying
- NSCopying
- NSData
- NSData
- NSDate
- NSDate
- NSDictionary
- NSDictionary
- NSEnumerator
- NSEnumerator
- NSError
- NSError
- NSFastEnumeration
- NSFastEnumeration
- 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
- NSNull
- NSNull
- NSNumber
- NSNumber
- NSObject
- NSObject
- NSObjectProtocol
- NSObject
- NSOrderedCollectionChange
- NSOrderedCollectionChange
- NSOrderedCollectionDifference
- NSOrderedCollectionDifference
- NSOrderedSet
- NSOrderedSet
- NSOutputStream
- NSOutputStream
- NSPort
- NSPort
- NSPortDelegate
- NSPortDelegate
- NSPortMessage
- NSPortMessage
- NSProgress
- NSProgress
- NSRunLoop
- NSRunLoop
- NSSecureCoding
- NSSecureCoding
- NSSet
- NSSet
- NSStream
- NSStream
- NSStreamDelegate
- NSStreamDelegate
- NSString
- NSString
- NSTimer
- NSTimer
- NSURL
- NSURL
- NSURLHandle
- NSURLHandle
- NSValue
- NSValue
- Observer
- Protocol for observing changes to values of objects.
- Protocol
- Protocol
Extensions
- CFStringRefConversions on CFStringRef
- DartInputStreamAdapter$Methods on DartInputStreamAdapter
- DartInputStreamAdapterWeakHolder$Methods on DartInputStreamAdapterWeakHolder
-
DartListToNSArray
on List<
Object> -
DartMapToNSDictionary
on Map<
Object, Object> - DartProtocol$Methods on DartProtocol
- DartProtocolBuilder$Methods on DartProtocolBuilder
-
DartSetToNSSet
on Set<
Object> - DateTimeToNSDate on DateTime
- DOBJCObservation$Methods on DOBJCObservation
- DoubleToNSNumber on double
-
GetProtocolName
on Pointer<
ObjCProtocolImpl> - IntToNSNumber on int
- NSArray$Methods on NSArray
- NSArrayToAdapter on NSArray
- NSArrayToDartList on NSArray
- NSAttributedString$Methods on NSAttributedString
- NSAttributedStringMarkdownParsingOptions$Methods on NSAttributedStringMarkdownParsingOptions
- NSBundle$Methods on NSBundle
- NSCharacterSet$Methods on NSCharacterSet
- NSCoder$Methods on NSCoder
- NSCoding$Methods on NSCoding
- NSCopying$Methods on NSCopying
- 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
- NSDictionaryToAdapter on NSDictionary
- NSDictionaryToDartMap on NSDictionary
- NSEnumerator$Methods on NSEnumerator
- NSEnumeratorToAdapter 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
- NSFastEnumeration$Methods on NSFastEnumeration
- NSIndexSet$Methods on NSIndexSet
- NSInputStream$Methods on NSInputStream
-
NSInputStreamStreamExtension
on Stream<
List< int> > - NSInvocation$Methods on NSInvocation
- NSItemProvider$Methods on NSItemProvider
- NSItemProviderReading$Methods on NSItemProviderReading
- NSItemProviderWriting$Methods on NSItemProviderWriting
- NSLocale$Methods on NSLocale
- NSMethodSignature$Methods on NSMethodSignature
- NSMutableArray$Methods on NSMutableArray
- NSMutableArrayToAdapter on NSMutableArray
- NSMutableCopying$Methods on NSMutableCopying
- NSMutableData$Methods on NSMutableData
- NSMutableDataExtensions on NSMutableData
-
NSMutableDataListExtension
on List<
int> - NSMutableDictionary$Methods on NSMutableDictionary
- NSMutableDictionaryToAdapter on NSMutableDictionary
- NSMutableIndexSet$Methods on NSMutableIndexSet
- NSMutableOrderedSet$Methods on NSMutableOrderedSet
- NSMutableSet$Methods on NSMutableSet
- NSMutableSetToAdapter on NSMutableSet
- NSMutableString$Methods on NSMutableString
- NSNotification$Methods on NSNotification
- NSNull$Methods on NSNull
- NSNumber$Methods on NSNumber
- NSNumberCreation on NSNumber
- NSNumberCreation
- NSNumberIsFloat on NSNumber
- NSNumberIsFloat
- NSNumberToNum on NSNumber
- NSObject$Methods on NSObject
- NSObjectProtocol$Methods on NSObjectProtocol
- NSOrderedCollectionChange$Methods on NSOrderedCollectionChange
- NSOrderedCollectionDifference$Methods on NSOrderedCollectionDifference
- NSOrderedSet$Methods on NSOrderedSet
- NSOutputStream$Methods on NSOutputStream
- NSPort$Methods on NSPort
- NSPortDelegate$Methods on NSPortDelegate
- NSPortMessage$Methods on NSPortMessage
- NSProgress$Methods on NSProgress
- NSRunLoop$Methods on NSRunLoop
- NSSecureCoding$Methods on NSSecureCoding
- NSSet$Methods on NSSet
- NSSetToAdapter on NSSet
- NSSetToDartSet on NSSet
- NSStream$Methods on NSStream
- NSStreamDelegate$Methods on NSStreamDelegate
- 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
- Observer$Methods on Observer
- Protocol$Methods on Protocol
- RespondsToSelector on ObjCObject
-
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
-
no setter
- NSKeyValueChangeKindKey → NSString
-
no setter
- NSKeyValueChangeNewKey → NSString
-
no setter
- NSKeyValueChangeNotificationIsPriorKey → NSString
-
no setter
- NSKeyValueChangeOldKey → NSString
-
no setter
- NSLocalizedDescriptionKey → NSString
-
no setter
-
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
-
autoReleasePool(
void function()) → void -
Creates an Objective-C autorelease pool, runs
function, then releases the pool. -
blockRetain(
Pointer< ObjCObjectImpl> object) → Pointer<ObjCObjectImpl> -
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< ObjCProtocolImpl> - Only for use by ffigen bindings.
-
getProtocolMethodSignature(
Pointer< ObjCProtocolImpl> 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< ObjCObjectImpl> object) → void -
objectRetain(
Pointer< ObjCObjectImpl> object) → Pointer<ObjCObjectImpl> -
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(
ObjCObject objCObject, {Object convertOther(ObjCObject) = _defaultDartConverter}) → Object - Converts a Objective C object to the corresponding Dart object.
-
toNullableDartObject(
ObjCObject objCObject, {Object convertOther(ObjCObject) = _defaultDartConverter}) → Object? - Converts a Objective C object to the corresponding Dart object.
-
toObjCObject(
Object? dartObject, {ObjCObject convertOther(Object) = _defaultObjCConverter}) → ObjCObject - Converts a Dart object to the corresponding Objective C object.
Typedefs
-
BlockPtr
= Pointer<
ObjCBlockImpl> - ObjCProtocol = ObjCObject
- Base class for all Objective-C protocols.
-
ObjectPtr
= Pointer<
ObjCObjectImpl> - PlatformAvailability = (bool, (int, int, int)?)
-
VoidPtr
= Pointer<
Void>
Exceptions / Errors
- DoubleReleaseError
- FailedToLoadClassException
- FailedToLoadProtocolException
- FailedToLoadProtocolMethodException
- Failed to load a method of a protocol.
- NSErrorException
-
Wrapper Exception around an Objective-C
NSError. - ObjCRuntimeError
- OsVersionError
- UnimplementedOptionalMethodException
- UseAfterReleaseError