init
TypeScriptstatic initObject(object: unknown): NSSetSwift declarationconvenience init(object: Any)class · SDK 27.1
class NSSetstatic initObject(object: unknown): NSSetSwift declarationconvenience init(object: Any)static initObjectsCount(objects: SDKHandle, cnt: number): NSSetSwift declarationconvenience init(objects: UnsafePointer<AnyObject>, count cnt: Int)addObserver(observer: _ObjectiveC_NSObject, keyPath: string, options?: NSKeyValueObservingOptions, context?: (SDKHandle) | null): voidSwift declarationfunc addObserver(_ observer: NSObject, forKeyPath keyPath: String, options: NSKeyValueObservingOptions = [], context: UnsafeMutableRawPointer?)anyObject(): (unknown) | nullSwift declarationfunc anyObject() -> Any?contains(anObject: unknown): booleanSwift declarationfunc contains(_ anObject: Any) -> BooldescriptionWithLocale(locale?: (unknown) | null): stringSwift declarationfunc description(withLocale locale: Any?) -> StringenumerateObjects(block: ((arg0: unknown, arg1: NativeOut<boolean>) => void)): voidSwift declarationfunc enumerateObjects(_ block: (Any, UnsafeMutablePointer<ObjCBool>) -> Void)enumerateObjectsOptionsUsing(opts: NSEnumerationOptions, block: ((arg0: unknown, arg1: NativeOut<boolean>) => void)): voidSwift declarationfunc enumerateObjects(options opts: NSEnumerationOptions = [], using block: (Any, UnsafeMutablePointer<ObjCBool>) -> Void)filtered(predicate: NSPredicate): Array<unknown>Swift declarationfunc filtered(using predicate: NSPredicate) -> Set<AnyHashable>static init(): NSSetSwift declarationinit()static initArray(array: Array<unknown>): NSSetSwift declarationconvenience init(array: [Any])static initCoder(coder: NSCoder): (NSSet) | nullSwift declarationinit?(coder: NSCoder)static initObjectsCount19778(objects: (SDKHandle) | null, cnt: number): NSSetSwift declarationinit(objects: UnsafePointer<AnyObject>?, count cnt: Int)static initSet(set: Array<unknown>): NSSetSwift declarationconvenience init(set: Set<AnyHashable>)static initSetCopyItems(set: Array<unknown>, flag: boolean): NSSetSwift declarationconvenience init(set: Set<AnyHashable>, copyItems flag: Bool)intersects(otherSet: Array<unknown>): booleanSwift declarationfunc intersects(_ otherSet: Set<AnyHashable>) -> BoolisEqual(otherSet: Array<unknown>): booleanSwift declarationfunc isEqual(to otherSet: Set<AnyHashable>) -> BoolisSubset(otherSet: Array<unknown>): booleanSwift declarationfunc isSubset(of otherSet: Set<AnyHashable>) -> Boolmember(object: unknown): (unknown) | nullSwift declarationfunc member(_ object: Any) -> Any?objectEnumerator(): NSEnumeratorSwift declarationfunc objectEnumerator() -> NSEnumeratorremoveObserverForKeyPath(observer: _ObjectiveC_NSObject, keyPath: string): voidSwift declarationfunc removeObserver(_ observer: NSObject, forKeyPath keyPath: String)removeObserverForKeyPathContext(observer: _ObjectiveC_NSObject, keyPath: string, context?: (SDKHandle) | null): voidSwift declarationfunc removeObserver(_ observer: NSObject, forKeyPath keyPath: String, context: UnsafeMutableRawPointer?)adding(anObject: unknown): Array<unknown>Swift declarationfunc adding(_ anObject: Any) -> Set<AnyHashable>addingObjectsFrom(other: Array<unknown>): Array<unknown>Swift declarationfunc addingObjects(from other: [Any]) -> Set<AnyHashable>addingObjectsFrom53755(other: Array<unknown>): Array<unknown>Swift declarationfunc addingObjects(from other: Set<AnyHashable>) -> Set<AnyHashable>setValue(value: (unknown) | null, key: string): voidSwift declarationfunc setValue(_ value: Any?, forKey key: String)sortedArray(sortDescriptors: Array<NSSortDescriptor>): Array<unknown>Swift declarationfunc sortedArray(using sortDescriptors: [NSSortDescriptor]) -> [Any]value(key: string): unknownSwift declarationfunc value(forKey key: String) -> Anyget allObjects(): Array<unknown>Swift declarationvar allObjects: [Any] { get }get count(): numberSwift declarationvar count: Int { get }get description(): stringSwift declarationvar description: String { get }get customMirror(): SDKHandleSwift declarationvar customMirror: Mirror { get }The custom mirror for this instance. If this type has value semantics, the mirror should be unaffected by subsequent mutations of the instance.
makeIterator(): NSFastEnumerationIteratorSwift declarationfunc makeIterator() -> NSFastEnumerationIteratorReturn an *iterator* over the elements of this *sequence*. - Complexity: O(1).
get underestimatedCount(): numberSwift declaration@nonobjc var underestimatedCount: Int { get }A value less than or equal to the number of elements in the collection. - Complexity: O(1).
static initSet61343(anSet: NSSet): NSSetSwift declaration@nonobjc convenience init(set anSet: NSSet)Initializes a newly allocated set and adds to it objects from another given set. - Returns: An initialized objects set containing the objects from `set`. The returned set might be different than the original receiver.
4 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.
NSSet.init(objects:)
A variable number of Swift arguments is not supported.
NSSet.init(arrayLiteral:)
A variable number of Swift arguments is not supported.
NSSet.objects(passingTest:)
callback cannot propagate synchronous failure
NSSet.objects(options:passingTest:)
callback cannot propagate synchronous failure