contains
TypeScriptcontains(value: number): booleanSwift declarationfunc contains(_ value: Int) -> Boolclass · SDK 27.1
class NSIndexSetcontains(value: number): booleanSwift declarationfunc contains(_ value: Int) -> Boolcontains41430(indexSet: IndexSet): booleanSwift declarationfunc contains(_ indexSet: IndexSet) -> BoolcontainsIn(range: SDKHandle): booleanSwift declarationfunc contains(in range: NSRange) -> BoolcountOfIndexes(range: SDKHandle): numberSwift declarationfunc countOfIndexes(in range: NSRange) -> IntenumerateInOptionsUsing(range: SDKHandle, opts: NSEnumerationOptions, block: ((arg0: number, arg1: NativeOut<boolean>) => void)): voidSwift declarationfunc enumerate(in range: NSRange, options opts: NSEnumerationOptions = [], using block: (Int, UnsafeMutablePointer<ObjCBool>) -> Void)enumerate(block: ((arg0: number, arg1: NativeOut<boolean>) => void)): voidSwift declarationfunc enumerate(_ block: (Int, UnsafeMutablePointer<ObjCBool>) -> Void)enumerateOptionsUsing(opts: NSEnumerationOptions, block: ((arg0: number, arg1: NativeOut<boolean>) => void)): voidSwift declarationfunc enumerate(options opts: NSEnumerationOptions = [], using block: (Int, UnsafeMutablePointer<ObjCBool>) -> Void)enumerateRangesInOptionsUsing(range: SDKHandle, opts: NSEnumerationOptions, block: ((arg0: SDKHandle, arg1: NativeOut<boolean>) => void)): voidSwift declarationfunc enumerateRanges(in range: NSRange, options opts: NSEnumerationOptions = [], using block: (NSRange, UnsafeMutablePointer<ObjCBool>) -> Void)enumerateRanges(block: ((arg0: SDKHandle, arg1: NativeOut<boolean>) => void)): voidSwift declarationfunc enumerateRanges(_ block: (NSRange, UnsafeMutablePointer<ObjCBool>) -> Void)enumerateRangesOptionsUsing(opts: NSEnumerationOptions, block: ((arg0: SDKHandle, arg1: NativeOut<boolean>) => void)): voidSwift declarationfunc enumerateRanges(options opts: NSEnumerationOptions = [], using block: (NSRange, UnsafeMutablePointer<ObjCBool>) -> Void)getIndexes(indexBuffer: SDKHandle, bufferSize: number, range?: (SDKHandle) | null): numberSwift declarationfunc getIndexes(_ indexBuffer: UnsafeMutablePointer<Int>, maxCount bufferSize: Int, inIndexRange range: NSRangePointer?) -> IntindexGreaterThanIndex(value: number): numberSwift declarationfunc indexGreaterThanIndex(_ value: Int) -> IntindexGreaterThanOrEqual(value: number): numberSwift declarationfunc indexGreaterThanOrEqual(to value: Int) -> IntindexLessThanIndex(value: number): numberSwift declarationfunc indexLessThanIndex(_ value: Int) -> IntindexLessThanOrEqual(value: number): numberSwift declarationfunc indexLessThanOrEqual(to value: Int) -> Intstatic initIndex(value: number): NSIndexSetSwift declarationconvenience init(index value: Int)static initIndexSet(indexSet: IndexSet): NSIndexSetSwift declarationinit(indexSet: IndexSet)static initIndexesIn(range: SDKHandle): NSIndexSetSwift declarationinit(indexesIn range: NSRange)intersects(range: SDKHandle): booleanSwift declarationfunc intersects(in range: NSRange) -> BoolisEqual(indexSet: IndexSet): booleanSwift declarationfunc isEqual(to indexSet: IndexSet) -> Boolget count(): numberSwift declarationvar count: Int { get }get firstIndex(): numberSwift declarationvar firstIndex: Int { get }get lastIndex(): numberSwift declarationvar lastIndex: Int { get }makeIterator(): NSIndexSetIteratorSwift declarationfunc makeIterator() -> NSIndexSetIteratorReturn 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).
7 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.
NSIndexSet.index(passingTest:)
callback cannot propagate synchronous failure
NSIndexSet.index(options:passingTest:)
callback cannot propagate synchronous failure
NSIndexSet.index(in:options:passingTest:)
callback cannot propagate synchronous failure
NSIndexSet.indexes(passingTest:)
callback cannot propagate synchronous failure
NSIndexSet.indexes(options:passingTest:)
callback cannot propagate synchronous failure
NSIndexSet.indexes(in:options:passingTest:)
callback cannot propagate synchronous failure
NSIndexSet.init()
inherited init: cannot prove legal (class declares 5 custom initializers)