class
TypeScriptstatic classForClassName(codedName: string): (string) | nullSwift declarationclass func `class`(forClassName codedName: String) -> AnyClass?class · SDK 27.1
class NSKeyedUnarchiverstatic classForClassName(codedName: string): (string) | nullSwift declarationclass func `class`(forClassName codedName: String) -> AnyClass?static setClassForClassName(cls: (string) | null, codedName: string): voidSwift declarationclass func setClass(_ cls: AnyClass?, forClassName codedName: String)static unarchiveObjectWith(data: ArrayBuffer): (unknown) | nullSwift declarationclass func unarchiveObject(with data: Data) -> Any?static unarchiveObjectWithFile(path: string): (unknown) | nullSwift declarationclass func unarchiveObject(withFile path: String) -> Any?static unarchivedObjectOfClassesFrom(classes: Array<unknown>, data: ArrayBuffer): unknownSwift declarationclass func unarchivedObject(ofClasses classes: Set<AnyHashable>, from data: Data) throws -> AnyclassForClassName71108(codedName: string): (string) | nullSwift declarationfunc `class`(forClassName codedName: String) -> AnyClass?containsValue(key: string): booleanSwift declarationfunc containsValue(forKey key: String) -> BooldecodeBool(key: string): booleanSwift declarationfunc decodeBool(forKey key: String) -> BooldecodeBytes(key: string, lengthp?: (SDKHandle) | null): (SDKHandle) | nullSwift declarationfunc decodeBytes(forKey key: String, returnedLength lengthp: UnsafeMutablePointer<Int>?) -> UnsafePointer<UInt8>?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) -> Int64decodeObject(key: string): (unknown) | nullSwift declarationfunc decodeObject(forKey key: String) -> Any?finishDecoding(): voidSwift declarationfunc finishDecoding()static init(): NSKeyedUnarchiverSwift declarationinit()static initForReadingFrom(data: ArrayBuffer): NSKeyedUnarchiverSwift declarationinit(forReadingFrom data: Data) throwsstatic initForReadingWith(data: ArrayBuffer): NSKeyedUnarchiverSwift declarationinit(forReadingWith data: Data)setClassForClassName52054(cls: (string) | null, codedName: string): voidSwift declarationfunc setClass(_ cls: AnyClass?, forClassName codedName: String)get decodingFailurePolicy(): NSCoder_DecodingFailurePolicySwift declarationvar decodingFailurePolicy: NSCoder.DecodingFailurePolicy { get set }set decodingFailurePolicy(value: NSCoder_DecodingFailurePolicy)Swift declarationvar decodingFailurePolicy: NSCoder.DecodingFailurePolicy { get set }get delegate(): (SDKHandle) | nullSwift declarationunowned(unsafe) var delegate: (any NSKeyedUnarchiverDelegate)? { get set }set delegate(value: (Implements<NSKeyedUnarchiverDelegate> | SDKHandle) | null)Swift declarationunowned(unsafe) var delegate: (any NSKeyedUnarchiverDelegate)? { get set }get requiresSecureCoding(): booleanSwift declarationvar requiresSecureCoding: Bool { get set }set requiresSecureCoding(value: boolean)Swift declarationvar requiresSecureCoding: Bool { get set }decodeDecodable(type: "Bool" | "Int" | "UInt" | "Double" | "Float" | "String" | "CGFloat" | "Date" | "URL" | "Data" | "UUID", key: string): (unknown) | nullSwift declaration@nonobjc func decodeDecodable<T>(_ type: T.Type, forKey key: String) -> T? where T : DecodableDecodes a decodable value associated with a given key. - Parameters: - type: The type of the value to decode. - key: The key in the archive associated with the value to decode. - Returns: The decoded value, or `nil` if decoding fails.
static unarchivedObjectOfClassesFrom12219(classes: Array<string>, data: ArrayBuffer): (unknown) | nullSwift declaration@nonobjc static func unarchivedObject(ofClasses classes: [AnyClass], from data: Data) throws -> Any?Decodes a previously-archived object graph, returning the root object as one of the specified classes. This method produces an error if `data` does not contain valid keyed data. > Important: Make sure you have adopted `NSSecureCoding` in the types you decode. If any call to a `decode`-prefixed method fails, the default `decodingFailurePolicy` sets the error rather than throwing an exception. In this case, the current and all subsequent decode calls return `0` or `nil`. - Parameters: - classes: A set of classes, at least one of which the root object should conform to. - data: An object graph previously encoded by `NSKeyedArchiver`. - Returns: The decoded root of the object graph, as an instance of one of the specified classes, or `nil` if an error occurred.
static unarchivedDictionary(keyClasses: Array<string>, objectClasses: Array<string>, data: ArrayBuffer): (NativeMap<unknown, unknown>) | nullSwift declaration@nonobjc static func unarchivedDictionary(keysOfClasses keyClasses: [AnyClass], objectsOfClasses objectClasses: [AnyClass], from data: Data) throws -> [AnyHashable : Any]?decodeTopLevelDecodable(type: "Bool" | "Int" | "UInt" | "Double" | "Float" | "String" | "CGFloat" | "Date" | "URL" | "Data" | "UUID", key: string): (unknown) | nullSwift declaration@nonobjc func decodeTopLevelDecodable<T>(_ type: T.Type, forKey key: String) throws -> T? where T : DecodableDecodes a top-level decodable value associated with a given key. If the archive is not a valid property list, this method throws a `DecodingError.dataCorrupted` error. If a value within the archive fails to decode, this method throws the corresponding error. - Parameters: - type: The type of the value to decode. - key: The key in the archive associated with the value to decode. - Returns: The decoded value, or `nil` if the key is not present.
static unarchivedArrayOfObjects(classes: Array<string>, data: ArrayBuffer): (Array<unknown>) | nullSwift declaration@nonobjc static func unarchivedArrayOfObjects(ofClasses classes: [AnyClass], from data: Data) throws -> [Any]?static unarchiveTopLevelObjectWithData(data: ArrayBuffer): (unknown) | nullSwift declaration@nonobjc class func unarchiveTopLevelObjectWithData(_ data: Data) throws -> Any?Decodes a previously-archived object graph, and returns the root object. This method throws an error if `data` does not contain valid keyed data. - Parameter data: An object graph previously encoded by `NSKeyedArchiver`. - Returns: The unarchived object, or `nil` if an error occurred.
3 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.
NSKeyedUnarchiver.unarchivedObject(ofClass:from:)
The iOS SDK compiler rejected this binding: static method 'unarchivedObject(ofClass:from:)' requires that 'NSObject' conform to 'NSCoding'
NSKeyedUnarchiver.unarchivedArrayOfObjects(ofClass:from:)
The iOS SDK compiler rejected this binding: static method 'unarchivedArrayOfObjects(ofClass:from:)' requires that 'NSObject' conform to 'NSSecureCoding'
NSKeyedUnarchiver.unarchivedDictionary(ofKeyClass:objectClass:from:)
The iOS SDK compiler rejected this binding: static method 'unarchivedDictionary(ofKeyClass:objectClass:from:)' requires that 'NSObject' conform to 'NSCopying'