containsValue
TypeScriptcontainsValue(key: string): booleanSwift declarationfunc containsValue(forKey key: String) -> Boolclass · SDK 27.1
class NSCodercontainsValue(key: string): booleanSwift declarationfunc containsValue(forKey key: String) -> BooldecodeArray(itemType: SDKHandle, count: number, array: SDKHandle): voidSwift declarationfunc decodeArray(ofObjCType itemType: UnsafePointer<CChar>, count: Int, at array: UnsafeMutableRawPointer)decodeBool(key: string): booleanSwift declarationfunc decodeBool(forKey key: String) -> BooldecodeBytesForKeyMinimumLength(key: string, length: number): (SDKHandle) | nullSwift declarationfunc decodeBytes(forKey key: String, minimumLength length: Int) -> UnsafePointer<UInt8>?decodeBytesForKeyReturnedLength(key: string, lengthp?: (SDKHandle) | null): (SDKHandle) | nullSwift declarationfunc decodeBytes(forKey key: String, returnedLength lengthp: UnsafeMutablePointer<Int>?) -> UnsafePointer<UInt8>?decodeBytesWithMinimumLength(length: number): (SDKHandle) | nullSwift declarationfunc decodeBytes(withMinimumLength length: Int) -> UnsafeMutableRawPointer?decodeBytesWithReturnedLength(lengthp: SDKHandle): (SDKHandle) | nullSwift declarationfunc decodeBytes(withReturnedLength lengthp: UnsafeMutablePointer<Int>) -> UnsafeMutableRawPointer?decodeData(): (ArrayBuffer) | nullSwift declarationfunc decodeData() -> Data?decodeDouble(key: string): numberSwift declarationfunc decodeDouble(forKey key: String) -> DoubledecodeFloat(key: string): numberSwift declarationfunc decodeFloat(forKey key: String) -> FloatdecodeInt32(key: string): numberSwift declarationfunc decodeInt32(forKey key: String) -> Int32decodeInt64(key: string): numberSwift declarationfunc decodeInt64(forKey key: String) -> Int64decodeCInt(key: string): numberSwift declarationfunc decodeCInt(forKey key: String) -> Int32decodeInteger(key: string): numberSwift declarationfunc decodeInteger(forKey key: String) -> IntdecodeObject(): (unknown) | nullSwift declarationfunc decodeObject() -> Any?decodeObjectForKey(key: string): (unknown) | nullSwift declarationfunc decodeObject(forKey key: String) -> Any?decodePropertyList(key: string): (unknown) | nullSwift declarationfunc decodePropertyList(forKey key: String) -> Any?decodeValueOfObjCTypeAt(type: SDKHandle, data: SDKHandle): voidSwift declarationfunc decodeValue(ofObjCType type: UnsafePointer<CChar>, at data: UnsafeMutableRawPointer)decodeValueOfObjCTypeAtSize(type: SDKHandle, data: SDKHandle, size: number): voidSwift declarationfunc decodeValue(ofObjCType type: UnsafePointer<CChar>, at data: UnsafeMutableRawPointer, size: Int)encodeArray(type: SDKHandle, count: number, array: SDKHandle): voidSwift declarationfunc encodeArray(ofObjCType type: UnsafePointer<CChar>, count: Int, at array: UnsafeRawPointer)encodeForKey(value: boolean, key: string): voidSwift declarationfunc encode(_ value: Bool, forKey key: String)encodeBycopyObject(anObject?: (unknown) | null): voidSwift declarationfunc encodeBycopyObject(_ anObject: Any?)encodeByrefObject(anObject?: (unknown) | null): voidSwift declarationfunc encodeByrefObject(_ anObject: Any?)encodeBytesLength(byteaddr: (SDKHandle) | null, length: number): voidSwift declarationfunc encodeBytes(_ byteaddr: UnsafeRawPointer?, length: Int)encodeBytesLengthForKey(bytes: (SDKHandle) | null, length: number, key: string): voidSwift declarationfunc encodeBytes(_ bytes: UnsafePointer<UInt8>?, length: Int, forKey key: String)encodeConditionalObject(object?: (unknown) | null): voidSwift declarationfunc encodeConditionalObject(_ object: Any?)encodeConditionalObjectForKey(object: (unknown) | null, key: string): voidSwift declarationfunc encodeConditionalObject(_ object: Any?, forKey key: String)encode(data: ArrayBuffer): voidSwift declarationfunc encode(_ data: Data)encodeForKey96701(value: number, key: string): voidSwift declarationfunc encode(_ value: Double, forKey key: String)encodeForKey94126(value: number, key: string): voidSwift declarationfunc encode(_ value: Float, forKey key: String)encodeForKey31516(value: number, key: string): voidSwift declarationfunc encode(_ value: Int32, forKey key: String)encodeForKey48863(value: number, key: string): voidSwift declarationfunc encode(_ value: Int64, forKey key: String)encodeCInt(value: number, key: string): voidSwift declarationfunc encodeCInt(_ value: Int32, forKey key: String)encodeForKey12026(value: number, key: string): voidSwift declarationfunc encode(_ value: Int, forKey key: String)encode55445(object?: (unknown) | null): voidSwift declarationfunc encode(_ object: Any?)encodeForKey11807(object: (unknown) | null, key: string): voidSwift declarationfunc encode(_ object: Any?, forKey key: String)encodeRootObject(rootObject: unknown): voidSwift declarationfunc encodeRootObject(_ rootObject: Any)encodeValue(type: SDKHandle, addr: SDKHandle): voidSwift declarationfunc encodeValue(ofObjCType type: UnsafePointer<CChar>, at addr: UnsafeRawPointer)failWithError(error: NativeError): voidSwift declarationfunc failWithError(_ error: any Error)static init(): NSCoderSwift declarationinit()version(className: string): numberSwift declarationfunc version(forClassName className: String) -> Intget allowedClasses(): (Array<unknown>) | nullSwift declarationvar allowedClasses: Set<AnyHashable>? { get }get allowsKeyedCoding(): booleanSwift declarationvar allowsKeyedCoding: Bool { get }get decodingFailurePolicy(): NSCoder_DecodingFailurePolicySwift declarationvar decodingFailurePolicy: NSCoder.DecodingFailurePolicy { get }get error(): (NativeError) | nullSwift declarationvar error: (any Error)? { get }get requiresSecureCoding(): booleanSwift declarationvar requiresSecureCoding: Bool { get }get systemVersion(): numberSwift declarationvar systemVersion: UInt32 { get }decodeObjectOfForKey(classes: (Array<string>) | null, key: string): (unknown) | nullSwift declaration@nonobjc func decodeObject(of classes: [AnyClass]?, forKey key: String) -> Any?Decode an object as one of several expected types, failing if the archived type doesn't match any of the types. This method is equivalent to ``decodeObject(of:forKey:)-7tmft``, but accepts a set of classes that the decoded object can match. If ``requiresSecureCoding`` is `true`, the decoded object's class must be a member of the `classes` parameter, or a subclass of a member. - Parameters: - classes: An array of expected classes that the object being decoded should match at least one of. - key: The key indicating the member to decode. - Returns: The decoded object, or `nil` if decoding fails.
decodeDictionary(keyClasses: Array<string>, classes: Array<string>, key: string): (NativeMap<unknown, unknown>) | nullSwift declaration@nonobjc func decodeDictionary(withKeysOfClasses keyClasses: [AnyClass], objectsOfClasses classes: [AnyClass], forKey key: String) -> [AnyHashable : Any]?decodeArrayOfObjects(classes: Array<string>, key: string): (Array<unknown>) | nullSwift declaration@nonobjc func decodeArrayOfObjects(ofClasses classes: [AnyClass], forKey key: String) -> [Any]?decodeTopLevelObjectOfForKey(classes: (Array<string>) | null, key: string): (unknown) | nullSwift declaration@nonobjc func decodeTopLevelObject(of classes: [AnyClass]?, forKey key: String) throws -> Any?Decode an object as one of several expected types, failing if the archived type does not match. This method is equivalent to ``decodeObject(of:forKey:)-7tmft``, but allows you to specify a set of classes that the decoded object can match. If ``requiresSecureCoding`` is `true`, the decoded object's class must be a member of the `classes` parameter, or a subclass of a member. - Parameters: - classes: An array of expected classes that the object being decoded should match at least one of. - key: The key indicating the member to decode. - Returns: The decoded object, or `nil` if decoding fails.
decodeTopLevelObjectForKey(key: string): (unknown) | nullSwift declaration@nonobjc func decodeTopLevelObject(forKey key: String) throws -> Any?Decodes the previously-encoded object associated by a key. - Parameter key: The key that identifies the object to decode. - Returns: The decoded object, or `nil` if decoding fails.
decodeTopLevelObject(): (unknown) | nullSwift declaration@nonobjc func decodeTopLevelObject() throws -> Any?Decodes a previously-encoded object. - Returns: The decoded object, or `nil` if decoding fails.
4 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.
NSCoder.decodeObject(of:forKey:)
The iOS SDK compiler rejected this binding: 'Any?' is not convertible to 'NSObject?'
NSCoder.decodeTopLevelObject(of:forKey:)
The iOS SDK compiler rejected this binding: 'Any' is not convertible to 'NSObject?'
NSCoder.decodeArrayOfObjects(ofClass:forKey:)
The iOS SDK compiler rejected this binding: instance method 'decodeArrayOfObjects(ofClass:forKey:)' requires that 'NSObject' conform to 'NSSecureCoding'
NSCoder.decodeDictionary(withKeyClass:objectClass:forKey:)
The iOS SDK compiler rejected this binding: instance method 'decodeDictionary(withKeyClass:objectClass:forKey:)' requires that 'NSObject' conform to 'NSCopying'