currentVersionOfItem
TypeScriptstatic currentVersionOfItem(url: string): (NSFileVersion) | nullSwift declarationclass func currentVersionOfItem(at url: URL) -> NSFileVersion?class · iOS 5.0+ · SDK 27.1
class NSFileVersionstatic currentVersionOfItem(url: string): (NSFileVersion) | nullSwift declarationclass func currentVersionOfItem(at url: URL) -> NSFileVersion?static getNonlocalVersionsOfItem(url: string, completionHandler: ((arg0: (Array<NSFileVersion>) | null, arg1: (NativeError) | null) => void)): voidSwift declarationclass func nonlocalVersionsOfItem(at url: URL) async throws -> [NSFileVersion]static otherVersionsOfItem(url: string): (Array<NSFileVersion>) | nullSwift declarationclass func otherVersionsOfItem(at url: URL) -> [NSFileVersion]?static removeOtherVersionsOfItem(url: string): voidSwift declarationclass func removeOtherVersionsOfItem(at url: URL) throwsstatic unresolvedConflictVersionsOfItem(url: string): (Array<NSFileVersion>) | nullSwift declarationclass func unresolvedConflictVersionsOfItem(at url: URL) -> [NSFileVersion]?static version(url: string, persistentIdentifier: unknown): (NSFileVersion) | nullSwift declarationclass func version(itemAt url: URL, forPersistentIdentifier persistentIdentifier: Any) -> NSFileVersion?remove(): voidSwift declarationfunc remove() throwsreplaceItem(url: string, options?: NSFileVersion_ReplacingOptions): stringSwift declarationfunc replaceItem(at url: URL, options: NSFileVersion.ReplacingOptions = []) throws -> URLget url(): stringSwift declarationvar url: URL { get }get isConflict(): booleanSwift declarationvar isConflict: Bool { get }get hasLocalContents(): booleanSwift declarationvar hasLocalContents: Bool { get }get hasThumbnail(): booleanSwift declarationvar hasThumbnail: Bool { get }get localizedName(): (string) | nullSwift declarationvar localizedName: String? { get }get localizedNameOfSavingComputer(): (string) | nullSwift declarationvar localizedNameOfSavingComputer: String? { get }get modificationDate(): (globalThis.Date) | nullSwift declarationvar modificationDate: Date? { get }get originatorNameComponents(): (PersonNameComponents) | nullSwift declarationvar originatorNameComponents: PersonNameComponents? { get }get persistentIdentifier(): SDKHandleSwift declarationvar persistentIdentifier: any NSCoding { get }get isResolved(): booleanSwift declarationvar isResolved: Bool { get set }set isResolved(value: boolean)Swift declarationvar isResolved: Bool { get set }1 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.
NSFileVersion.init()
inherited init: cannot prove legal (class declares 1 custom initializer)