Package apple.fileprovider.enums
Class NSFileProviderItemCapabilities
- java.lang.Object
-
- apple.fileprovider.enums.NSFileProviderItemCapabilities
-
public final class NSFileProviderItemCapabilities extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static longAddingSubItemsIndicates that items can be imported to the folder.static longAllDeprecated.static longContentEnumeratingIndicates that the folder can be enumerated.static longDeletingIndicates that the item can be deletedstatic longEvictingIndicates that the item can be evicted.static longReadingIndicates that the file can be opened for reading.static longRenamingIndicates that the item can be renamedstatic longReparentingIndicates that the item can be moved to another folderstatic longTrashingIndicates that the item can be moved to the trashstatic longWritingIndicates that the file can be opened for writing.
-
-
-
Field Detail
-
Reading
public static final long Reading
Indicates that the file can be opened for reading. If set on a folder this is equivalent to @c .allowsContentEnumerating.- See Also:
- Constant Field Values
-
Writing
public static final long Writing
Indicates that the file can be opened for writing. If set on a folder, this is equivalent to @c .allowsAddingSubItems.- See Also:
- Constant Field Values
-
Reparenting
public static final long Reparenting
Indicates that the item can be moved to another folder- See Also:
- Constant Field Values
-
Renaming
public static final long Renaming
Indicates that the item can be renamed- See Also:
- Constant Field Values
-
Trashing
public static final long Trashing
Indicates that the item can be moved to the trash- See Also:
- Constant Field Values
-
Deleting
public static final long Deleting
Indicates that the item can be deleted- See Also:
- Constant Field Values
-
AddingSubItems
public static final long AddingSubItems
Indicates that items can be imported to the folder. If set on a file, this is equivalent to @c .allowsWriting.- See Also:
- Constant Field Values
-
ContentEnumerating
public static final long ContentEnumerating
Indicates that the folder can be enumerated. If set on a file, this is equivalent to @c .allowsReading.- See Also:
- Constant Field Values
-
All
@Deprecated public static final long All
Deprecated.Indicates that the folder can be enumerated. If set on a file, this is equivalent to @c .allowsReading. API-Since: 11.0 Deprecated-Since: 15.0 Deprecated-Message: This capability is no longer supported, and does not contain all capabilities. Please migrate to directly specifying each of the individual capabilities that should be allowed for the item.- See Also:
- Constant Field Values
-
Evicting
public static final long Evicting
Indicates that the item can be evicted. If this capability is set on an item, the item will become evictable when the item is fully uploaded (-[NSFileProviderItem isUploaded] not implemented or set to YES), is not actively used and contains no local changes. The eviction can happen either because the user selected the "Remove Download" option in Finder, because the provider decided to evict the item using `-[NSFileProviderManager evictItemWithIdentifier:completionHandler:]`, or because the system ran into a low-disk space scenario. If this capability is not present, the item will never be evicted. If the provider wishes to only suppress the user's ability to evict the item in the UI (but retain the ability of the OS or the provider's program to evict items), the provider can set the following key to false in their Info.plist, in the NSExtension section: NSExtensionFileProviderAllowsUserControlledEviction- See Also:
- Constant Field Values
-
-