Class NSFileVersion

All Implemented Interfaces:
NSObjectProtocol, ObjCProtocol

public class NSFileVersion
extends NSObject
  • Constructor Details

    • NSFileVersion

      public NSFileVersion()
    • NSFileVersion

      protected NSFileVersion​(NSObject.Handle h, long handle)
    • NSFileVersion

      protected NSFileVersion​(NSObject.SkipInit skipInit)
  • Method Details

    • getURL

      public NSURL getURL()
    • getLocalizedName

      public String getLocalizedName()
    • getLocalizedNameOfSavingComputer

      public String getLocalizedNameOfSavingComputer()
    • getOriginatorNameComponents

      public NSPersonNameComponents getOriginatorNameComponents()
      Since:
      Available in iOS 10.0 and later.
    • getModificationDate

      public NSDate getModificationDate()
    • getPersistentIdentifier

      public NSCoding getPersistentIdentifier()
    • isConflict

      public boolean isConflict()
    • isResolved

      public boolean isResolved()
    • setResolved

      public void setResolved​(boolean v)
    • hasLocalContents

      public boolean hasLocalContents()
    • hasThumbnail

      public boolean hasThumbnail()
    • replaceItemAtURL

      public NSURL replaceItemAtURL​(NSURL url, NSFileVersionReplacingOptions options) throws NSErrorException
      Throws:
      NSErrorException
    • remove

      public boolean remove() throws NSErrorException
      Throws:
      NSErrorException
    • getCurrentItemVersionAtURL

      public static NSFileVersion getCurrentItemVersionAtURL​(NSURL url)
    • getOtherItemVersionsAtURL

      public static NSArray<NSFileVersion> getOtherItemVersionsAtURL​(NSURL url)
    • getUnresolvedConflictItemVersionsAtURL

      public static NSArray<NSFileVersion> getUnresolvedConflictItemVersionsAtURL​(NSURL url)
    • getNonlocalItemVersionsAtURL

      public static void getNonlocalItemVersionsAtURL​(NSURL url, VoidBlock2<NSArray<NSFileVersion>,​NSError> completionHandler)
    • getItemVersionAtURL

      public static NSFileVersion getItemVersionAtURL​(NSURL url, NSObject persistentIdentifier)
    • removeOtherItemVersionsAtURL

      public static boolean removeOtherItemVersionsAtURL​(NSURL url) throws NSErrorException
      Throws:
      NSErrorException