Class FileProvider


  • public final class FileProvider
    extends java.lang.Object
    • Method Detail

      • NSFileProviderRootContainerItemIdentifier

        public static java.lang.String NSFileProviderRootContainerItemIdentifier()
        The root of the hierarchical enumeration, i.e the container enumerated when the user starts browsing your file provider.
      • NSFileProviderWorkingSetContainerItemIdentifier

        public static java.lang.String NSFileProviderWorkingSetContainerItemIdentifier()
        The item identifier of the working set, a synthetic container used by the extension to communicate changes to the system even when the parent directories of these items aren't actively being enumerated. Items in this set should have their parentItemIdentifier set to the identifier of their parent directory. The working set is the set of files and directories that should be made available to the system regardless of the local browsing history. Files listed in the working set are indexed in the local Spotlight index and appear in offline search results. They contribute to the Recents view of the Files app, sorted by lastUsedDate, and it is therefore important to provide a consistent experience across devices by including in the working set all the documents recently used, trashed, favorited, shared or tagged. The Spotlight index and the Recents view will show outdated information unless the file provider extension keeps the working set up to date with local and remote changes. When an item in the working set is remotely modified, the extension calls -signalEnumeratorForContainerItemIdentifier: on the identifier of the working set; the system will then enumerate changes and update its caches.
      • NSFileProviderFavoriteRankUnranked

        public static long NSFileProviderFavoriteRankUnranked()
        A special value for favorite ranks, to use when no rank was set when the item was favorited.
      • NSFileProviderInitialPageSortedByDate

        public static NSData NSFileProviderInitialPageSortedByDate()
      • NSFileProviderInitialPageSortedByName

        public static NSData NSFileProviderInitialPageSortedByName()
      • NSFileProviderErrorDomain

        public static java.lang.String NSFileProviderErrorDomain()
      • NSFileProviderErrorCollidingItemKey

        public static java.lang.String NSFileProviderErrorCollidingItemKey()
      • NSFileProviderErrorNonExistentItemIdentifierKey

        public static java.lang.String NSFileProviderErrorNonExistentItemIdentifierKey()