archiveRootObject
TypeScriptstatic archiveRootObject(rootObject: unknown, path: string): booleanSwift declarationclass func archiveRootObject(_ rootObject: Any, toFile path: String) -> Boolclass · SDK 27.1
class NSKeyedArchiverstatic archiveRootObject(rootObject: unknown, path: string): booleanSwift declarationclass func archiveRootObject(_ rootObject: Any, toFile path: String) -> Boolstatic archivedDataWithRootObject(rootObject: unknown): ArrayBufferSwift declarationclass func archivedData(withRootObject rootObject: Any) -> Datastatic archivedDataWithRootObjectRequiringSecureCoding(object: unknown, requiresSecureCoding: boolean): ArrayBufferSwift declarationclass func archivedData(withRootObject object: Any, requiringSecureCoding requiresSecureCoding: Bool) throws -> Datastatic classNameFor(cls: string): (string) | nullSwift declarationclass func className(for cls: AnyClass) -> String?static setClassNameFor(codedName: (string) | null, cls: string): voidSwift declarationclass func setClassName(_ codedName: String?, for cls: AnyClass)classNameFor12199(cls: string): (string) | nullSwift declarationfunc className(for cls: AnyClass) -> String?encodeForKey(value: boolean, key: string): voidSwift declarationfunc encode(_ value: Bool, forKey key: String)encodeBytes(bytes: (SDKHandle) | null, length: number, key: string): voidSwift declarationfunc encodeBytes(_ bytes: UnsafePointer<UInt8>?, length: Int, forKey key: String)encodeConditionalObject(object: (unknown) | null, key: string): voidSwift declarationfunc encodeConditionalObject(_ object: Any?, forKey key: String)encodeForKey45942(value: number, key: string): voidSwift declarationfunc encode(_ value: Double, forKey key: String)encodeForKey74723(value: number, key: string): voidSwift declarationfunc encode(_ value: Float, forKey key: String)encodeForKey98637(value: number, key: string): voidSwift declarationfunc encode(_ value: Int32, forKey key: String)encodeForKey17290(value: number, key: string): voidSwift declarationfunc encode(_ value: Int64, forKey key: String)encodeForKey92128(object: (unknown) | null, key: string): voidSwift declarationfunc encode(_ object: Any?, forKey key: String)finishEncoding(): voidSwift declarationfunc finishEncoding()static init(): NSKeyedArchiverSwift declarationinit()static initForWritingWith(data: NSMutableData): NSKeyedArchiverSwift declarationinit(forWritingWith data: NSMutableData)static initRequiringSecureCoding(requiresSecureCoding: boolean): NSKeyedArchiverSwift declarationinit(requiringSecureCoding requiresSecureCoding: Bool)setClassNameFor75119(codedName: (string) | null, cls: string): voidSwift declarationfunc setClassName(_ codedName: String?, for cls: AnyClass)get delegate(): (SDKHandle) | nullSwift declarationunowned(unsafe) var delegate: (any NSKeyedArchiverDelegate)? { get set }set delegate(value: (Implements<NSKeyedArchiverDelegate> | SDKHandle) | null)Swift declarationunowned(unsafe) var delegate: (any NSKeyedArchiverDelegate)? { get set }get encodedData(): ArrayBufferSwift declarationvar encodedData: Data { get }get outputFormat(): PropertyListSerialization_PropertyListFormatSwift declarationvar outputFormat: PropertyListSerialization.PropertyListFormat { get set }set outputFormat(value: PropertyListSerialization_PropertyListFormat)Swift declarationvar outputFormat: PropertyListSerialization.PropertyListFormat { get set }get requiresSecureCoding(): booleanSwift declarationvar requiresSecureCoding: Bool { get set }set requiresSecureCoding(value: boolean)Swift declarationvar requiresSecureCoding: Bool { get set }encodeEncodable(value: number, key: string): voidSwift declaration@nonobjc func encodeEncodable<T>(_ value: T, forKey key: String) throws where T : EncodableEncodes a given value and associates it with a key. If there's a problem encoding the value you supply, this method throws an error based on the type of problem: - The value fails to encode, or contains a nested value that fails to encode -- this method throws the corresponding error. - The value can't be encoded as a property list -- this method throws an `EncodingError.invalidValue` error. - Parameters: - value: The value to encode. - key: The key with which to associate the encoded value.
No declarations were skipped in this snapshot.