One Logo Pool Ball
Additional SDK Modules · IOS API REFERENCE

ObjectiveC

Explore ObjectiveC types and the APIs available through One's generated iOS bindings.

36 types

161 callable entries

40 skipped

80% entry coverage

Generated from iOS SDK 27.1. Availability is shown on each declaration; permissions and entitlements still apply.

Types

Functions and constants

get

OBJC_CLEAR_RESIDENT_STACK

TypeScript
const OBJC_CLEAR_RESIDENT_STACK: number
Swift declaration
var OBJC_CLEAR_RESIDENT_STACK: Int { get }
get

OBJC_COLLECT_IF_NEEDED

TypeScript
const OBJC_COLLECT_IF_NEEDED: number
Swift declaration
var OBJC_COLLECT_IF_NEEDED: Int { get }
get

OBJC_EXHAUSTIVE_COLLECTION

TypeScript
const OBJC_EXHAUSTIVE_COLLECTION: number
Swift declaration
var OBJC_EXHAUSTIVE_COLLECTION: Int { get }
get

OBJC_FULL_COLLECTION

TypeScript
const OBJC_FULL_COLLECTION: number
Swift declaration
var OBJC_FULL_COLLECTION: Int { get }
get

OBJC_GENERATIONAL_COLLECTION

TypeScript
const OBJC_GENERATIONAL_COLLECTION: number
Swift declaration
var OBJC_GENERATIONAL_COLLECTION: Int { get }
get

OBJC_RATIO_COLLECTION

TypeScript
const OBJC_RATIO_COLLECTION: number
Swift declaration
var OBJC_RATIO_COLLECTION: Int { get }
get

OBJC_WAIT_UNTIL_DONE

TypeScript
const OBJC_WAIT_UNTIL_DONE: number
Swift declaration
var OBJC_WAIT_UNTIL_DONE: Int { get }
get

OBJC_SYNC_NOT_OWNING_THREAD_ERROR

TypeScript
const OBJC_SYNC_NOT_OWNING_THREAD_ERROR: number
Swift declaration
var OBJC_SYNC_NOT_OWNING_THREAD_ERROR: Int { get }
get

OBJC_SYNC_SUCCESS

TypeScript
const OBJC_SYNC_SUCCESS: number
Swift declaration
var OBJC_SYNC_SUCCESS: Int { get }
function · iOS 2.0+

class_addIvar

TypeScript
class_addIvar(cls: (string) | null, name: SDKHandle, size: number, alignment: number, types?: (SDKHandle) | null): boolean
Swift declaration
func class_addIvar(_ cls: AnyClass?, _ name: UnsafePointer<CChar>, _ size: Int, _ alignment: UInt8, _ types: UnsafePointer<CChar>?) -> Bool
function · iOS 4.3+

class_addProperty

TypeScript
class_addProperty(cls: (string) | null, name: SDKHandle, attributes: (SDKHandle) | null, attributeCount: number): boolean
Swift declaration
func class_addProperty(_ cls: AnyClass?, _ name: UnsafePointer<CChar>, _ attributes: UnsafePointer<objc_property_attribute_t>?, _ attributeCount: UInt32) -> Bool
function · iOS 2.0+

class_addProtocol

TypeScript
class_addProtocol(cls: (string) | null, protocol: string): boolean
Swift declaration
func class_addProtocol(_ cls: AnyClass?, _ protocol: Protocol) -> Bool
function · iOS 2.0+

class_conformsToProtocol

TypeScript
class_conformsToProtocol(cls?: (string) | null, protocol?: (string) | null): boolean
Swift declaration
func class_conformsToProtocol(_ cls: AnyClass?, _ protocol: Protocol?) -> Bool
function · iOS 2.0+

class_copyIvarList

TypeScript
class_copyIvarList(cls?: (string) | null, outCount?: (SDKHandle) | null): (SDKHandle) | null
Swift declaration
func class_copyIvarList(_ cls: AnyClass?, _ outCount: UnsafeMutablePointer<UInt32>?) -> UnsafeMutablePointer<Ivar>?
function · iOS 2.0+

class_copyMethodList

TypeScript
class_copyMethodList(cls?: (string) | null, outCount?: (SDKHandle) | null): (SDKHandle) | null
Swift declaration
func class_copyMethodList(_ cls: AnyClass?, _ outCount: UnsafeMutablePointer<UInt32>?) -> UnsafeMutablePointer<Method>?
function · iOS 2.0+

class_copyPropertyList

TypeScript
class_copyPropertyList(cls?: (string) | null, outCount?: (SDKHandle) | null): (SDKHandle) | null
Swift declaration
func class_copyPropertyList(_ cls: AnyClass?, _ outCount: UnsafeMutablePointer<UInt32>?) -> UnsafeMutablePointer<objc_property_t>?
function · iOS 2.0+

class_createInstance

TypeScript
class_createInstance(cls: (string) | null, extraBytes: number): (unknown) | null
Swift declaration
func class_createInstance(_ cls: AnyClass?, _ extraBytes: Int) -> Any?
function · iOS 2.0+

class_getClassVariable

TypeScript
class_getClassVariable(cls: (string) | null, name: SDKHandle): (SDKHandle) | null
Swift declaration
func class_getClassVariable(_ cls: AnyClass?, _ name: UnsafePointer<CChar>) -> Ivar?
function · iOS 2.0+

class_getImageName

TypeScript
class_getImageName(cls?: (string) | null): (SDKHandle) | null
Swift declaration
func class_getImageName(_ cls: AnyClass?) -> UnsafePointer<CChar>?
function · iOS 2.0+

class_getInstanceSize

TypeScript
class_getInstanceSize(cls?: (string) | null): number
Swift declaration
func class_getInstanceSize(_ cls: AnyClass?) -> Int
function · iOS 2.0+

class_getInstanceVariable

TypeScript
class_getInstanceVariable(cls: (string) | null, name: SDKHandle): (SDKHandle) | null
Swift declaration
func class_getInstanceVariable(_ cls: AnyClass?, _ name: UnsafePointer<CChar>) -> Ivar?
function · iOS 2.0+

class_getIvarLayout

TypeScript
class_getIvarLayout(cls?: (string) | null): (SDKHandle) | null
Swift declaration
func class_getIvarLayout(_ cls: AnyClass?) -> UnsafePointer<UInt8>?
function · iOS 2.0+

class_getName

TypeScript
class_getName(cls?: (string) | null): SDKHandle
Swift declaration
func class_getName(_ cls: AnyClass?) -> UnsafePointer<CChar>
function · iOS 2.0+

class_getProperty

TypeScript
class_getProperty(cls: (string) | null, name: SDKHandle): (SDKHandle) | null
Swift declaration
func class_getProperty(_ cls: AnyClass?, _ name: UnsafePointer<CChar>) -> objc_property_t?
function · iOS 2.0+

class_getSuperclass

TypeScript
class_getSuperclass(cls?: (string) | null): (string) | null
Swift declaration
func class_getSuperclass(_ cls: AnyClass?) -> AnyClass?
function · iOS 2.0+

class_getVersion

TypeScript
class_getVersion(cls?: (string) | null): number
Swift declaration
func class_getVersion(_ cls: AnyClass?) -> Int32
function · iOS 2.0+

class_getWeakIvarLayout

TypeScript
class_getWeakIvarLayout(cls?: (string) | null): (SDKHandle) | null
Swift declaration
func class_getWeakIvarLayout(_ cls: AnyClass?) -> UnsafePointer<UInt8>?
function · iOS 2.0+

class_isMetaClass

TypeScript
class_isMetaClass(cls?: (string) | null): boolean
Swift declaration
func class_isMetaClass(_ cls: AnyClass?) -> Bool
function · iOS 4.3+

class_replaceProperty

TypeScript
class_replaceProperty(cls: (string) | null, name: SDKHandle, attributes: (SDKHandle) | null, attributeCount: number): void
Swift declaration
func class_replaceProperty(_ cls: AnyClass?, _ name: UnsafePointer<CChar>, _ attributes: UnsafePointer<objc_property_attribute_t>?, _ attributeCount: UInt32)
function · iOS 2.0+

class_setIvarLayout

TypeScript
class_setIvarLayout(cls?: (string) | null, layout?: (SDKHandle) | null): void
Swift declaration
func class_setIvarLayout(_ cls: AnyClass?, _ layout: UnsafePointer<UInt8>?)
function · iOS 2.0+

class_setVersion

TypeScript
class_setVersion(cls: (string) | null, version: number): void
Swift declaration
func class_setVersion(_ cls: AnyClass?, _ version: Int32)
function · iOS 2.0+

class_setWeakIvarLayout

TypeScript
class_setWeakIvarLayout(cls?: (string) | null, layout?: (SDKHandle) | null): void
Swift declaration
func class_setWeakIvarLayout(_ cls: AnyClass?, _ layout: UnsafePointer<UInt8>?)
function · iOS 4.3+

imp_getBlock

TypeScript
imp_getBlock(anImp: SDKHandle): (unknown) | null
Swift declaration
func imp_getBlock(_ anImp: IMP) -> Any?
function · iOS 4.3+

imp_implementationWithBlock

TypeScript
imp_implementationWithBlock(block: unknown): SDKHandle
Swift declaration
func imp_implementationWithBlock(_ block: Any) -> IMP
function · iOS 4.3+

imp_removeBlock

TypeScript
imp_removeBlock(anImp: SDKHandle): boolean
Swift declaration
func imp_removeBlock(_ anImp: IMP) -> Bool
function · iOS 2.0+

ivar_getName

TypeScript
ivar_getName(v: SDKHandle): (SDKHandle) | null
Swift declaration
func ivar_getName(_ v: Ivar) -> UnsafePointer<CChar>?
function · iOS 2.0+

ivar_getOffset

TypeScript
ivar_getOffset(v: SDKHandle): number
Swift declaration
func ivar_getOffset(_ v: Ivar) -> Int
function · iOS 2.0+

ivar_getTypeEncoding

TypeScript
ivar_getTypeEncoding(v: SDKHandle): (SDKHandle) | null
Swift declaration
func ivar_getTypeEncoding(_ v: Ivar) -> UnsafePointer<CChar>?
function · iOS 2.0+

method_copyArgumentType

TypeScript
method_copyArgumentType(m: SDKHandle, index: number): (SDKHandle) | null
Swift declaration
func method_copyArgumentType(_ m: Method, _ index: UInt32) -> UnsafeMutablePointer<CChar>?
function · iOS 2.0+

method_copyReturnType

TypeScript
method_copyReturnType(m: SDKHandle): SDKHandle
Swift declaration
func method_copyReturnType(_ m: Method) -> UnsafeMutablePointer<CChar>
function · iOS 2.0+

method_exchangeImplementations

TypeScript
method_exchangeImplementations(m1: SDKHandle, m2: SDKHandle): void
Swift declaration
func method_exchangeImplementations(_ m1: Method, _ m2: Method)
function · iOS 2.0+

method_getArgumentType

TypeScript
method_getArgumentType(m: SDKHandle, index: number, dst: (SDKHandle) | null, dst_len: number): void
Swift declaration
func method_getArgumentType(_ m: Method, _ index: UInt32, _ dst: UnsafeMutablePointer<CChar>?, _ dst_len: Int)
function · iOS 2.0+ · Deprecated in iOS 15.0

method_getDescription

TypeScript
method_getDescription(m: SDKHandle): SDKHandle
Swift declaration
func method_getDescription(_ m: Method) -> UnsafeMutablePointer<objc_method_description>
function · iOS 2.0+

method_getImplementation

TypeScript
method_getImplementation(m: SDKHandle): SDKHandle
Swift declaration
func method_getImplementation(_ m: Method) -> IMP
function · iOS 2.0+

method_getNumberOfArguments

TypeScript
method_getNumberOfArguments(m: SDKHandle): number
Swift declaration
func method_getNumberOfArguments(_ m: Method) -> UInt32
function · iOS 2.0+

method_getReturnType

TypeScript
method_getReturnType(m: SDKHandle, dst: SDKHandle, dst_len: number): void
Swift declaration
func method_getReturnType(_ m: Method, _ dst: UnsafeMutablePointer<CChar>, _ dst_len: Int)
function · iOS 2.0+

method_getTypeEncoding

TypeScript
method_getTypeEncoding(m: SDKHandle): (SDKHandle) | null
Swift declaration
func method_getTypeEncoding(_ m: Method) -> UnsafePointer<CChar>?
function · iOS 2.0+

method_setImplementation

TypeScript
method_setImplementation(m: SDKHandle, imp: SDKHandle): SDKHandle
Swift declaration
func method_setImplementation(_ m: Method, _ imp: IMP) -> IMP
function · iOS 2.0+

objc_allocateClassPair

TypeScript
objc_allocateClassPair(superclass: (string) | null, name: SDKHandle, extraBytes: number): (string) | null
Swift declaration
func objc_allocateClassPair(_ superclass: AnyClass?, _ name: UnsafePointer<CChar>, _ extraBytes: Int) -> AnyClass?
function · iOS 4.3+

objc_allocateProtocol

TypeScript
objc_allocateProtocol(name: SDKHandle): (string) | null
Swift declaration
func objc_allocateProtocol(_ name: UnsafePointer<CChar>) -> Protocol?
function

objc_assertRegisteredThreadWithCollector

TypeScript
objc_assertRegisteredThreadWithCollector(): void
Swift declaration
func objc_assertRegisteredThreadWithCollector()
function · iOS 2.0+

objc_begin_catch

TypeScript
objc_begin_catch(exc_buf: SDKHandle): unknown
Swift declaration
func objc_begin_catch(_ exc_buf: UnsafeMutableRawPointer) -> Any
function

objc_clear_stack

TypeScript
objc_clear_stack(options: number): void
Swift declaration
func objc_clear_stack(_ options: UInt)
function

objc_collect

TypeScript
objc_collect(options: number): void
Swift declaration
func objc_collect(_ options: UInt)
function

objc_collectingEnabled

TypeScript
objc_collectingEnabled(): boolean
Swift declaration
func objc_collectingEnabled() -> Bool
function

objc_collecting_enabled

TypeScript
objc_collecting_enabled(): boolean
Swift declaration
func objc_collecting_enabled() -> Bool
function · iOS 2.0+

objc_disposeClassPair

TypeScript
objc_disposeClassPair(cls: string): void
Swift declaration
func objc_disposeClassPair(_ cls: AnyClass)
function · iOS 2.0+

objc_duplicateClass

TypeScript
objc_duplicateClass(original: string, name: SDKHandle, extraBytes: number): string
Swift declaration
func objc_duplicateClass(_ original: AnyClass, _ name: UnsafePointer<CChar>, _ extraBytes: Int) -> AnyClass
function · iOS 2.0+

objc_end_catch

TypeScript
objc_end_catch(): void
Swift declaration
func objc_end_catch()
function · iOS 2.0+

objc_enumerationMutation

TypeScript
objc_enumerationMutation(obj: unknown): void
Swift declaration
func objc_enumerationMutation(_ obj: Any)
function · iOS 2.0+

objc_exception_rethrow

TypeScript
objc_exception_rethrow(): never
Swift declaration
func objc_exception_rethrow() -> Never
function · iOS 2.0+

objc_exception_throw

TypeScript
objc_exception_throw(exception: unknown): never
Swift declaration
func objc_exception_throw(_ exception: Any) -> Never
function

objc_finalizeOnMainThread

TypeScript
objc_finalizeOnMainThread(cls?: (string) | null): void
Swift declaration
func objc_finalizeOnMainThread(_ cls: AnyClass!)
function · iOS 3.1+

objc_getAssociatedObject

TypeScript
objc_getAssociatedObject(object: unknown, key: SDKHandle): (unknown) | null
Swift declaration
func objc_getAssociatedObject(_ object: Any, _ key: UnsafeRawPointer) -> Any?
function · iOS 2.0+

objc_getClass

TypeScript
objc_getClass(name: SDKHandle): (unknown) | null
Swift declaration
func objc_getClass(_ name: UnsafePointer<CChar>) -> Any!
function · iOS 2.0+

objc_getMetaClass

TypeScript
objc_getMetaClass(name: SDKHandle): (unknown) | null
Swift declaration
func objc_getMetaClass(_ name: UnsafePointer<CChar>) -> Any!
function · iOS 2.0+

objc_getProtocol

TypeScript
objc_getProtocol(name: SDKHandle): (string) | null
Swift declaration
func objc_getProtocol(_ name: UnsafePointer<CChar>) -> Protocol?
function · iOS 2.0+

objc_getRequiredClass

TypeScript
objc_getRequiredClass(name: SDKHandle): string
Swift declaration
func objc_getRequiredClass(_ name: UnsafePointer<CChar>) -> AnyClass
function

objc_is_finalized

TypeScript
objc_is_finalized(ptr?: (SDKHandle) | null): boolean
Swift declaration
func objc_is_finalized(_ ptr: UnsafeMutableRawPointer!) -> Bool
function · iOS 5.0+

objc_loadWeak

TypeScript
objc_loadWeak(): { $ret: (unknown) | null; $out: { "location": (unknown) | null } }
Swift declaration
func objc_loadWeak(_ location: AutoreleasingUnsafeMutablePointer<AnyObject?>) -> Any?

Omit the output parameters from the call. The result contains $ret and $out, with location inside $out.

function · iOS 2.0+

objc_lookUpClass

TypeScript
objc_lookUpClass(name: SDKHandle): (string) | null
Swift declaration
func objc_lookUpClass(_ name: UnsafePointer<CChar>) -> AnyClass?
function

objc_memmove_collectable

TypeScript
objc_memmove_collectable(dst: (SDKHandle) | null, src: (SDKHandle) | null, size: number): (SDKHandle) | null
Swift declaration
func objc_memmove_collectable(_ dst: UnsafeMutableRawPointer!, _ src: UnsafeRawPointer!, _ size: Int) -> UnsafeMutableRawPointer!
function · iOS 2.0+

objc_registerClassPair

TypeScript
objc_registerClassPair(cls: string): void
Swift declaration
func objc_registerClassPair(_ cls: AnyClass)
function · iOS 4.3+

objc_registerProtocol

TypeScript
objc_registerProtocol(proto: string): void
Swift declaration
func objc_registerProtocol(_ proto: Protocol)
function

objc_registerThreadWithCollector

TypeScript
objc_registerThreadWithCollector(): void
Swift declaration
func objc_registerThreadWithCollector()
function · iOS 3.1+

objc_removeAssociatedObjects

TypeScript
objc_removeAssociatedObjects(object: unknown): void
Swift declaration
func objc_removeAssociatedObjects(_ object: Any)
function · iOS 3.1+

objc_setAssociatedObject

TypeScript
objc_setAssociatedObject(object: unknown, key: SDKHandle, value: (unknown) | null, policy: objc_AssociationPolicy): void
Swift declaration
func objc_setAssociatedObject(_ object: Any, _ key: UnsafeRawPointer, _ value: Any?, _ policy: objc_AssociationPolicy)
function

objc_setCollectionRatio

TypeScript
objc_setCollectionRatio(ratio: number): void
Swift declaration
func objc_setCollectionRatio(_ ratio: Int)
function

objc_setCollectionThreshold

TypeScript
objc_setCollectionThreshold(threshold: number): void
Swift declaration
func objc_setCollectionThreshold(_ threshold: Int)
function · iOS 2.0+

objc_setForwardHandler

TypeScript
objc_setForwardHandler(fwd: SDKHandle, fwd_stret: SDKHandle): void
Swift declaration
func objc_setForwardHandler(_ fwd: UnsafeMutableRawPointer, _ fwd_stret: UnsafeMutableRawPointer)
function

objc_set_collection_ratio

TypeScript
objc_set_collection_ratio(ratio: number): void
Swift declaration
func objc_set_collection_ratio(_ ratio: Int)
function

objc_set_collection_threshold

TypeScript
objc_set_collection_threshold(threshold: number): void
Swift declaration
func objc_set_collection_threshold(_ threshold: Int)
function

objc_startCollectorThread

TypeScript
objc_startCollectorThread(): void
Swift declaration
func objc_startCollectorThread()
function

objc_start_collector_thread

TypeScript
objc_start_collector_thread(): void
Swift declaration
func objc_start_collector_thread()
function · iOS 5.0+

objc_storeWeak

TypeScript
objc_storeWeak(obj?: (unknown) | null): { $ret: (unknown) | null; $out: { "location": (unknown) | null } }
Swift declaration
func objc_storeWeak(_ location: AutoreleasingUnsafeMutablePointer<AnyObject?>, _ obj: Any?) -> Any?

Omit the output parameters from the call. The result contains $ret and $out, with location inside $out.

function · iOS 6.0+

objc_terminate

TypeScript
objc_terminate(): never
Swift declaration
func objc_terminate() -> Never
function

objc_unregisterThreadWithCollector

TypeScript
objc_unregisterThreadWithCollector(): void
Swift declaration
func objc_unregisterThreadWithCollector()
function · iOS 2.0+

object_getClass

TypeScript
object_getClass(obj?: (unknown) | null): (string) | null
Swift declaration
func object_getClass(_ obj: Any?) -> AnyClass?
function · iOS 2.0+

object_getClassName

TypeScript
object_getClassName(obj?: (unknown) | null): SDKHandle
Swift declaration
func object_getClassName(_ obj: Any?) -> UnsafePointer<CChar>
function · iOS 2.0+

object_getIndexedIvars

TypeScript
object_getIndexedIvars(obj?: (unknown) | null): (SDKHandle) | null
Swift declaration
func object_getIndexedIvars(_ obj: Any?) -> UnsafeMutableRawPointer?
function · iOS 2.0+

object_getIvar

TypeScript
object_getIvar(obj: (unknown) | null, ivar: SDKHandle): (unknown) | null
Swift declaration
func object_getIvar(_ obj: Any?, _ ivar: Ivar) -> Any?
function · iOS 8.0+

object_isClass

TypeScript
object_isClass(obj?: (unknown) | null): boolean
Swift declaration
func object_isClass(_ obj: Any?) -> Bool
function · iOS 2.0+

object_setClass

TypeScript
object_setClass(obj: (unknown) | null, cls: string): (string) | null
Swift declaration
func object_setClass(_ obj: Any?, _ cls: AnyClass) -> AnyClass?
function · iOS 2.0+

object_setIvar

TypeScript
object_setIvar(obj: (unknown) | null, ivar: SDKHandle, value?: (unknown) | null): void
Swift declaration
func object_setIvar(_ obj: Any?, _ ivar: Ivar, _ value: Any?)
function · iOS 10.0+

object_setIvarWithStrongDefault

TypeScript
object_setIvarWithStrongDefault(obj: (unknown) | null, ivar: SDKHandle, value?: (unknown) | null): void
Swift declaration
func object_setIvarWithStrongDefault(_ obj: Any?, _ ivar: Ivar, _ value: Any?)
function · iOS 4.3+

property_copyAttributeList

TypeScript
property_copyAttributeList(property: SDKHandle, outCount?: (SDKHandle) | null): (SDKHandle) | null
Swift declaration
func property_copyAttributeList(_ property: objc_property_t, _ outCount: UnsafeMutablePointer<UInt32>?) -> UnsafeMutablePointer<objc_property_attribute_t>?
function · iOS 4.3+

property_copyAttributeValue

TypeScript
property_copyAttributeValue(property: SDKHandle, attributeName: SDKHandle): (SDKHandle) | null
Swift declaration
func property_copyAttributeValue(_ property: objc_property_t, _ attributeName: UnsafePointer<CChar>) -> UnsafeMutablePointer<CChar>?
function · iOS 2.0+

property_getAttributes

TypeScript
property_getAttributes(property: SDKHandle): (SDKHandle) | null
Swift declaration
func property_getAttributes(_ property: objc_property_t) -> UnsafePointer<CChar>?
function · iOS 2.0+

property_getName

TypeScript
property_getName(property: SDKHandle): SDKHandle
Swift declaration
func property_getName(_ property: objc_property_t) -> UnsafePointer<CChar>
function · iOS 4.3+

protocol_addProperty

TypeScript
protocol_addProperty(proto: string, name: SDKHandle, attributes: (SDKHandle) | null, attributeCount: number, isRequiredProperty: boolean, isInstanceProperty: boolean): void
Swift declaration
func protocol_addProperty(_ proto: Protocol, _ name: UnsafePointer<CChar>, _ attributes: UnsafePointer<objc_property_attribute_t>?, _ attributeCount: UInt32, _ isRequiredProperty: Bool, _ isInstanceProperty: Bool)
function · iOS 4.3+

protocol_addProtocol

TypeScript
protocol_addProtocol(proto: string, addition: string): void
Swift declaration
func protocol_addProtocol(_ proto: Protocol, _ addition: Protocol)
function · iOS 2.0+

protocol_conformsToProtocol

TypeScript
protocol_conformsToProtocol(proto?: (string) | null, other?: (string) | null): boolean
Swift declaration
func protocol_conformsToProtocol(_ proto: Protocol?, _ other: Protocol?) -> Bool
function · iOS 2.0+

protocol_copyMethodDescriptionList

TypeScript
protocol_copyMethodDescriptionList(proto: string, isRequiredMethod: boolean, isInstanceMethod: boolean, outCount?: (SDKHandle) | null): (SDKHandle) | null
Swift declaration
func protocol_copyMethodDescriptionList(_ proto: Protocol, _ isRequiredMethod: Bool, _ isInstanceMethod: Bool, _ outCount: UnsafeMutablePointer<UInt32>?) -> UnsafeMutablePointer<objc_method_description>?
function · iOS 2.0+

protocol_copyPropertyList

TypeScript
protocol_copyPropertyList(proto: string, outCount?: (SDKHandle) | null): (SDKHandle) | null
Swift declaration
func protocol_copyPropertyList(_ proto: Protocol, _ outCount: UnsafeMutablePointer<UInt32>?) -> UnsafeMutablePointer<objc_property_t>?
function · iOS 10.0+

protocol_copyPropertyList2

TypeScript
protocol_copyPropertyList2(proto: string, outCount: (SDKHandle) | null, isRequiredProperty: boolean, isInstanceProperty: boolean): (SDKHandle) | null
Swift declaration
func protocol_copyPropertyList2(_ proto: Protocol, _ outCount: UnsafeMutablePointer<UInt32>?, _ isRequiredProperty: Bool, _ isInstanceProperty: Bool) -> UnsafeMutablePointer<objc_property_t>?
function · iOS 2.0+

protocol_getName

TypeScript
protocol_getName(proto: string): SDKHandle
Swift declaration
func protocol_getName(_ proto: Protocol) -> UnsafePointer<CChar>
function · iOS 2.0+

protocol_getProperty

TypeScript
protocol_getProperty(proto: string, name: SDKHandle, isRequiredProperty: boolean, isInstanceProperty: boolean): (SDKHandle) | null
Swift declaration
func protocol_getProperty(_ proto: Protocol, _ name: UnsafePointer<CChar>, _ isRequiredProperty: Bool, _ isInstanceProperty: Bool) -> objc_property_t?
function · iOS 2.0+

protocol_isEqual

TypeScript
protocol_isEqual(proto?: (string) | null, other?: (string) | null): boolean
Swift declaration
func protocol_isEqual(_ proto: Protocol?, _ other: Protocol?) -> Bool
get

NSIntegerMax

TypeScript
const NSIntegerMax: number
Swift declaration
var NSIntegerMax: Int { get }
get

NS_ENFORCE_NSOBJECT_DESIGNATED_INITIALIZER

TypeScript
const NS_ENFORCE_NSOBJECT_DESIGNATED_INITIALIZER: number
Swift declaration
var NS_ENFORCE_NSOBJECT_DESIGNATED_INITIALIZER: Int32 { get }
get

OBJC_ADDLOADIMAGEFUNC_DEFINED

TypeScript
const OBJC_ADDLOADIMAGEFUNC_DEFINED: number
Swift declaration
var OBJC_ADDLOADIMAGEFUNC_DEFINED: Int32 { get }
get

OBJC_API_VERSION

TypeScript
const OBJC_API_VERSION: number
Swift declaration
var OBJC_API_VERSION: Int32 { get }
get

OBJC_BOOL_IS_BOOL

TypeScript
const OBJC_BOOL_IS_BOOL: number
Swift declaration
var OBJC_BOOL_IS_BOOL: Int32 { get }
get

OBJC_GETCLASSHOOK_DEFINED

TypeScript
const OBJC_GETCLASSHOOK_DEFINED: number
Swift declaration
var OBJC_GETCLASSHOOK_DEFINED: Int32 { get }
get

OBJC_NO_GC

TypeScript
const OBJC_NO_GC: number
Swift declaration
var OBJC_NO_GC: Int32 { get }
get

OBJC_NO_GC_API

TypeScript
const OBJC_NO_GC_API: number
Swift declaration
var OBJC_NO_GC_API: Int32 { get }
get

OBJC_OLD_DISPATCH_PROTOTYPES

TypeScript
const OBJC_OLD_DISPATCH_PROTOTYPES: number
Swift declaration
var OBJC_OLD_DISPATCH_PROTOTYPES: Int32 { get }
get

OBJC_REALIZECLASSFROMSWIFT_DEFINED

TypeScript
const OBJC_REALIZECLASSFROMSWIFT_DEFINED: number
Swift declaration
var OBJC_REALIZECLASSFROMSWIFT_DEFINED: Int32 { get }
get

OBJC_SETHOOK_LAZYCLASSNAMER_DEFINED

TypeScript
const OBJC_SETHOOK_LAZYCLASSNAMER_DEFINED: number
Swift declaration
var OBJC_SETHOOK_LAZYCLASSNAMER_DEFINED: Int32 { get }
function · iOS 1.0+

autoreleasepool

TypeScript
autoreleasepool(body: (() => unknown)): unknown
Swift declaration
func autoreleasepool<E, Result>(invoking body: () throws(E) -> Result) throws(E) -> Result where E : Error, Result : ~Copyable
function · iOS 16.0+

objc_enumerateClasses

TypeScript
objc_enumerateClasses(fromImage?: ObjCEnumerationImage, matchingNamePrefix?: (string) | null, conformingTo?: (string) | null, subclassing?: (string) | null): ObjCClassList
Swift declaration
func objc_enumerateClasses(fromImage: ObjCEnumerationImage = .machHeader(#dsohandle), matchingNamePrefix: String? = nil, conformingTo: Protocol? = nil, subclassing: AnyClass? = nil) -> ObjCClassList

Enumerates classes, filtering by image, name, protocol conformance and superclass. - Parameter fromImage: The image to search; defaults to the caller's image. - Parameter matchingNamePrefix: If specified, a required prefix for the class name. - Parameter conformingTo: If specified, a protocol to which the enumerated classes must conform. - Parameter subclassing: If specified, a class which the enumerated classes must subclass. - Returns: A `Sequence` of classes that match the search criteria.

Skipped declarations

40 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.

NSObject.instancesRespond(to:)

Objective-C selectors cannot cross the bridge.

NSObject.method(for:)

Objective-C selectors cannot cross the bridge.

NSObject.instanceMethod(for:)

Objective-C selectors cannot cross the bridge.

NSObject.doesNotRecognizeSelector(_:)

Objective-C selectors cannot cross the bridge.

NSObject.forwardingTarget(for:)

Objective-C selectors cannot cross the bridge.

NSObject.resolveClassMethod(_:)

Objective-C selectors cannot cross the bridge.

NSObject.resolveInstanceMethod(_:)

Objective-C selectors cannot cross the bridge.

sel_getName(_:)

Objective-C selectors cannot cross the bridge.

sel_getUid(_:)

Objective-C selectors cannot cross the bridge.

sel_isMapped(_:)

Objective-C selectors cannot cross the bridge.

sel_registerName(_:)

Objective-C selectors cannot cross the bridge.

objc_setExceptionMatcher(_:)

callback cannot propagate synchronous failure

objc_setExceptionPreprocessor(_:)

callback cannot propagate synchronous failure

objc_setUncaughtExceptionHandler(_:)

The iOS SDK compiler rejected this binding: a C function pointer cannot be formed from a closure that captures context

class_addMethod(_:_:_:_:)

Objective-C selectors cannot cross the bridge.

class_copyProtocolList(_:_:)

This output pointer cannot safely be represented by the bridge.

class_getClassMethod(_:_:)

Objective-C selectors cannot cross the bridge.

class_getInstanceMethod(_:_:)

Objective-C selectors cannot cross the bridge.

class_getMethodImplementation(_:_:)

Objective-C selectors cannot cross the bridge.

class_replaceMethod(_:_:_:_:)

Objective-C selectors cannot cross the bridge.

class_respondsToSelector(_:_:)

Objective-C selectors cannot cross the bridge.

method_getName(_:)

Objective-C selectors cannot cross the bridge.

objc_addLoadImageFunc(_:)

The iOS SDK compiler rejected this binding: a C function pointer cannot be formed from a closure that captures context

objc_copyClassList(_:)

This output pointer cannot safely be represented by the bridge.

objc_copyClassNamesForImage(_:_:)

Nested memory pointers cannot cross the bridge.

objc_copyImageHeaders(_:)

Nested memory pointers cannot cross the bridge.

objc_copyImageNames(_:)

Nested memory pointers cannot cross the bridge.

objc_copyProtocolList(_:)

This output pointer cannot safely be represented by the bridge.

objc_getClassList(_:_:)

The iOS SDK compiler rejected this binding: cannot convert value of type 'Bool' to specified type 'AnyClass' (aka 'any AnyObject.Type')

objc_method_description.init(name:types:)

Objective-C selectors cannot cross the bridge.