fileprovider

package
v0.11.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 24, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Rendered for darwin/amd64

Overview

Package fileprovider provides purego-based Go bindings for the macOS FileProvider framework.

Apple documentation: https://developer.apple.com/documentation/fileprovider

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NSFileProviderDomainDidChange

func NSFileProviderDomainDidChange() *foundation.NSString

Posted when any domain changed. Interested client should then call `+[NSFileProviderManager getDomainsWithCompletionHandler:]` and see what changed. Note, this notification starts to be posted only after `+[NSFileProviderManager getDomainsWithCompletionHandler:]` is called.

func NSFileProviderErrorDomain

func NSFileProviderErrorDomain() *foundation.NSString

func NSFileProviderErrorItemKey

func NSFileProviderErrorItemKey() uintptr

func NSFileProviderErrorNonExistentItemIdentifierKey

func NSFileProviderErrorNonExistentItemIdentifierKey() *foundation.NSString

func NSFileProviderFavoriteRankUnranked

func NSFileProviderFavoriteRankUnranked() uintptr

A special value for favorite ranks, to use when no rank was set when the item was favorited.

func NSFileProviderInitialPageSortedByDate

func NSFileProviderInitialPageSortedByDate() *foundation.NSData

func NSFileProviderInitialPageSortedByName

func NSFileProviderInitialPageSortedByName() *foundation.NSData

func NSFileProviderItemVersionBeforeFirstSyncComponent

func NSFileProviderItemVersionBeforeFirstSyncComponent() *foundation.NSData

Version component exposed by the system to denote a state that predates a version returned by the provider. In case an item was created by calling `createItemBasedOnTemplate` and the item returned by the provider in the completion handler of that call didn't match the item template passed by the system, the system will try to apply the changes asked by the provider to the disk. However, the system may detect conflicts when applying those content back to the disk, which will cause the system to send the new disk version to the extension, by calling `modifyItem` or `deleteItemWithIdentifier` with a `baseVersion` that represents the item as passed in the template of the `createItemBasedOnTemplate` call. This constant is used by the system to represent that specific version that was communicated by the system to the extension but does not have a corresponding version assigned by the extension.

func NSFileProviderManagerAddDomainCompletionHandler

func NSFileProviderManagerAddDomainCompletionHandler(domain *NSFileProviderDomain, completionHandler func(unsafe.Pointer))

Adds a domain to the File Provider extension.

func NSFileProviderManagerCheckDomainsCanBeStoredOnVolumeAtURLUnsupportedReasonError

func NSFileProviderManagerCheckDomainsCanBeStoredOnVolumeAtURLUnsupportedReasonError(eligible *bool, url *foundation.NSURL, unsupportedReason *NSFileProviderVolumeUnsupportedReason) (bool, error)

Check if a URL is eligible for storing a domain.

func NSFileProviderManagerGetDomainsWithCompletionHandler

func NSFileProviderManagerGetDomainsWithCompletionHandler(completionHandler func(*foundation.NSArray[*NSFileProviderDomain], unsafe.Pointer))

Returns all of the File Provider extension’s domains.

func NSFileProviderManagerGetIdentifierForUserVisibleFileAtURLCompletionHandler

func NSFileProviderManagerGetIdentifierForUserVisibleFileAtURLCompletionHandler(url *foundation.NSURL, completionHandler func(*foundation.NSString, *foundation.NSString, unsafe.Pointer))

Returns the identifier and domain for a user-visible URL.

func NSFileProviderManagerImportDomainFromDirectoryAtURLCompletionHandler

func NSFileProviderManagerImportDomainFromDirectoryAtURLCompletionHandler(domain *NSFileProviderDomain, url *foundation.NSURL, completionHandler func(unsafe.Pointer))

Creates a new domain that takes ownership of on-disk data that your app previously managed without a file provider.

func NSFileProviderManagerRemoveAllDomainsWithCompletionHandler

func NSFileProviderManagerRemoveAllDomainsWithCompletionHandler(completionHandler func(unsafe.Pointer))

Removes all domains from the File Provider extension.

func NSFileProviderManagerRemoveDomainCompletionHandler

func NSFileProviderManagerRemoveDomainCompletionHandler(domain *NSFileProviderDomain, completionHandler func(unsafe.Pointer))

Removes a domain from the File Provider extension.

func NSFileProviderManagerRemoveDomainModeCompletionHandler

func NSFileProviderManagerRemoveDomainModeCompletionHandler(domain *NSFileProviderDomain, mode NSFileProviderDomainRemovalMode, completionHandler func(unsafe.Pointer, unsafe.Pointer))

Removes a domain from the File Provider extension using the specified options.

func NSFileProviderMaterializedSetDidChange

func NSFileProviderMaterializedSetDidChange() *foundation.NSString

func NSFileProviderPendingSetDidChange

func NSFileProviderPendingSetDidChange() *foundation.NSString

Posted when the pending set has changed. Interested clients can then use the pending set enumerator returned by -enumeratorForPendingItems to enumerate changes on the pending set. Note, this notification starts to be posted only after `+[NSFileProviderManager getDomainsWithCompletionHandler:]` is called.

func NSFileProviderRootContainerItemIdentifier

func NSFileProviderRootContainerItemIdentifier() uintptr

The root of the hierarchical enumeration, i.e the container enumerated when the user starts browsing your file provider.

func NSFileProviderTrashContainerItemIdentifier

func NSFileProviderTrashContainerItemIdentifier() uintptr

The container containing all the trashed items. When an item is trashed, its `parentItemIdentifier` becomes `NSFileProviderTrashContainerItemIdentifier`. Extension should be able to return all trashed items by supporting the creation of a NSFileProviderEnumerator for the trashed items.

func NSFileProviderUserInfoExperimentIDKey

func NSFileProviderUserInfoExperimentIDKey() uintptr

System interpreted user info key When setting a value to that user info on a domain, the system will ingest this value. If user has given their consent for telemetry, this value will be used to decorate telemetry messages sent by the FileProvider subsystem. The telemetry messages can be then later on retrieved by developers along with the other metrics through the CloudKit console as detailed here: https://developer.apple.com/documentation/fileprovider/exporting-file-provider-metrics-data?language=objc This will help developers triaging data they receive from testing population compared to regular users The value must either be a NSNumber between [0 - 31]. If it's not in that range, or if it is not a NSNumber, any call to addDomain with that invalid UserInfo dictionary will fail with a EINVAL POSIX NSError. To update this value, the provider must call addDomain with an updated userInfo dictionary

func NSFileProviderWorkingSetContainerItemIdentifier

func NSFileProviderWorkingSetContainerItemIdentifier() uintptr

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. Starting in iOS 12 and macOS 10.15, the system maintains a cache on the local file system of files and directories previously enumerated. The working set is the container used to update that set of files. The extension may know whether an item is in that set by checking whether its parentItemIdentifier is listed in the materialized containers, see the documentation on -materializedItemsDidChangeWithCompletionHandler:.

Types

type Acl_entry_id_t

type Acl_entry_id_t int64
const (
	ACL_FIRST_ENTRY Acl_entry_id_t = 0
	ACL_NEXT_ENTRY  Acl_entry_id_t = -1
	ACL_LAST_ENTRY  Acl_entry_id_t = -2
)

func (Acl_entry_id_t) String

func (e Acl_entry_id_t) String() string

type Acl_flag_t

type Acl_flag_t int64
const (
	ACL_FLAG_DEFER_INHERIT      Acl_flag_t = 1
	ACL_FLAG_NO_INHERIT         Acl_flag_t = 131072
	ACL_ENTRY_INHERITED         Acl_flag_t = 16
	ACL_ENTRY_FILE_INHERIT      Acl_flag_t = 32
	ACL_ENTRY_DIRECTORY_INHERIT Acl_flag_t = 64
	ACL_ENTRY_LIMIT_INHERIT     Acl_flag_t = 128
	ACL_ENTRY_ONLY_INHERIT      Acl_flag_t = 256
)

func (Acl_flag_t) String

func (e Acl_flag_t) String() string

type Acl_perm_t

type Acl_perm_t int64
const (
	ACL_READ_DATA           Acl_perm_t = 2
	ACL_LIST_DIRECTORY      Acl_perm_t = 2
	ACL_WRITE_DATA          Acl_perm_t = 4
	ACL_ADD_FILE            Acl_perm_t = 4
	ACL_EXECUTE             Acl_perm_t = 8
	ACL_SEARCH              Acl_perm_t = 8
	ACL_DELETE              Acl_perm_t = 16
	ACL_APPEND_DATA         Acl_perm_t = 32
	ACL_ADD_SUBDIRECTORY    Acl_perm_t = 32
	ACL_DELETE_CHILD        Acl_perm_t = 64
	ACL_READ_ATTRIBUTES     Acl_perm_t = 128
	ACL_WRITE_ATTRIBUTES    Acl_perm_t = 256
	ACL_READ_EXTATTRIBUTES  Acl_perm_t = 512
	ACL_WRITE_EXTATTRIBUTES Acl_perm_t = 1024
	ACL_READ_SECURITY       Acl_perm_t = 2048
	ACL_WRITE_SECURITY      Acl_perm_t = 4096
	ACL_CHANGE_OWNER        Acl_perm_t = 8192
	ACL_SYNCHRONIZE         Acl_perm_t = 1048576
)

func (Acl_perm_t) String

func (e Acl_perm_t) String() string

type Acl_tag_t

type Acl_tag_t int64
const (
	ACL_UNDEFINED_TAG  Acl_tag_t = 0
	ACL_EXTENDED_ALLOW Acl_tag_t = 1
	ACL_EXTENDED_DENY  Acl_tag_t = 2
)

func (Acl_tag_t) String

func (e Acl_tag_t) String() string

type Acl_type_t

type Acl_type_t int64
const (
	ACL_TYPE_EXTENDED Acl_type_t = 256
	ACL_TYPE_ACCESS   Acl_type_t = 0
	ACL_TYPE_DEFAULT  Acl_type_t = 1
	ACL_TYPE_AFS      Acl_type_t = 2
	ACL_TYPE_CODA     Acl_type_t = 3
	ACL_TYPE_NTFS     Acl_type_t = 4
	ACL_TYPE_NWFS     Acl_type_t = 5
)

func (Acl_type_t) String

func (e Acl_type_t) String() string

type Clockid_t

type Clockid_t int64

func (Clockid_t) String

func (e Clockid_t) String() string

type Dispatch_autorelease_frequency_t

type Dispatch_autorelease_frequency_t uint64
const (
	DISPATCH_AUTORELEASE_FREQUENCY_INHERIT   Dispatch_autorelease_frequency_t = 0
	DISPATCH_AUTORELEASE_FREQUENCY_WORK_ITEM Dispatch_autorelease_frequency_t = 1
	DISPATCH_AUTORELEASE_FREQUENCY_NEVER     Dispatch_autorelease_frequency_t = 2
)

func (Dispatch_autorelease_frequency_t) String

type Dispatch_block_flags_t

type Dispatch_block_flags_t uint64
const (
	DISPATCH_BLOCK_BARRIER           Dispatch_block_flags_t = 1
	DISPATCH_BLOCK_DETACHED          Dispatch_block_flags_t = 2
	DISPATCH_BLOCK_ASSIGN_CURRENT    Dispatch_block_flags_t = 4
	DISPATCH_BLOCK_NO_QOS_CLASS      Dispatch_block_flags_t = 8
	DISPATCH_BLOCK_INHERIT_QOS_CLASS Dispatch_block_flags_t = 16
	DISPATCH_BLOCK_ENFORCE_QOS_CLASS Dispatch_block_flags_t = 32
)

func (Dispatch_block_flags_t) String

func (e Dispatch_block_flags_t) String() string

type EvCmd

type EvCmd int64
const (
	EVNOP   EvCmd = 0
	EVHIDE  EvCmd = 1
	EVSHOW  EvCmd = 2
	EVMOVE  EvCmd = 3
	EVLEVEL EvCmd = 4
)

func (EvCmd) String

func (e EvCmd) String() string

type Filesec_property_t

type Filesec_property_t int64
const (
	FILESEC_OWNER         Filesec_property_t = 1
	FILESEC_GROUP         Filesec_property_t = 2
	FILESEC_UUID          Filesec_property_t = 3
	FILESEC_MODE          Filesec_property_t = 4
	FILESEC_ACL           Filesec_property_t = 5
	FILESEC_GRPUUID       Filesec_property_t = 6
	FILESEC_ACL_RAW       Filesec_property_t = 100
	FILESEC_ACL_ALLOCSIZE Filesec_property_t = 101
)

func (Filesec_property_t) String

func (e Filesec_property_t) String() string

type Idtype_t

type Idtype_t int64
const (
	P_ALL  Idtype_t = 0
	P_PID  Idtype_t = 1
	P_PGID Idtype_t = 2
)

func (Idtype_t) String

func (e Idtype_t) String() string

type Ipc_info_object_type_t

type Ipc_info_object_type_t int64
const (
	IPC_OTYPE_NONE                 Ipc_info_object_type_t = 0
	IPC_OTYPE_THREAD_CONTROL       Ipc_info_object_type_t = 1
	IPC_OTYPE_TASK_CONTROL         Ipc_info_object_type_t = 2
	IPC_OTYPE_HOST                 Ipc_info_object_type_t = 3
	IPC_OTYPE_HOST_PRIV            Ipc_info_object_type_t = 4
	IPC_OTYPE_PROCESSOR            Ipc_info_object_type_t = 5
	IPC_OTYPE_PROCESSOR_SET        Ipc_info_object_type_t = 6
	IPC_OTYPE_PROCESSOR_SET_NAME   Ipc_info_object_type_t = 7
	IPC_OTYPE_TIMER                Ipc_info_object_type_t = 8
	IPC_OTYPE_PORT_SUBST_ONCE      Ipc_info_object_type_t = 9
	IPC_OTYPE_MIG                  Ipc_info_object_type_t = 10
	IPC_OTYPE_MEMORY_OBJECT        Ipc_info_object_type_t = 11
	IPC_OTYPE_XMM_PAGER            Ipc_info_object_type_t = 12
	IPC_OTYPE_XMM_KERNEL           Ipc_info_object_type_t = 13
	IPC_OTYPE_XMM_REPLY            Ipc_info_object_type_t = 14
	IPC_OTYPE_UND_REPLY            Ipc_info_object_type_t = 15
	IPC_OTYPE_HOST_NOTIFY          Ipc_info_object_type_t = 16
	IPC_OTYPE_HOST_SECURITY        Ipc_info_object_type_t = 17
	IPC_OTYPE_LEDGER               Ipc_info_object_type_t = 18
	IPC_OTYPE_MAIN_DEVICE          Ipc_info_object_type_t = 19
	IPC_OTYPE_TASK_NAME            Ipc_info_object_type_t = 20
	IPC_OTYPE_SUBSYSTEM            Ipc_info_object_type_t = 21
	IPC_OTYPE_IO_DONE_QUEUE        Ipc_info_object_type_t = 22
	IPC_OTYPE_SEMAPHORE            Ipc_info_object_type_t = 23
	IPC_OTYPE_LOCK_SET             Ipc_info_object_type_t = 24
	IPC_OTYPE_CLOCK                Ipc_info_object_type_t = 25
	IPC_OTYPE_CLOCK_CTRL           Ipc_info_object_type_t = 26
	IPC_OTYPE_IOKIT_IDENT          Ipc_info_object_type_t = 27
	IPC_OTYPE_NAMED_ENTRY          Ipc_info_object_type_t = 28
	IPC_OTYPE_IOKIT_CONNECT        Ipc_info_object_type_t = 29
	IPC_OTYPE_IOKIT_OBJECT         Ipc_info_object_type_t = 30
	IPC_OTYPE_UPL                  Ipc_info_object_type_t = 31
	IPC_OTYPE_MEM_OBJ_CONTROL      Ipc_info_object_type_t = 32
	IPC_OTYPE_AU_SESSIONPORT       Ipc_info_object_type_t = 33
	IPC_OTYPE_FILEPORT             Ipc_info_object_type_t = 34
	IPC_OTYPE_LABELH               Ipc_info_object_type_t = 35
	IPC_OTYPE_TASK_RESUME          Ipc_info_object_type_t = 36
	IPC_OTYPE_VOUCHER              Ipc_info_object_type_t = 37
	IPC_OTYPE_VOUCHER_ATTR_CONTROL Ipc_info_object_type_t = 38
	IPC_OTYPE_WORK_INTERVAL        Ipc_info_object_type_t = 39
	IPC_OTYPE_UX_HANDLER           Ipc_info_object_type_t = 40
	IPC_OTYPE_UEXT_OBJECT          Ipc_info_object_type_t = 41
	IPC_OTYPE_ARCADE_REG           Ipc_info_object_type_t = 42
	IPC_OTYPE_EVENTLINK            Ipc_info_object_type_t = 43
	IPC_OTYPE_TASK_INSPECT         Ipc_info_object_type_t = 44
	IPC_OTYPE_TASK_READ            Ipc_info_object_type_t = 45
	IPC_OTYPE_THREAD_INSPECT       Ipc_info_object_type_t = 46
	IPC_OTYPE_THREAD_READ          Ipc_info_object_type_t = 47
	IPC_OTYPE_SUID_CRED            Ipc_info_object_type_t = 48
	IPC_OTYPE_HYPERVISOR           Ipc_info_object_type_t = 49
	IPC_OTYPE_TASK_ID_TOKEN        Ipc_info_object_type_t = 50
	IPC_OTYPE_TASK_FATAL           Ipc_info_object_type_t = 51
	IPC_OTYPE_KCDATA               Ipc_info_object_type_t = 52
	IPC_OTYPE_EXCLAVES_RESOURCE    Ipc_info_object_type_t = 53
	IPC_OTYPE_THREAD_RESUME        Ipc_info_object_type_t = 54
	IPC_OTYPE_UNKNOWN              Ipc_info_object_type_t = 4294967295
)

func (Ipc_info_object_type_t) String

func (e Ipc_info_object_type_t) String() string

type Launch_data_type_t

type Launch_data_type_t int64
const (
	LAUNCH_DATA_DICTIONARY Launch_data_type_t = 1
	LAUNCH_DATA_ARRAY      Launch_data_type_t = 2
	LAUNCH_DATA_FD         Launch_data_type_t = 3
	LAUNCH_DATA_INTEGER    Launch_data_type_t = 4
	LAUNCH_DATA_REAL       Launch_data_type_t = 5
	LAUNCH_DATA_BOOL       Launch_data_type_t = 6
	LAUNCH_DATA_STRING     Launch_data_type_t = 7
	LAUNCH_DATA_OPAQUE     Launch_data_type_t = 8
	LAUNCH_DATA_ERRNO      Launch_data_type_t = 9
	LAUNCH_DATA_MACHPORT   Launch_data_type_t = 10
)

func (Launch_data_type_t) String

func (e Launch_data_type_t) String() string

type MDLabelDomain

type MDLabelDomain int64

@typedef MDLabelDomain @abstract These constants are used to specify a domain to MDLabelCreate().

const (
	KMDLabelUserDomain  MDLabelDomain = 0
	KMDLabelLocalDomain MDLabelDomain = 1
)

func (MDLabelDomain) String

func (e MDLabelDomain) String() string

type MDQueryOptionFlags

type MDQueryOptionFlags int64
const (
	KMDQuerySynchronous        MDQueryOptionFlags = 1
	KMDQueryWantsUpdates       MDQueryOptionFlags = 4
	KMDQueryAllowFSTranslation MDQueryOptionFlags = 8
)

func (MDQueryOptionFlags) String

func (e MDQueryOptionFlags) String() string

type MDQuerySortOptionFlags

type MDQuerySortOptionFlags int64

@enum MDQuerySortOptionFlags @constant kMDQueryReverseSortOrderFlag Sort the attribute in reverse order.

const (
	KMDQueryReverseSortOrderFlag MDQuerySortOptionFlags = 1
)

func (MDQuerySortOptionFlags) String

func (e MDQuerySortOptionFlags) String() string

type Mach_vm_range_flags_t

type Mach_vm_range_flags_t int64
const (
	MACH_VM_RANGE_NONE Mach_vm_range_flags_t = 0
)

func (Mach_vm_range_flags_t) String

func (e Mach_vm_range_flags_t) String() string

type Mach_vm_range_flavor_t

type Mach_vm_range_flavor_t int64
const (
	MACH_VM_RANGE_FLAVOR_INVALID Mach_vm_range_flavor_t = 0
	MACH_VM_RANGE_FLAVOR_V1      Mach_vm_range_flavor_t = 1
)

func (Mach_vm_range_flavor_t) String

func (e Mach_vm_range_flavor_t) String() string

type Mach_vm_range_tag_t

type Mach_vm_range_tag_t int64
const (
	MACH_VM_RANGE_DEFAULT Mach_vm_range_tag_t = 0
	MACH_VM_RANGE_DATA    Mach_vm_range_tag_t = 1
	MACH_VM_RANGE_FIXED   Mach_vm_range_tag_t = 2
)

func (Mach_vm_range_tag_t) String

func (e Mach_vm_range_tag_t) String() string

type Mpo_flags_t

type Mpo_flags_t int64
const (
	MPO_PORT                            Mpo_flags_t = 0
	MPO_SERVICE_PORT                    Mpo_flags_t = 1024
	MPO_CONNECTION_PORT                 Mpo_flags_t = 2048
	MPO_REPLY_PORT                      Mpo_flags_t = 4096
	MPO_WEAK_REPLY_PORT                 Mpo_flags_t = 16384
	MPO_NOTIFICATION_PORT               Mpo_flags_t = 17408
	MPO_EXCEPTION_PORT                  Mpo_flags_t = 32768
	MPO_CONNECTION_PORT_WITH_PORT_ARRAY Mpo_flags_t = 65536
)

func (Mpo_flags_t) String

func (e Mpo_flags_t) String() string

type NSFileProviderChangeObserver

type NSFileProviderChangeObserver interface {
	DidUpdateItems(updatedItems *foundation.NSArray[NSFileProviderItem])
	DidDeleteItemsWithIdentifiers(deletedItemIdentifiers *foundation.NSArray[*foundation.NSString])
	FinishEnumeratingChangesUpToSyncAnchorMoreComing(anchor *foundation.NSData, moreComing bool)
	FinishEnumeratingWithError(error_ unsafe.Pointer)
	SuggestedBatchSize() int
}

NSFileProviderChangeObserver wraps the ObjC protocol NSFileProviderChangeObserver.

type NSFileProviderContentPolicy

type NSFileProviderContentPolicy int64
const (
	// Inherit the content policy of the parent folder. This is the default policy on every item other than the root.
	NSFileProviderContentPolicyInherited NSFileProviderContentPolicy = 0
	// Download this item lazily (i.e when it is read) if it is dataless. Download remote content updates eagerly if this file is not dataless. Allow eviction on low disk pressure and other triggers. This is the default policy on the root on macOS.
	NSFileProviderContentPolicyDownloadLazily NSFileProviderContentPolicy = 1
	// Download this item lazily (i.e when it is read.) Evict the file upon remote content update. Also allow eviction on low disk pressure and other triggers. This is the default policy on the root on iOS.
	NSFileProviderContentPolicyDownloadLazilyAndEvictOnRemoteUpdate NSFileProviderContentPolicy = 2
	// Download this item eagerly (i.e before it is read.) Keep downloading remote updates eagerly. Prevent eviction on low disk pressure and other triggers. When an item with the inherited policy is moved into a folder with this policy, the system will automatically schedule a download.
	NSFileProviderContentPolicyDownloadEagerlyAndKeepDownloaded NSFileProviderContentPolicy = 3
)

func (NSFileProviderContentPolicy) String

type NSFileProviderCreateItemOptions

type NSFileProviderCreateItemOptions uint64

Options for creating items.

const (
	// An option indicating that the item may already exist in your remote storage.
	NSFileProviderCreateItemMayAlreadyExist NSFileProviderCreateItemOptions = 1
	// A value indicating a conflict for a deleted item.
	NSFileProviderCreateItemDeletionConflicted NSFileProviderCreateItemOptions = 2
)

func (NSFileProviderCreateItemOptions) String

type NSFileProviderCustomAction

type NSFileProviderCustomAction interface {
	PerformActionWithIdentifierOnItemsWithIdentifiersCompletionHandler(actionIdentifier *foundation.NSString, itemIdentifiers *foundation.NSArray[*foundation.NSString], completionHandler func(unsafe.Pointer)) *foundation.NSProgress
}

NSFileProviderCustomAction wraps the ObjC protocol NSFileProviderCustomAction.

type NSFileProviderDeleteItemOptions

type NSFileProviderDeleteItemOptions uint64

Options for deleting items.

const (
	// A value indicating that the delete operation removes the item and all of its children.
	NSFileProviderDeleteItemRecursive NSFileProviderDeleteItemOptions = 1
)

func (NSFileProviderDeleteItemOptions) String

type NSFileProviderDomain

type NSFileProviderDomain struct {
	foundation.NSObject
}

A File Provider extension’s domain.

Apple documentation: https://developer.apple.com/documentation/fileprovider/nsfileproviderdomain

func NSFileProviderDomainFromID

func NSFileProviderDomainFromID(id objc.ID) *NSFileProviderDomain

func (*NSFileProviderDomain) BackingStoreIdentity

func (o *NSFileProviderDomain) BackingStoreIdentity() *foundation.NSData

Identity of the backing store of the domain on the system. This property only applies for extensions that implement NSFileProviderReplicatedExtension. This provides an identifier that uniquely identifies the backing store used by the system for the domain. When this identifier has changed, the system has dropped its backing store and is building a new one. The system may decide to rebuild its backing store if it got corrupted. The backing store can also be rebuilt as a response to the provider calling `-[NSFileProviderManager reimportItemsBelowItemWithIdentifier:completionHandler:]`. It is guaranteed that calling reimport on the root item will cause the backing store to be rebuilt, but the system can also decide to do so when reimport is called on other items. When rebuilding the backing store, the system will invalidate any extension instance associated to that domain. As a consequence, the identity of the backing store associated with that domain is guaranteed to be stable for the lifetime of the NSFileProviderReplicatedExtension instance.

func (*NSFileProviderDomain) DisplayName

func (o *NSFileProviderDomain) DisplayName() *foundation.NSString

The display name shown by the system to represent this domain.

func (*NSFileProviderDomain) Identifier

func (o *NSFileProviderDomain) Identifier() *foundation.NSString

The identifier - as provided by the file provider extension.

func (*NSFileProviderDomain) InitWithDisplayNameUserInfoVolumeURL

func (o *NSFileProviderDomain) InitWithDisplayNameUserInfoVolumeURL(displayName *foundation.NSString, userInfo *foundation.NSDictionary[objc.ID, objc.ID], volumeURL *foundation.NSURL) *NSFileProviderDomain

Creates a new file provider domain with the specified URL and display name.

func (*NSFileProviderDomain) InitWithIdentifierDisplayName

func (o *NSFileProviderDomain) InitWithIdentifierDisplayName(identifier *foundation.NSString, displayName *foundation.NSString) *NSFileProviderDomain

Creates a new file provider domain with the specified identifier and display name.

func (*NSFileProviderDomain) IsDisconnected

func (o *NSFileProviderDomain) IsDisconnected() bool

If set, the domain is present, but disconnected from its extension. In this state, the user continues to be able to browse the domain's contents, but the extension doesn't receive updates on modifications to the files, nor is it consulted to update folder's contents. The disconnected state can be modified on an existing domain via the disconnectWithReason method on NSFileProviderManager.

func (*NSFileProviderDomain) IsHidden

func (o *NSFileProviderDomain) IsHidden() bool

If this domain is not user visible. Typically, this can be used for dry-run migration. The files are still on disk though.

func (*NSFileProviderDomain) IsReplicated

func (o *NSFileProviderDomain) IsReplicated() bool

If the domain is a replicated domain. If set to YES, it means the domain is replicated. By default, on macOS, the value will always be YES. On iOS, it will depend on the way the NSFileProviderDomain object is contructed. Calling -[NSFileProviderDomain initWithIdentifier:displayName:] will initialize a replicated domain. -[NSFileProviderDomain initWithIdentifier:displayName:pathRelativeToDocumentStorage:] will initialize a non-replicated domain. To know whether a domain is replicated or not, users are advised to rely on the output of +[NSFileProviderManager getDomainsForProviderIdentifier:completionHandler:]

func (*NSFileProviderDomain) ReplicatedKnownFolders

func (o *NSFileProviderDomain) ReplicatedKnownFolders() NSFileProviderKnownFolders

List of known folders that are currently replicated by this domain.

func (*NSFileProviderDomain) SetHidden

func (o *NSFileProviderDomain) SetHidden(hidden bool)

func (*NSFileProviderDomain) SetSupportedKnownFolders

func (o *NSFileProviderDomain) SetSupportedKnownFolders(supportedKnownFolders NSFileProviderKnownFolders)

func (*NSFileProviderDomain) SetSupportsStringSearchRequest

func (o *NSFileProviderDomain) SetSupportsStringSearchRequest(supportsStringSearchRequest bool)

func (*NSFileProviderDomain) SetSupportsSyncingTrash

func (o *NSFileProviderDomain) SetSupportsSyncingTrash(supportsSyncingTrash bool)

func (*NSFileProviderDomain) SetTestingModes

func (o *NSFileProviderDomain) SetTestingModes(testingModes NSFileProviderDomainTestingModes)

func (*NSFileProviderDomain) SetUserInfo

func (o *NSFileProviderDomain) SetUserInfo(userInfo *foundation.NSDictionary[objc.ID, objc.ID])

func (*NSFileProviderDomain) SupportedKnownFolders

func (o *NSFileProviderDomain) SupportedKnownFolders() NSFileProviderKnownFolders

List known folders that can be replicated by this domain.

func (*NSFileProviderDomain) SupportsStringSearchRequest

func (o *NSFileProviderDomain) SupportsStringSearchRequest() bool

Whether the system should use this domain's `NSFileProviderSearching` implementation to support search experiences. Defaults to NO.

func (*NSFileProviderDomain) SupportsSyncingTrash

func (o *NSFileProviderDomain) SupportsSyncingTrash() bool

Whether the domain supports syncing the trash. The system supports syncing a trash folder (NSFileProviderTrashContainerItemIdentifier) to the extension. On iOS, this is surfaced to the user as "Recently Deleted" in the Files app. On macOS, this is surfaced to the user as the Trash in Finder. If the domain is configured with supportsSyncingTrash=YES, the system will reparent trashed files (which were located in the extension's domain) to NSFileProviderTrashContainerItemIdentifier. If the domain is configured with supportsSyncingTrash=NO, the system will decide how to handle the trashing operation (not guaranteed by API contract). This property is only applicable for NSFileProviderReplicatedExtension-based domains. This property defaults to YES.

func (*NSFileProviderDomain) TestingModes

Testing modes. Testing modes are exposed as a means for the provider to have more control over the system in a testing environment. Enabling a testing mode alters the behavior of the system and enables some APIs for that mode. A process must have the com.apple.developer.fileprovider.testing-mode entitlement in order to configure a domain with non-empty testing modes.

func (*NSFileProviderDomain) UserEnabled

func (o *NSFileProviderDomain) UserEnabled() bool

If user has disabled this domain from Files.app on iOS or System Settings on macOS, this will be set to NO.

func (*NSFileProviderDomain) UserInfo

A dictionary set by the client app. Keys must be strings, values must be [String, Number, Date, Data]

func (*NSFileProviderDomain) VolumeUUID

func (o *NSFileProviderDomain) VolumeUUID() *foundation.NSUUID

type NSFileProviderDomainRemovalMode

type NSFileProviderDomainRemovalMode int64

A mode indicating how the system handles user data when removing a domain.

const (
	// Don't keep any files that are current in the domain
	NSFileProviderDomainRemovalModeRemoveAll NSFileProviderDomainRemovalMode = 0
	// Delete the domain from the system but keeps the at least all the dirty corresponding user data around.
	NSFileProviderDomainRemovalModePreserveDirtyUserData NSFileProviderDomainRemovalMode = 1
	// Delete the domain from the system but keeps all the downloaded corresponding user data around.
	NSFileProviderDomainRemovalModePreserveDownloadedUserData NSFileProviderDomainRemovalMode = 2
)

func (NSFileProviderDomainRemovalMode) String

type NSFileProviderDomainState

type NSFileProviderDomainState interface {
	DomainVersion() *NSFileProviderDomainVersion
	UserInfo() *foundation.NSDictionary[objc.ID, objc.ID]
}

NSFileProviderDomainState wraps the ObjC protocol NSFileProviderDomainState.

type NSFileProviderDomainTestingModes

type NSFileProviderDomainTestingModes uint64

Modes that modify the system’s behavior while testing.

const (
	// Enable the domain without any user action required.
	NSFileProviderDomainTestingModeAlwaysEnabled NSFileProviderDomainTestingModes = 1
	// Enable interactive mode. Disable the automatic scheduling from the system and allow external tools to control the execution of operations. When manual scheduling is enabled, an external tool should use -[NSFileProviderManager listAvailableTestingOperationsWithError:] and -[NSFileProviderManager runTestingOperations:error:] to control the system. If that mode is enabled, some crash recovery guarantees are lost. For instance, the system may lose any event that hasn't been ingested. The system does not support removing this mode from a domain on which it has been enabled.
	NSFileProviderDomainTestingModeInteractive NSFileProviderDomainTestingModes = 2
)

func (NSFileProviderDomainTestingModes) String

type NSFileProviderDomainVersion

type NSFileProviderDomainVersion struct {
	foundation.NSObject
}

An opaque object that identifies a specific version of a domain.

Apple documentation: https://developer.apple.com/documentation/fileprovider/nsfileproviderdomainversion

func NSFileProviderDomainVersionFromID

func NSFileProviderDomainVersionFromID(id objc.ID) *NSFileProviderDomainVersion

func (*NSFileProviderDomainVersion) Compare

Compares another domain version with this one.

func (*NSFileProviderDomainVersion) Next

Creates a new version that supersedes the current version.

type NSFileProviderEnumerating

type NSFileProviderEnumerating interface {
	EnumeratorForContainerItemIdentifierRequestError(containerItemIdentifier *foundation.NSString, request *NSFileProviderRequest) (NSFileProviderEnumerator, error)
}

NSFileProviderEnumerating wraps the ObjC protocol NSFileProviderEnumerating.

type NSFileProviderEnumerationObserver

type NSFileProviderEnumerationObserver interface {
	DidEnumerateItems(updatedItems *foundation.NSArray[NSFileProviderItem])
	FinishEnumeratingUpToPage(nextPage *foundation.NSData)
	FinishEnumeratingWithError(error_ unsafe.Pointer)
	SuggestedPageSize() int
}

NSFileProviderEnumerationObserver wraps the ObjC protocol NSFileProviderEnumerationObserver.

type NSFileProviderEnumerator

type NSFileProviderEnumerator interface {
	Invalidate()
	EnumerateItemsForObserverStartingAtPage(observer NSFileProviderEnumerationObserver, page *foundation.NSData)
}

NSFileProviderEnumerator wraps the ObjC protocol NSFileProviderEnumerator.

type NSFileProviderErrorCode

type NSFileProviderErrorCode int64

The error codes for the File Provider extension.

const (
	// The user credentials cannot be verified
	NSFileProviderErrorNotAuthenticated NSFileProviderErrorCode = -1000
	// An item already exists with the same parentItemIdentifier and filename (or with a filename differing only in case.) \note Please use -[NSError (NSFileProviderError) fileProviderErrorForCollisionWithItem:] to build an error with this code. \see -[NSError (NSFileProviderError) fileProviderErrorForCollisionWithItem:]
	NSFileProviderErrorFilenameCollision NSFileProviderErrorCode = -1001
	// The value of the sync anchor is too old, and the system must re-sync from scratch
	NSFileProviderErrorSyncAnchorExpired NSFileProviderErrorCode = -1002
	// An error indicating that the page is too old, and that the system must restart the enumeration operation from the beginning.
	NSFileProviderErrorPageExpired NSFileProviderErrorCode = -1002
	// The item has not been uploaded because it would push the account over quota
	NSFileProviderErrorInsufficientQuota NSFileProviderErrorCode = -1003
	// Connecting to the servers failed
	NSFileProviderErrorServerUnreachable NSFileProviderErrorCode = -1004
	// The requested item doesn't exist \note Please use -[NSError (NSFileProviderError) fileProviderErrorForNonExistentItemWithIdentifier:] to build an error with this code. \see -[NSError (NSFileProviderError) fileProviderErrorForNonExistentItemWithIdentifier:]
	NSFileProviderErrorNoSuchItem NSFileProviderErrorCode = -1005
	// The provider disallowed the deletion of the item. \note Please use -[NSError (NSFileProviderError) fileProviderErrorForRejectedDeletionOfItem:] to build an error with this code. \see -[NSError (NSFileProviderError) fileProviderErrorForRejectedDeletionOfItem:]
	NSFileProviderErrorDeletionRejected NSFileProviderErrorCode = -1006
	// We're trying to non-recursively delete a non-empty directory
	NSFileProviderErrorDirectoryNotEmpty NSFileProviderErrorCode = -1007
	// Returned by NSFileProviderManager if no provider could be found in the application
	NSFileProviderErrorProviderNotFound NSFileProviderErrorCode = -2001
	// Returned by NSFileProviderManager if the application's provider has been disabled due to app translocation
	NSFileProviderErrorProviderTranslocated NSFileProviderErrorCode = -2002
	// Returned by NSFileProviderManager if the provider registered in the system is an older version than the one corresponding to this app. The `NSFilePathErrorKey` key points to the location of the older version. If the location of the older version cannot be determined (e.g. because it was since deleted), the `NSFilePathErrorKey` will not be set.
	NSFileProviderErrorOlderExtensionVersionRunning NSFileProviderErrorCode = -2003
	// Returned by NSFileProviderManager if the provider registered in the system is a newer version than the one corresponding to this app.
	NSFileProviderErrorNewerExtensionVersionFound NSFileProviderErrorCode = -2004
	// Indicates that synchronization cannot happen. This error can be returned by the provider or the system. This is returned by NSFileProviderManager if a barrier failed for a sync-related error. If the failure is caused by a specific item, the system will set the NSFileProviderErrorItemKey to the corresponding item identifier and the NSUnderlyingErrorKey will be set to the error encountered by that item. When a provider returns this error on createItem or updateItem, it means that syncing that item is definitively broken. The system will not retry syncing those items, until either: The operating system has been updated. The FileProvider extension has been updated. The item is modified on disk.
	NSFileProviderErrorCannotSynchronize NSFileProviderErrorCode = -2005
	// Returned by NSFileProviderManager if directory eviction failed because the target contains non-evictable items. -[NSError underlyingErrors] is set to an array of the underlying errors. Each one has NSURLErrorKey set to identify the particular file or directory affected by this error. The number of reported failing items is capped to an implementation-defined number. + domain: NSFileProviderErrorDomain errorCode: NSFileProviderErrorUnsyncedEdits error: if the item had unsynced content. + domain: NSFileProviderErrorDomain errorCode: NSFileProviderErrorNonEvictable error: if the item has been marked as non-purgeable by the provider. + domain: NSPOSIXErrorDomain errorCode: EBUSY - if the item had open file descriptors on it. + domain: NSPOSIXErrorDomain errorCode: EMLINK : if the item had several hardlinks.
	NSFileProviderErrorNonEvictableChildren NSFileProviderErrorCode = -2006
	// Returned by NSFileProviderManager if item eviction is failing because the item has edits that have not been synced yet The NSURLErrorKey will be set to with the item URL that has unsynced content.
	NSFileProviderErrorUnsyncedEdits NSFileProviderErrorCode = -2007
	// Returned by NSFileProviderManager if item eviction is failing because the item has not been assigned the evictable capability. The NSURLErrorKey will be set to with the corresponding item URL.
	NSFileProviderErrorNonEvictable NSFileProviderErrorCode = -2008
	// Returned by the provider to indicate that the requested version for an item cannot be provided. When a provider returns that error, it means the version for this item is definitively unavailable. It is intended to be returned by fetchPartialContentsForItemWithIdentifier, when NSFileProviderFetchContentsOptionsStrictVersioning is set, to tell the system that a remote update happened to the item that outdated the requested version.
	NSFileProviderErrorVersionNoLongerAvailable             NSFileProviderErrorCode = -2009
	NSFileProviderErrorDomainDisabled                       NSFileProviderErrorCode = -2011
	NSFileProviderErrorProviderDomainTemporarilyUnavailable NSFileProviderErrorCode = -2012
	NSFileProviderErrorProviderDomainNotFound               NSFileProviderErrorCode = -2013
	NSFileProviderErrorApplicationExtensionNotFound         NSFileProviderErrorCode = -2014
	NSFileProviderErrorLocalVersionConflictingWithServer    NSFileProviderErrorCode = -2015
)

func (NSFileProviderErrorCode) String

func (e NSFileProviderErrorCode) String() string

type NSFileProviderExternalVolumeHandling

type NSFileProviderExternalVolumeHandling interface {
	ShouldConnectExternalDomainWithCompletionHandler(completionHandler func(unsafe.Pointer))
}

NSFileProviderExternalVolumeHandling wraps the ObjC protocol NSFileProviderExternalVolumeHandling.

type NSFileProviderFetchContentsOptions

type NSFileProviderFetchContentsOptions uint64

Options for fetching a range of data from a file.

const (
	// An option that indicates the system requires an exact match of the requested item’s version.
	NSFileProviderFetchContentsOptionsStrictVersioning NSFileProviderFetchContentsOptions = 1
)

func (NSFileProviderFetchContentsOptions) String

type NSFileProviderFileSystemFlags

type NSFileProviderFileSystemFlags uint64

Flags that define an item’s on-disk properties and its appearance in the user interface.

const (
	// The user can execute the item.
	NSFileProviderFileSystemUserExecutable NSFileProviderFileSystemFlags = 1
	// The user can read the item.
	NSFileProviderFileSystemUserReadable NSFileProviderFileSystemFlags = 2
	// The user can modify the item.
	NSFileProviderFileSystemUserWritable NSFileProviderFileSystemFlags = 4
	// By default, the system hides the item when the user views the file system.
	NSFileProviderFileSystemHidden NSFileProviderFileSystemFlags = 8
	// By default, the system hides the item’s extension when showing its filename.
	NSFileProviderFileSystemPathExtensionHidden NSFileProviderFileSystemFlags = 16
)

func (NSFileProviderFileSystemFlags) String

type NSFileProviderIncrementalContentFetching

type NSFileProviderIncrementalContentFetching interface {
	FetchContentsForItemWithIdentifierVersionUsingExistingContentsAtURLExistingVersionRequestCompletionHandler(itemIdentifier *foundation.NSString, requestedVersion *NSFileProviderItemVersion, existingContents *foundation.NSURL, existingVersion *NSFileProviderItemVersion, request *NSFileProviderRequest, completionHandler objc.Block) *foundation.NSProgress
}

NSFileProviderIncrementalContentFetching wraps the ObjC protocol NSFileProviderIncrementalContentFetching.

type NSFileProviderItem

type NSFileProviderItem interface {
	ItemIdentifier() *foundation.NSString
	ParentItemIdentifier() *foundation.NSString
	Filename() *foundation.NSString
}

NSFileProviderItem wraps the ObjC protocol NSFileProviderItem.

type NSFileProviderItemCapabilities

type NSFileProviderItemCapabilities uint64

An item’s capabilities, which define the actions that the user can perform in the document browser.

const (
	// A value indicating that the value can be read from.
	NSFileProviderItemCapabilitiesAllowsReading NSFileProviderItemCapabilities = 1
	// A value indicating that the item can be written to.
	NSFileProviderItemCapabilitiesAllowsWriting NSFileProviderItemCapabilities = 2
	// A value indicating that the item can be moved.
	NSFileProviderItemCapabilitiesAllowsReparenting NSFileProviderItemCapabilities = 4
	// A value indicating that the item can be renamed.
	NSFileProviderItemCapabilitiesAllowsRenaming NSFileProviderItemCapabilities = 8
	// A value indicating that the item can be moved to the trash.
	NSFileProviderItemCapabilitiesAllowsTrashing NSFileProviderItemCapabilities = 16
	// A value indicating that the item can be deleted.
	NSFileProviderItemCapabilitiesAllowsDeleting NSFileProviderItemCapabilities = 32
	// A value indicating that the system can delete the local copy of the item.
	NSFileProviderItemCapabilitiesAllowsEvicting NSFileProviderItemCapabilities = 64
	// A value indicating that the user can exclude the item from sync operations.
	NSFileProviderItemCapabilitiesAllowsExcludingFromSync NSFileProviderItemCapabilities = 128
	// A value indicating that the user can add subitems.
	NSFileProviderItemCapabilitiesAllowsAddingSubItems NSFileProviderItemCapabilities = 2
	// A value indicating that the item’s contents can be enumerated.
	NSFileProviderItemCapabilitiesAllowsContentEnumerating NSFileProviderItemCapabilities = 1
	// A convenience value for enabling all capabilities.
	NSFileProviderItemCapabilitiesAllowsAll NSFileProviderItemCapabilities = 63
)

func (NSFileProviderItemCapabilities) String

type NSFileProviderItemDecorating

type NSFileProviderItemDecorating interface {
	NSFileProviderItem
	Decorations() *foundation.NSArray[*foundation.NSString]
}

NSFileProviderItemDecorating wraps the ObjC protocol NSFileProviderItemDecorating.

type NSFileProviderItemFields

type NSFileProviderItemFields uint64

Fields that specify which of the item’s properties have changed.

const (
	// The item’s content.
	NSFileProviderItemContents NSFileProviderItemFields = 1
	// The item’s filename.
	NSFileProviderItemFilename NSFileProviderItemFields = 2
	// The identity of the directory that contains the item.
	NSFileProviderItemParentItemIdentifier NSFileProviderItemFields = 4
	// The date the item was last used.
	NSFileProviderItemLastUsedDate NSFileProviderItemFields = 8
	// The tags for the item.
	NSFileProviderItemTagData NSFileProviderItemFields = 16
	// The item’s favorite rank.
	NSFileProviderItemFavoriteRank NSFileProviderItemFields = 32
	// The item’s creation date.
	NSFileProviderItemCreationDate NSFileProviderItemFields = 64
	// The item’s modification date.
	NSFileProviderItemContentModificationDate NSFileProviderItemFields = 128
	// The flags describing the item’s on-disk representation.
	NSFileProviderItemFileSystemFlags NSFileProviderItemFields = 256
	// The item’s extended attributes.
	NSFileProviderItemExtendedAttributes NSFileProviderItemFields = 512
	// The file type and creator codes for the item.
	NSFileProviderItemTypeAndCreator NSFileProviderItemFields = 1024
)

func (NSFileProviderItemFields) String

func (e NSFileProviderItemFields) String() string

type NSFileProviderItemVersion

type NSFileProviderItemVersion struct {
	foundation.NSObject
}

The version of the item’s content and its metadata.

Apple documentation: https://developer.apple.com/documentation/fileprovider/nsfileprovideritemversion

func NSFileProviderItemVersionFromID

func NSFileProviderItemVersionFromID(id objc.ID) *NSFileProviderItemVersion

func (*NSFileProviderItemVersion) ContentVersion

func (o *NSFileProviderItemVersion) ContentVersion() *foundation.NSData

Version data for the content of the file. This property is used by the system for two purposes: if the contentVersion changes, - the system assumes that the contents have changed and will trigger a redownload if necessary. The exception to this is the case where the extension accepts a content sent by the system when replying to a createItemBasedOnTemplate or modifyItem call with shouldFetchContent set to NO. - the thumbnail cache is invalidated Note that the resource fork of the file is considered content, so this version data should change when either the data fork or the resource fork changes.

func (*NSFileProviderItemVersion) InitWithContentVersionMetadataVersion

func (o *NSFileProviderItemVersion) InitWithContentVersionMetadataVersion(contentVersion *foundation.NSData, metadataVersion *foundation.NSData) *NSFileProviderItemVersion

Creates a new version object.

func (*NSFileProviderItemVersion) MetadataVersion

func (o *NSFileProviderItemVersion) MetadataVersion() *foundation.NSData

Version data for the metadata of the item, i.e everything but the data fork and the resource fork. The system will store this version, but otherwise ignore it: - metadata changes on an item will be applied even if the metadataVersion remains unchanged - if the metadata version changes without any corresponding observable changes in the metadata returned to the system, the system will simply store the updated metadata version (to return it as the base version of a possible future change request).

type NSFileProviderKnownFolderLocation

type NSFileProviderKnownFolderLocation struct {
	foundation.NSObject
}

Apple documentation: https://developer.apple.com/documentation/fileprovider/nsfileproviderknownfolderlocation

func NSFileProviderKnownFolderLocationFromID

func NSFileProviderKnownFolderLocationFromID(id objc.ID) *NSFileProviderKnownFolderLocation

func (*NSFileProviderKnownFolderLocation) InitWithExistingItemIdentifier

func (o *NSFileProviderKnownFolderLocation) InitWithExistingItemIdentifier(existingItemIdentifier *foundation.NSString) *NSFileProviderKnownFolderLocation

Initialize a location with the item identifier of a folder that already exists on the server. If the known folder already exists on the server, the provider can specify the exact identifier of the item that needs to be used to back the known folder.

func (*NSFileProviderKnownFolderLocation) InitWithParentItemIdentifierFilename

func (o *NSFileProviderKnownFolderLocation) InitWithParentItemIdentifierFilename(parentItemIdentifier *foundation.NSString, filename *foundation.NSString) *NSFileProviderKnownFolderLocation

Initialize a location with the filename of the folder in a specified parent. When replicating a known folder the system will reuse a folder located at the specified filename within the parent if one exists, or create a new item at this location if none exists yet.

type NSFileProviderKnownFolderLocations

type NSFileProviderKnownFolderLocations struct {
	foundation.NSObject
}

A class for working with known-folder locations.

Apple documentation: https://developer.apple.com/documentation/fileprovider/nsfileproviderknownfolderlocations

func NSFileProviderKnownFolderLocationsFromID

func NSFileProviderKnownFolderLocationsFromID(id objc.ID) *NSFileProviderKnownFolderLocations

func (*NSFileProviderKnownFolderLocations) DesktopLocation

Candidate item for ~/Desktop For user experience reasons, it is strongly recommended to name the target folder "Desktop".

func (*NSFileProviderKnownFolderLocations) DocumentsLocation

Candidate item for ~/Documents For user experience reasons, it is strongly recommended to name the target folder "Documents".

func (*NSFileProviderKnownFolderLocations) Init

func (*NSFileProviderKnownFolderLocations) SetDesktopLocation

func (o *NSFileProviderKnownFolderLocations) SetDesktopLocation(desktopLocation *NSFileProviderKnownFolderLocation)

func (*NSFileProviderKnownFolderLocations) SetDocumentsLocation

func (o *NSFileProviderKnownFolderLocations) SetDocumentsLocation(documentsLocation *NSFileProviderKnownFolderLocation)
func (o *NSFileProviderKnownFolderLocations) SetShouldCreateBinaryCompatibilitySymlink(shouldCreateBinaryCompatibilitySymlink bool)
func (o *NSFileProviderKnownFolderLocations) ShouldCreateBinaryCompatibilitySymlink() bool

Specify whether the system should create a binary compatibility symlink folders. If YES, the system creates a symlink from the logical location of the folder in the domain sync root to the known folder location. This symlink allows any app that would have hardcoded the previous location of the folder to still work after enabling the feature. Default value is YES.

type NSFileProviderKnownFolderSupporting

type NSFileProviderKnownFolderSupporting interface {
	GetKnownFolderLocationsCompletionHandler(knownFolders NSFileProviderKnownFolders, completionHandler func(*NSFileProviderKnownFolderLocations, unsafe.Pointer))
}

NSFileProviderKnownFolderSupporting wraps the ObjC protocol NSFileProviderKnownFolderSupporting.

type NSFileProviderKnownFolders

type NSFileProviderKnownFolders uint64

Constants that identify known folders.

const (
	NSFileProviderDesktop   NSFileProviderKnownFolders = 1
	NSFileProviderDocuments NSFileProviderKnownFolders = 2
)

func (NSFileProviderKnownFolders) String

type NSFileProviderManager

type NSFileProviderManager struct {
	foundation.NSObject
}

A manager object that you use to communicate with the file provider from either your app or your File Provider extension.

Apple documentation: https://developer.apple.com/documentation/fileprovider/nsfileprovidermanager

func NSFileProviderManagerFromID

func NSFileProviderManagerFromID(id objc.ID) *NSFileProviderManager

func NSFileProviderManagerManagerForDomain

func NSFileProviderManagerManagerForDomain(domain *NSFileProviderDomain) *NSFileProviderManager

Returns a newly created file provider manager for the specified domain.

func (*NSFileProviderManager) ClaimKnownFoldersLocalizedReasonCompletionHandler

func (o *NSFileProviderManager) ClaimKnownFoldersLocalizedReasonCompletionHandler(knownFolders *NSFileProviderKnownFolderLocations, localizedReason *foundation.NSString, completionHandler func(unsafe.Pointer))

Asks the domain to sync the specified known folders.

func (*NSFileProviderManager) DisconnectWithReasonOptionsCompletionHandler

func (o *NSFileProviderManager) DisconnectWithReasonOptionsCompletionHandler(localizedReason *foundation.NSString, options NSFileProviderManagerDisconnectionOptions, completionHandler func(unsafe.Pointer))

Disconnects the domain from the extension.

func (*NSFileProviderManager) EnumeratorForMaterializedItems

func (o *NSFileProviderManager) EnumeratorForMaterializedItems() NSFileProviderEnumerator

Returns an enumerator for all the items the system currently stores on disk.

func (*NSFileProviderManager) EnumeratorForPendingItems

func (o *NSFileProviderManager) EnumeratorForPendingItems() NSFileProviderPendingSetEnumerator

Returns an enumerator for the set of pending items.

func (*NSFileProviderManager) EvictItemWithIdentifierCompletionHandler

func (o *NSFileProviderManager) EvictItemWithIdentifierCompletionHandler(itemIdentifier *foundation.NSString, completionHandler func(unsafe.Pointer))

Asks the system to remove an item from its cache.

func (*NSFileProviderManager) GetServiceWithNameItemIdentifierCompletionHandler

func (o *NSFileProviderManager) GetServiceWithNameItemIdentifierCompletionHandler(serviceName *foundation.NSString, itemIdentifier *foundation.NSString, completionHandler func(unsafe.Pointer, unsafe.Pointer))

Retrieve the service with the specified named for the specified item.

func (*NSFileProviderManager) GetUserVisibleURLForItemIdentifierCompletionHandler

func (o *NSFileProviderManager) GetUserVisibleURLForItemIdentifierCompletionHandler(itemIdentifier *foundation.NSString, completionHandler func(*foundation.NSURL, unsafe.Pointer))

Returns the user-visible URL for an item.

func (*NSFileProviderManager) GlobalProgressForKind

func (o *NSFileProviderManager) GlobalProgressForKind(kind *foundation.NSString) *foundation.NSProgress

Returns a progress object that tracks either the uploading or downloading of items from the File Provider extension’s remote storage.

func (*NSFileProviderManager) ListAvailableTestingOperationsWithError

func (o *NSFileProviderManager) ListAvailableTestingOperationsWithError() (*foundation.NSArray[NSFileProviderTestingOperation], error)

Lists all the operations that are ready for scheduling.

func (*NSFileProviderManager) ReconnectWithCompletionHandler

func (o *NSFileProviderManager) ReconnectWithCompletionHandler(completionHandler func(unsafe.Pointer))

Reconnects the domain with the extension.

func (*NSFileProviderManager) RegisterURLSessionTaskForItemWithIdentifierCompletionHandler

func (o *NSFileProviderManager) RegisterURLSessionTaskForItemWithIdentifierCompletionHandler(task *foundation.NSURLSessionTask, identifier *foundation.NSString, completion func(unsafe.Pointer))

Registers the URL session task responsible for the specified item.

func (*NSFileProviderManager) ReimportItemsBelowItemWithIdentifierCompletionHandler

func (o *NSFileProviderManager) ReimportItemsBelowItemWithIdentifierCompletionHandler(itemIdentifier *foundation.NSString, completionHandler func(unsafe.Pointer))

Tells the system to reimport the item and its content recursively.

func (*NSFileProviderManager) ReleaseKnownFoldersLocalizedReasonCompletionHandler

func (o *NSFileProviderManager) ReleaseKnownFoldersLocalizedReasonCompletionHandler(knownFolders NSFileProviderKnownFolders, localizedReason *foundation.NSString, completionHandler func(unsafe.Pointer))

Asks the system to stop replicating the specified known folders in the domain.

func (*NSFileProviderManager) RequestDiagnosticCollectionForItemWithIdentifierErrorReasonCompletionHandler

func (o *NSFileProviderManager) RequestDiagnosticCollectionForItemWithIdentifierErrorReasonCompletionHandler(itemIdentifier *foundation.NSString, errorReason unsafe.Pointer, completionHandler func(unsafe.Pointer))

Requests a diagnostics collection for use when working directly with Apple to improve sync behavior.

func (*NSFileProviderManager) RequestDownloadForItemWithIdentifierRequestedRangeCompletionHandler

func (o *NSFileProviderManager) RequestDownloadForItemWithIdentifierRequestedRangeCompletionHandler(itemIdentifier *foundation.NSString, rangeToMaterialize foundation.NSRange, completionHandler func(unsafe.Pointer))

Request that the system schedule a download for an item. The completion handler is called when the system acknowledges the download request, or with an error indicating why it didn't (e.g NSFileProviderErrorNoSuchItem.) The system will then call -fetchContentsForItemWithIdentifier at the earliest convenient time. Set rangeToMaterialize to NSMakeRange(offset, nbytes) to request a partial download. The system will then invoke -fetchPartialContentsForItemWithIdentifier instead of fetchContentsForItemWithIdentifier. For a full download, set rangeToMaterialize to NSMakeRange(NSNotFound, 0). -[NSFileProviderManager evictItemWithIdentifier:completionHandler:] must be called on a partially materialized file before requesting an extent to be downloaded from a later version of the file. This method cannot be used to download directories recursively. When invoked on a dataless directory, it will trigger an enumeration of the directory, causing a materialization of the directory one level down only. All the children of the directory will remain dataless after the enumeration.

func (*NSFileProviderManager) RunTestingOperationsError

Asks the system to schedule and execute the specified operations.

func (*NSFileProviderManager) SignalEnumeratorForContainerItemIdentifierCompletionHandler

func (o *NSFileProviderManager) SignalEnumeratorForContainerItemIdentifierCompletionHandler(containerItemIdentifier *foundation.NSString, completion func(unsafe.Pointer))

Alerts the system to changes in the specified folder’s content.

func (*NSFileProviderManager) SignalErrorResolvedCompletionHandler

func (o *NSFileProviderManager) SignalErrorResolvedCompletionHandler(error_ unsafe.Pointer, completionHandler func(unsafe.Pointer))

Indicates a resolved error.

func (*NSFileProviderManager) StateDirectoryURLWithError

func (o *NSFileProviderManager) StateDirectoryURLWithError() (*foundation.NSURL, error)

Returns a URL for a directory for storing state information for the domain.

func (*NSFileProviderManager) TemporaryDirectoryURLWithError

func (o *NSFileProviderManager) TemporaryDirectoryURLWithError() (*foundation.NSURL, error)

Returns the URL of a directory that the File Provider extension can use to temporarily store files before passing them to the system.

func (*NSFileProviderManager) WaitForChangesOnItemsBelowItemWithIdentifierCompletionHandler

func (o *NSFileProviderManager) WaitForChangesOnItemsBelowItemWithIdentifierCompletionHandler(itemIdentifier *foundation.NSString, completionHandler func(unsafe.Pointer))

Requests a notification after the system completes all the specified changes.

func (*NSFileProviderManager) WaitForStabilizationWithCompletionHandler

func (o *NSFileProviderManager) WaitForStabilizationWithCompletionHandler(completionHandler func(unsafe.Pointer))

Requests a notification after the domain stabilizes.

type NSFileProviderManagerDisconnectionOptions

type NSFileProviderManagerDisconnectionOptions uint64

Options for disconnecting a domain from the extension.

const (
	NSFileProviderManagerDisconnectionOptionsTemporary NSFileProviderManagerDisconnectionOptions = 1
)

func (NSFileProviderManagerDisconnectionOptions) String

type NSFileProviderMaterializationFlags

type NSFileProviderMaterializationFlags uint64

Flags that provides additional information about the provided content.

const (
	// A flag indicating that the system should consider the file fully materialized, even if it’s a sparse file.
	NSFileProviderMaterializationFlagsKnownSparseRanges NSFileProviderMaterializationFlags = 1
)

func (NSFileProviderMaterializationFlags) String

type NSFileProviderModifyItemOptions

type NSFileProviderModifyItemOptions uint64

Options for modifying items.

const (
	// An option that indicates the changes may already exist in your remote storage.
	NSFileProviderModifyItemMayAlreadyExist NSFileProviderModifyItemOptions = 1
	// An option to fail an upload in the event of a version conflict.
	NSFileProviderModifyItemFailOnConflict NSFileProviderModifyItemOptions = 2
	// An option to require the upload to complete before calling the completion handler.
	NSFileProviderModifyItemIsImmediateUploadRequestByPresentingApplication NSFileProviderModifyItemOptions = 4
)

func (NSFileProviderModifyItemOptions) String

type NSFileProviderPartialContentFetching

type NSFileProviderPartialContentFetching interface {
	FetchPartialContentsForItemWithIdentifierVersionRequestMinimalRangeAligningToOptionsCompletionHandler(itemIdentifier *foundation.NSString, requestedVersion *NSFileProviderItemVersion, request *NSFileProviderRequest, requestedRange foundation.NSRange, alignment uint, options NSFileProviderFetchContentsOptions, completionHandler objc.Block) *foundation.NSProgress
}

NSFileProviderPartialContentFetching wraps the ObjC protocol NSFileProviderPartialContentFetching.

type NSFileProviderPendingSetEnumerator

type NSFileProviderPendingSetEnumerator interface {
	NSFileProviderEnumerator
	DomainVersion() *NSFileProviderDomainVersion
	RefreshInterval() float64
	IsMaximumSizeReached() bool
}

NSFileProviderPendingSetEnumerator wraps the ObjC protocol NSFileProviderPendingSetEnumerator.

type NSFileProviderReplicatedExtension

type NSFileProviderReplicatedExtension interface {
	NSFileProviderEnumerating
	InitWithDomain(domain *NSFileProviderDomain) unsafe.Pointer
	Invalidate()
	ItemForIdentifierRequestCompletionHandler(identifier *foundation.NSString, request *NSFileProviderRequest, completionHandler objc.Block) *foundation.NSProgress
	FetchContentsForItemWithIdentifierVersionRequestCompletionHandler(itemIdentifier *foundation.NSString, requestedVersion *NSFileProviderItemVersion, request *NSFileProviderRequest, completionHandler objc.Block) *foundation.NSProgress
	CreateItemBasedOnTemplateFieldsContentsOptionsRequestCompletionHandler(itemTemplate NSFileProviderItem, fields NSFileProviderItemFields, url *foundation.NSURL, options NSFileProviderCreateItemOptions, request *NSFileProviderRequest, completionHandler objc.Block) *foundation.NSProgress
	ModifyItemBaseVersionChangedFieldsContentsOptionsRequestCompletionHandler(item NSFileProviderItem, version *NSFileProviderItemVersion, changedFields NSFileProviderItemFields, newContents *foundation.NSURL, options NSFileProviderModifyItemOptions, request *NSFileProviderRequest, completionHandler objc.Block) *foundation.NSProgress
	DeleteItemWithIdentifierBaseVersionOptionsRequestCompletionHandler(identifier *foundation.NSString, version *NSFileProviderItemVersion, options NSFileProviderDeleteItemOptions, request *NSFileProviderRequest, completionHandler func(unsafe.Pointer)) *foundation.NSProgress
}

NSFileProviderReplicatedExtension wraps the ObjC protocol NSFileProviderReplicatedExtension.

type NSFileProviderRequest

type NSFileProviderRequest struct {
	foundation.NSObject
}

An object that provides information about the application requesting data from the File Provider extension.

Apple documentation: https://developer.apple.com/documentation/fileprovider/nsfileproviderrequest

func NSFileProviderRequestFromID

func NSFileProviderRequestFromID(id objc.ID) *NSFileProviderRequest

func (*NSFileProviderRequest) DomainVersion

The version of the domain when the event that triggered the request was observed. If the extension doesn't implement the NSFileProviderDomainState protocol, this will be nil.

func (*NSFileProviderRequest) IsFileViewerRequest

func (o *NSFileProviderRequest) IsFileViewerRequest() bool

The request was made by Finder or one of its helpers. This is only valid for NSFileProviderRequest objects passed to these methods: - [NSFileProviderEnumerating enumeratorForContainerItemIdentifier:] - [NSFileProviderReplicatedExtension fetchContentsForItemWithIdentifier:] For sync up methods (createItem/modifyItem/deleteItem), the system does not know which actor made the modifications to the file, so it cannot supply this information.

func (*NSFileProviderRequest) IsSystemRequest

func (o *NSFileProviderRequest) IsSystemRequest() bool

The request was made by the sync system, e.g. to update a file to its latest version after a remote update was pushed. This is only valid for NSFileProviderRequest objects passed to these methods: - [NSFileProviderEnumerating enumeratorForContainerItemIdentifier:] - [NSFileProviderReplicatedExtension fetchContentsForItemWithIdentifier:] For sync up methods (createItem/modifyItem/deleteItem), the system does not know which actor made the modifications to the file, so it cannot supply this information.

func (*NSFileProviderRequest) RequestingExecutable

func (o *NSFileProviderRequest) RequestingExecutable() *foundation.NSURL

The URL of the requesting executable. This will always be nil unless both an MDM profile key is set, and the provider's application is installed by an MDM profile.

type NSFileProviderSearchEnumerationObserver

type NSFileProviderSearchEnumerationObserver interface {
	DidEnumerateSearchResults(searchResults *foundation.NSArray[NSFileProviderSearchResult])
	FinishEnumeratingUpToPage(nextPage *foundation.NSData)
	FinishEnumeratingWithError(error_ unsafe.Pointer)
	MaximumNumberOfResultsPerPage() int
}

NSFileProviderSearchEnumerationObserver wraps the ObjC protocol NSFileProviderSearchEnumerationObserver.

type NSFileProviderSearchEnumerator

type NSFileProviderSearchEnumerator interface {
	Invalidate()
	EnumerateSearchResultsForObserverStartingAtPage(observer NSFileProviderSearchEnumerationObserver, page *foundation.NSData)
}

NSFileProviderSearchEnumerator wraps the ObjC protocol NSFileProviderSearchEnumerator.

type NSFileProviderSearchResult

type NSFileProviderSearchResult interface {
	ItemIdentifier() *foundation.NSString
	Filename() *foundation.NSString
	CreationDate() *foundation.NSDate
	ContentModificationDate() *foundation.NSDate
	LastUsedDate() *foundation.NSDate
	ContentType() *uniformtypeidentifiers.UTType
	DocumentSize() *foundation.NSNumber
}

NSFileProviderSearchResult wraps the ObjC protocol NSFileProviderSearchResult.

type NSFileProviderSearching

type NSFileProviderSearching interface {
	SearchEnumeratorForStringSearchRequest(request *NSFileProviderStringSearchRequest) NSFileProviderSearchEnumerator
}

NSFileProviderSearching wraps the ObjC protocol NSFileProviderSearching.

type NSFileProviderServiceSource

type NSFileProviderServiceSource interface {
	MakeListenerEndpointAndReturnError() (*foundation.NSXPCListenerEndpoint, error)
	ServiceName() *foundation.NSString
}

NSFileProviderServiceSource wraps the ObjC protocol NSFileProviderServiceSource.

type NSFileProviderServicing

type NSFileProviderServicing interface {
	SupportedServiceSourcesForItemIdentifierCompletionHandler(itemIdentifier *foundation.NSString, completionHandler func(*foundation.NSArray[NSFileProviderServiceSource], unsafe.Pointer)) *foundation.NSProgress
}

NSFileProviderServicing wraps the ObjC protocol NSFileProviderServicing.

type NSFileProviderStringSearchRequest

type NSFileProviderStringSearchRequest struct {
	foundation.NSObject
}

A type that contains details of a string-based search request.

Apple documentation: https://developer.apple.com/documentation/fileprovider/nsfileproviderstringsearchrequest

func NSFileProviderStringSearchRequestFromID

func NSFileProviderStringSearchRequestFromID(id objc.ID) *NSFileProviderStringSearchRequest

func (*NSFileProviderStringSearchRequest) DesiredNumberOfResults

func (o *NSFileProviderStringSearchRequest) DesiredNumberOfResults() int

How many results the system is requesting. This is a hint to the extension, to help avoid unnecessary work. The extension may return more results than this.

func (*NSFileProviderStringSearchRequest) Query

A plaintext string, representing the query the user entered into the system search UI.

type NSFileProviderTestingChildrenEnumeration

type NSFileProviderTestingChildrenEnumeration interface {
	NSFileProviderTestingOperation
	Side() NSFileProviderTestingOperationSide
	ItemIdentifier() *foundation.NSString
}

NSFileProviderTestingChildrenEnumeration wraps the ObjC protocol NSFileProviderTestingChildrenEnumeration.

type NSFileProviderTestingCollisionResolution

type NSFileProviderTestingCollisionResolution interface {
	NSFileProviderTestingOperation
	Side() NSFileProviderTestingOperationSide
	RenamedItem() NSFileProviderItem
}

NSFileProviderTestingCollisionResolution wraps the ObjC protocol NSFileProviderTestingCollisionResolution.

type NSFileProviderTestingContentFetch

type NSFileProviderTestingContentFetch interface {
	NSFileProviderTestingOperation
	Side() NSFileProviderTestingOperationSide
	ItemIdentifier() *foundation.NSString
}

NSFileProviderTestingContentFetch wraps the ObjC protocol NSFileProviderTestingContentFetch.

type NSFileProviderTestingCreation

type NSFileProviderTestingCreation interface {
	NSFileProviderTestingOperation
	TargetSide() NSFileProviderTestingOperationSide
	SourceItem() NSFileProviderItem
	DomainVersion() *NSFileProviderDomainVersion
}

NSFileProviderTestingCreation wraps the ObjC protocol NSFileProviderTestingCreation.

type NSFileProviderTestingDeletion

type NSFileProviderTestingDeletion interface {
	NSFileProviderTestingOperation
	TargetSide() NSFileProviderTestingOperationSide
	SourceItemIdentifier() *foundation.NSString
	TargetItemIdentifier() *foundation.NSString
	TargetItemBaseVersion() *NSFileProviderItemVersion
	DomainVersion() *NSFileProviderDomainVersion
}

NSFileProviderTestingDeletion wraps the ObjC protocol NSFileProviderTestingDeletion.

type NSFileProviderTestingIngestion

type NSFileProviderTestingIngestion interface {
	NSFileProviderTestingOperation
	Side() NSFileProviderTestingOperationSide
	ItemIdentifier() *foundation.NSString
	Item() NSFileProviderItem
}

NSFileProviderTestingIngestion wraps the ObjC protocol NSFileProviderTestingIngestion.

type NSFileProviderTestingLookup

type NSFileProviderTestingLookup interface {
	NSFileProviderTestingOperation
	Side() NSFileProviderTestingOperationSide
	ItemIdentifier() *foundation.NSString
}

NSFileProviderTestingLookup wraps the ObjC protocol NSFileProviderTestingLookup.

type NSFileProviderTestingModification

type NSFileProviderTestingModification interface {
	NSFileProviderTestingOperation
	TargetSide() NSFileProviderTestingOperationSide
	SourceItem() NSFileProviderItem
	TargetItemIdentifier() *foundation.NSString
	TargetItemBaseVersion() *NSFileProviderItemVersion
	ChangedFields() NSFileProviderItemFields
	DomainVersion() *NSFileProviderDomainVersion
}

NSFileProviderTestingModification wraps the ObjC protocol NSFileProviderTestingModification.

type NSFileProviderTestingOperation

type NSFileProviderTestingOperation interface {
	AsIngestion() NSFileProviderTestingIngestion
	AsLookup() NSFileProviderTestingLookup
	AsCreation() NSFileProviderTestingCreation
	AsModification() NSFileProviderTestingModification
	AsDeletion() NSFileProviderTestingDeletion
	AsContentFetch() NSFileProviderTestingContentFetch
	AsChildrenEnumeration() NSFileProviderTestingChildrenEnumeration
	AsCollisionResolution() NSFileProviderTestingCollisionResolution
	Type() NSFileProviderTestingOperationType
}

NSFileProviderTestingOperation wraps the ObjC protocol NSFileProviderTestingOperation.

type NSFileProviderTestingOperationSide

type NSFileProviderTestingOperationSide uint64

The location where the operation takes place.

const (
	// The File Provider extension’s local storage.
	NSFileProviderTestingOperationSideDisk NSFileProviderTestingOperationSide = 0
	// The File Provider extension’s remote storage.
	NSFileProviderTestingOperationSideFileProvider NSFileProviderTestingOperationSide = 1
)

func (NSFileProviderTestingOperationSide) String

type NSFileProviderTestingOperationType

type NSFileProviderTestingOperationType int64

The action that an operation performs.

const (
	// Alerts the system to changes to either the local or remote storage.
	NSFileProviderTestingOperationTypeIngestion NSFileProviderTestingOperationType = 0
	// Looks up an item.
	NSFileProviderTestingOperationTypeLookup NSFileProviderTestingOperationType = 1
	// Propagates the creation of a source item to the target location.
	NSFileProviderTestingOperationTypeCreation NSFileProviderTestingOperationType = 2
	// Propagates a change from the source item to the target location.
	NSFileProviderTestingOperationTypeModification NSFileProviderTestingOperationType = 3
	// Propagates the deletion of the source item from the target location.
	NSFileProviderTestingOperationTypeDeletion NSFileProviderTestingOperationType = 4
	// Fetches an item’s content.
	NSFileProviderTestingOperationTypeContentFetch NSFileProviderTestingOperationType = 5
	// Lists an item’s content.
	NSFileProviderTestingOperationTypeChildrenEnumeration NSFileProviderTestingOperationType = 6
	// Resolves a collision by renaming the new item.
	NSFileProviderTestingOperationTypeCollisionResolution NSFileProviderTestingOperationType = 7
)

func (NSFileProviderTestingOperationType) String

type NSFileProviderThumbnailing

type NSFileProviderThumbnailing interface {
	FetchThumbnailsForItemIdentifiersRequestedSizePerThumbnailCompletionHandlerCompletionHandler(itemIdentifiers *foundation.NSArray[*foundation.NSString], size corefoundation.CGSize, perThumbnailCompletionHandler func(*foundation.NSString, *foundation.NSData, unsafe.Pointer), completionHandler func(unsafe.Pointer)) *foundation.NSProgress
}

NSFileProviderThumbnailing wraps the ObjC protocol NSFileProviderThumbnailing.

type NSFileProviderTypeAndCreator

type NSFileProviderTypeAndCreator struct {
	Type    uint
	Creator uint
}

A structure that contains the file type and file creator codes for an item.

type NSFileProviderUserInteractionSuppressing

type NSFileProviderUserInteractionSuppressing interface {
	SetInteractionSuppressedForIdentifier(suppression bool, suppressionIdentifier *foundation.NSString)
	IsInteractionSuppressedForIdentifier(suppressionIdentifier *foundation.NSString) bool
}

NSFileProviderUserInteractionSuppressing wraps the ObjC protocol NSFileProviderUserInteractionSuppressing.

type NSFileProviderVolumeUnsupportedReason

type NSFileProviderVolumeUnsupportedReason uint64

Constants that describe why an external volume might not be eligible for storing a domain.

const (
	NSFileProviderVolumeUnsupportedReasonNone         NSFileProviderVolumeUnsupportedReason = 0
	NSFileProviderVolumeUnsupportedReasonUnknown      NSFileProviderVolumeUnsupportedReason = 1
	NSFileProviderVolumeUnsupportedReasonNonAPFS      NSFileProviderVolumeUnsupportedReason = 2
	NSFileProviderVolumeUnsupportedReasonNonEncrypted NSFileProviderVolumeUnsupportedReason = 4
	NSFileProviderVolumeUnsupportedReasonReadOnly     NSFileProviderVolumeUnsupportedReason = 8
	NSFileProviderVolumeUnsupportedReasonNetwork      NSFileProviderVolumeUnsupportedReason = 16
	NSFileProviderVolumeUnsupportedReasonQuarantined  NSFileProviderVolumeUnsupportedReason = 32
)

func (NSFileProviderVolumeUnsupportedReason) String

type NXMouseButton

type NXMouseButton int64
const (
	NX_OneButton   NXMouseButton = 0
	NX_LeftButton  NXMouseButton = 1
	NX_RightButton NXMouseButton = 2
)

func (NXMouseButton) String

func (e NXMouseButton) String() string

type Os_clockid_t

type Os_clockid_t int64
const (
	OS_CLOCK_MACH_ABSOLUTE_TIME Os_clockid_t = 32
)

func (Os_clockid_t) String

func (e Os_clockid_t) String() string

type Ptrauth_key

type Ptrauth_key int64
const (
	Ptrauth_key_none                     Ptrauth_key = -1
	Ptrauth_key_asia                     Ptrauth_key = 0
	Ptrauth_key_asib                     Ptrauth_key = 1
	Ptrauth_key_asda                     Ptrauth_key = 2
	Ptrauth_key_asdb                     Ptrauth_key = 3
	Ptrauth_key_process_independent_code Ptrauth_key = 0
	Ptrauth_key_process_dependent_code   Ptrauth_key = 1
	Ptrauth_key_process_independent_data Ptrauth_key = 2
	Ptrauth_key_process_dependent_data   Ptrauth_key = 3
	Ptrauth_key_return_address           Ptrauth_key = 1
	Ptrauth_key_frame_pointer            Ptrauth_key = 3
	Ptrauth_key_function_pointer         Ptrauth_key = 0
	Ptrauth_key_block_function           Ptrauth_key = 0
	Ptrauth_key_cxx_vtable_pointer       Ptrauth_key = 2
	Ptrauth_key_method_list_pointer      Ptrauth_key = 2
	Ptrauth_key_objc_isa_pointer         Ptrauth_key = 2
	Ptrauth_key_objc_super_pointer       Ptrauth_key = 2
	Ptrauth_key_objc_sel_pointer         Ptrauth_key = 3
	Ptrauth_key_objc_class_ro_pointer    Ptrauth_key = 2
	Ptrauth_key_block_descriptor_pointer Ptrauth_key = 2
	Ptrauth_key_init_fini_pointer        Ptrauth_key = 0
)

func (Ptrauth_key) String

func (e Ptrauth_key) String() string

type Qos_class_t

type Qos_class_t uint32
const (
	QOS_CLASS_USER_INTERACTIVE Qos_class_t = 33
	QOS_CLASS_USER_INITIATED   Qos_class_t = 25
	QOS_CLASS_DEFAULT          Qos_class_t = 21
	QOS_CLASS_UTILITY          Qos_class_t = 17
	QOS_CLASS_BACKGROUND       Qos_class_t = 9
	QOS_CLASS_UNSPECIFIED      Qos_class_t = 0
)

func (Qos_class_t) String

func (e Qos_class_t) String() string

type Virtual_memory_guard_exception_code_t

type Virtual_memory_guard_exception_code_t int64
const (
	KGUARD_EXC_DEALLOC_GAP                   Virtual_memory_guard_exception_code_t = 1
	KGUARD_EXC_RECLAIM_COPYIO_FAILURE        Virtual_memory_guard_exception_code_t = 2
	KGUARD_EXC_RECLAIM_INDEX_FAILURE         Virtual_memory_guard_exception_code_t = 4
	KGUARD_EXC_RECLAIM_DEALLOCATE_FAILURE    Virtual_memory_guard_exception_code_t = 8
	KGUARD_EXC_RECLAIM_ACCOUNTING_FAILURE    Virtual_memory_guard_exception_code_t = 9
	KGUARD_EXC_SEC_IOPL_ON_EXEC_PAGE         Virtual_memory_guard_exception_code_t = 10
	KGUARD_EXC_SEC_EXEC_ON_IOPL_PAGE         Virtual_memory_guard_exception_code_t = 11
	KGUARD_EXC_SEC_UPL_WRITE_ON_EXEC_REGION  Virtual_memory_guard_exception_code_t = 12
	KGUARD_EXC_LARGE_ALLOCATION_TELEMETRY    Virtual_memory_guard_exception_code_t = 13
	KGUARD_EXC_SEC_ACCESS_FAULT              Virtual_memory_guard_exception_code_t = 98
	KGUARD_EXC_SEC_ASYNC_ACCESS_FAULT        Virtual_memory_guard_exception_code_t = 99
	KGUARD_EXC_SEC_COPY_DENIED               Virtual_memory_guard_exception_code_t = 100
	KGUARD_EXC_SEC_SHARING_DENIED            Virtual_memory_guard_exception_code_t = 101
	KGUARD_EXC_MTE_SYNC_FAULT                Virtual_memory_guard_exception_code_t = 200
	KGUARD_EXC_MTE_ASYNC_USER_FAULT          Virtual_memory_guard_exception_code_t = 201
	KGUARD_EXC_MTE_ASYNC_KERN_FAULT          Virtual_memory_guard_exception_code_t = 202
	KGUARD_EXC_GUARD_OBJECT_ASYNC_USER_FAULT Virtual_memory_guard_exception_code_t = 203
	KGUARD_EXC_GUARD_OBJECT_ASYNC_KERN_FAULT Virtual_memory_guard_exception_code_t = 204
)

func (Virtual_memory_guard_exception_code_t) String

type Xpc_listener_create_flags_t

type Xpc_listener_create_flags_t int64
const (
	XPC_LISTENER_CREATE_NONE             Xpc_listener_create_flags_t = 0
	XPC_LISTENER_CREATE_INACTIVE         Xpc_listener_create_flags_t = 1
	XPC_LISTENER_CREATE_FORCE_MACH       Xpc_listener_create_flags_t = 2
	XPC_LISTENER_CREATE_FORCE_XPCSERVICE Xpc_listener_create_flags_t = 4
)

func (Xpc_listener_create_flags_t) String

type Xpc_session_create_flags_t

type Xpc_session_create_flags_t int64
const (
	XPC_SESSION_CREATE_NONE            Xpc_session_create_flags_t = 0
	XPC_SESSION_CREATE_INACTIVE        Xpc_session_create_flags_t = 1
	XPC_SESSION_CREATE_MACH_PRIVILEGED Xpc_session_create_flags_t = 2
)

func (Xpc_session_create_flags_t) String

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL