cloudkit

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Store structured app and user data in iCloud containers that all users of your app can share.

Apple Documentation

Index

Constants

This section is empty.

Variables

View Source
var AcceptSharesOperationClass = _AcceptSharesOperationClass{objc.GetClass("CKAcceptSharesOperation")}

The class instance for the AcceptSharesOperation class.

View Source
var AssetClass = _AssetClass{objc.GetClass("CKAsset")}

The class instance for the Asset class.

View Source
var ContainerClass = _ContainerClass{objc.GetClass("CKContainer")}

The class instance for the Container class.

View Source
var DatabaseClass = _DatabaseClass{objc.GetClass("CKDatabase")}

The class instance for the Database class.

View Source
var DatabaseNotificationClass = _DatabaseNotificationClass{objc.GetClass("CKDatabaseNotification")}

The class instance for the DatabaseNotification class.

View Source
var DatabaseOperationClass = _DatabaseOperationClass{objc.GetClass("CKDatabaseOperation")}

The class instance for the DatabaseOperation class.

View Source
var DatabaseSubscriptionClass = _DatabaseSubscriptionClass{objc.GetClass("CKDatabaseSubscription")}

The class instance for the DatabaseSubscription class.

View Source
var DiscoverAllUserIdentitiesOperationClass = _DiscoverAllUserIdentitiesOperationClass{objc.GetClass("CKDiscoverAllUserIdentitiesOperation")}

The class instance for the DiscoverAllUserIdentitiesOperation class.

View Source
var DiscoverUserIdentitiesOperationClass = _DiscoverUserIdentitiesOperationClass{objc.GetClass("CKDiscoverUserIdentitiesOperation")}

The class instance for the DiscoverUserIdentitiesOperation class.

View Source
var FetchDatabaseChangesOperationClass = _FetchDatabaseChangesOperationClass{objc.GetClass("CKFetchDatabaseChangesOperation")}

The class instance for the FetchDatabaseChangesOperation class.

View Source
var FetchNotificationChangesOperationClass = _FetchNotificationChangesOperationClass{objc.GetClass("CKFetchNotificationChangesOperation")}

The class instance for the FetchNotificationChangesOperation class.

View Source
var FetchRecordChangesOperationClass = _FetchRecordChangesOperationClass{objc.GetClass("CKFetchRecordChangesOperation")}

The class instance for the FetchRecordChangesOperation class.

View Source
var FetchRecordZoneChangesConfigurationClass = _FetchRecordZoneChangesConfigurationClass{objc.GetClass("CKFetchRecordZoneChangesConfiguration")}

The class instance for the FetchRecordZoneChangesConfiguration class.

View Source
var FetchRecordZoneChangesOperationClass = _FetchRecordZoneChangesOperationClass{objc.GetClass("CKFetchRecordZoneChangesOperation")}

The class instance for the FetchRecordZoneChangesOperation class.

View Source
var FetchRecordZoneChangesOptionsClass = _FetchRecordZoneChangesOptionsClass{objc.GetClass("CKFetchRecordZoneChangesOptions")}

The class instance for the FetchRecordZoneChangesOptions class.

View Source
var FetchRecordZonesOperationClass = _FetchRecordZonesOperationClass{objc.GetClass("CKFetchRecordZonesOperation")}

The class instance for the FetchRecordZonesOperation class.

View Source
var FetchRecordsOperationClass = _FetchRecordsOperationClass{objc.GetClass("CKFetchRecordsOperation")}

The class instance for the FetchRecordsOperation class.

View Source
var FetchShareMetadataOperationClass = _FetchShareMetadataOperationClass{objc.GetClass("CKFetchShareMetadataOperation")}

The class instance for the FetchShareMetadataOperation class.

View Source
var FetchShareParticipantsOperationClass = _FetchShareParticipantsOperationClass{objc.GetClass("CKFetchShareParticipantsOperation")}

The class instance for the FetchShareParticipantsOperation class.

View Source
var FetchSubscriptionsOperationClass = _FetchSubscriptionsOperationClass{objc.GetClass("CKFetchSubscriptionsOperation")}

The class instance for the FetchSubscriptionsOperation class.

View Source
var FetchWebAuthTokenOperationClass = _FetchWebAuthTokenOperationClass{objc.GetClass("CKFetchWebAuthTokenOperation")}

The class instance for the FetchWebAuthTokenOperation class.

View Source
var LocationSortDescriptorClass = _LocationSortDescriptorClass{objc.GetClass("CKLocationSortDescriptor")}

The class instance for the LocationSortDescriptor class.

View Source
var MarkNotificationsReadOperationClass = _MarkNotificationsReadOperationClass{objc.GetClass("CKMarkNotificationsReadOperation")}

The class instance for the MarkNotificationsReadOperation class.

View Source
var ModifyBadgeOperationClass = _ModifyBadgeOperationClass{objc.GetClass("CKModifyBadgeOperation")}

The class instance for the ModifyBadgeOperation class.

View Source
var ModifyRecordZonesOperationClass = _ModifyRecordZonesOperationClass{objc.GetClass("CKModifyRecordZonesOperation")}

The class instance for the ModifyRecordZonesOperation class.

View Source
var ModifyRecordsOperationClass = _ModifyRecordsOperationClass{objc.GetClass("CKModifyRecordsOperation")}

The class instance for the ModifyRecordsOperation class.

View Source
var ModifySubscriptionsOperationClass = _ModifySubscriptionsOperationClass{objc.GetClass("CKModifySubscriptionsOperation")}

The class instance for the ModifySubscriptionsOperation class.

View Source
var NotificationClass = _NotificationClass{objc.GetClass("CKNotification")}

The class instance for the Notification class.

View Source
var NotificationIDClass = _NotificationIDClass{objc.GetClass("CKNotificationID")}

The class instance for the NotificationID class.

View Source
var NotificationInfoClass = _NotificationInfoClass{objc.GetClass("CKNotificationInfo")}

The class instance for the NotificationInfo class.

View Source
var OperationClass = _OperationClass{objc.GetClass("CKOperation")}

The class instance for the Operation class.

View Source
var OperationConfigurationClass = _OperationConfigurationClass{objc.GetClass("CKOperationConfiguration")}

The class instance for the OperationConfiguration class.

View Source
var OperationGroupClass = _OperationGroupClass{objc.GetClass("CKOperationGroup")}

The class instance for the OperationGroup class.

View Source
var QueryClass = _QueryClass{objc.GetClass("CKQuery")}

The class instance for the Query class.

View Source
var QueryCursorClass = _QueryCursorClass{objc.GetClass("CKQueryCursor")}

The class instance for the QueryCursor class.

View Source
var QueryNotificationClass = _QueryNotificationClass{objc.GetClass("CKQueryNotification")}

The class instance for the QueryNotification class.

View Source
var QueryOperationClass = _QueryOperationClass{objc.GetClass("CKQueryOperation")}

The class instance for the QueryOperation class.

View Source
var QuerySubscriptionClass = _QuerySubscriptionClass{objc.GetClass("CKQuerySubscription")}

The class instance for the QuerySubscription class.

View Source
var RecordClass = _RecordClass{objc.GetClass("CKRecord")}

The class instance for the Record class.

View Source
var RecordIDClass = _RecordIDClass{objc.GetClass("CKRecordID")}

The class instance for the RecordID class.

View Source
var RecordZoneClass = _RecordZoneClass{objc.GetClass("CKRecordZone")}

The class instance for the RecordZone class.

View Source
var RecordZoneIDClass = _RecordZoneIDClass{objc.GetClass("CKRecordZoneID")}

The class instance for the RecordZoneID class.

View Source
var RecordZoneNotificationClass = _RecordZoneNotificationClass{objc.GetClass("CKRecordZoneNotification")}

The class instance for the RecordZoneNotification class.

View Source
var RecordZoneSubscriptionClass = _RecordZoneSubscriptionClass{objc.GetClass("CKRecordZoneSubscription")}

The class instance for the RecordZoneSubscription class.

View Source
var ReferenceClass = _ReferenceClass{objc.GetClass("CKReference")}

The class instance for the Reference class.

View Source
var ServerChangeTokenClass = _ServerChangeTokenClass{objc.GetClass("CKServerChangeToken")}

The class instance for the ServerChangeToken class.

View Source
var ShareClass = _ShareClass{objc.GetClass("CKShare")}

The class instance for the Share class.

View Source
var ShareMetadataClass = _ShareMetadataClass{objc.GetClass("CKShareMetadata")}

The class instance for the ShareMetadata class.

View Source
var ShareParticipantClass = _ShareParticipantClass{objc.GetClass("CKShareParticipant")}

The class instance for the ShareParticipant class.

View Source
var SubscriptionClass = _SubscriptionClass{objc.GetClass("CKSubscription")}

The class instance for the Subscription class.

View Source
var UserIdentityClass = _UserIdentityClass{objc.GetClass("CKUserIdentity")}

The class instance for the UserIdentity class.

View Source
var UserIdentityLookupInfoClass = _UserIdentityLookupInfoClass{objc.GetClass("CKUserIdentityLookupInfo")}

The class instance for the UserIdentityLookupInfo class.

Functions

This section is empty.

Types

type AcceptSharesOperation

type AcceptSharesOperation struct {
	Operation
}

An operation that confirms a user’s participation in a share. Full Topic

func AcceptSharesOperationFrom

func AcceptSharesOperationFrom(ptr unsafe.Pointer) AcceptSharesOperation

func NewAcceptSharesOperation

func NewAcceptSharesOperation() AcceptSharesOperation

func NewAcceptSharesOperationWithShareMetadatas

func NewAcceptSharesOperationWithShareMetadatas(shareMetadatas []IShareMetadata) AcceptSharesOperation

Creates an operation for accepting the specified shares. Full Topic

func (AcceptSharesOperation) AcceptSharesCompletionBlock

func (a_ AcceptSharesOperation) AcceptSharesCompletionBlock() func(operationError foundation.Error)

The block to execute when the operation finishes. Full Topic

func (AcceptSharesOperation) Init

func (AcceptSharesOperation) InitWithShareMetadatas

func (a_ AcceptSharesOperation) InitWithShareMetadatas(shareMetadatas []IShareMetadata) AcceptSharesOperation

func (AcceptSharesOperation) PerShareCompletionBlock

func (a_ AcceptSharesOperation) PerShareCompletionBlock() func(shareMetadata ShareMetadata, acceptedShare Share, error foundation.Error)

The block to execute as CloudKit processes individual shares. Full Topic

func (AcceptSharesOperation) SetAcceptSharesCompletionBlock

func (a_ AcceptSharesOperation) SetAcceptSharesCompletionBlock(value func(operationError foundation.Error))

The block to execute when the operation finishes. Full Topic

func (AcceptSharesOperation) SetPerShareCompletionBlock

func (a_ AcceptSharesOperation) SetPerShareCompletionBlock(value func(shareMetadata ShareMetadata, acceptedShare Share, error foundation.Error))

The block to execute as CloudKit processes individual shares. Full Topic

func (AcceptSharesOperation) SetShareMetadatas

func (a_ AcceptSharesOperation) SetShareMetadatas(value []IShareMetadata)

The share metadatas to process. Full Topic

func (AcceptSharesOperation) ShareMetadatas

func (a_ AcceptSharesOperation) ShareMetadatas() []ShareMetadata

The share metadatas to process. Full Topic

type AccountStatus

type AccountStatus int

Constants that indicate the availability of the user’s iCloud account. Full Topic

const (
	AccountStatusAvailable              AccountStatus = 1
	AccountStatusCouldNotDetermine      AccountStatus = 0
	AccountStatusNoAccount              AccountStatus = 3
	AccountStatusRestricted             AccountStatus = 2
	AccountStatusTemporarilyUnavailable AccountStatus = 4
)

type ApplicationPermissionBlock

type ApplicationPermissionBlock = func(applicationPermissionStatus ApplicationPermissionStatus, error foundation.Error)

A block that processes the outcome of a permissions request. Full Topic

type ApplicationPermissionStatus

type ApplicationPermissionStatus int

Constants that represent the status of a permission. Full Topic

const (
	ApplicationPermissionStatusCouldNotComplete ApplicationPermissionStatus = 1
	ApplicationPermissionStatusDenied           ApplicationPermissionStatus = 2
	ApplicationPermissionStatusGranted          ApplicationPermissionStatus = 3
	ApplicationPermissionStatusInitialState     ApplicationPermissionStatus = 0
)

type ApplicationPermissions

type ApplicationPermissions uint

Constants that represent the permissions that a user grants. Full Topic

const (
	ApplicationPermissionUserDiscoverability ApplicationPermissions = 1
)

type Asset

type Asset struct {
	objc.Object
}

An external file that belongs to a record. Full Topic

func AssetFrom

func AssetFrom(ptr unsafe.Pointer) Asset

func NewAsset

func NewAsset() Asset

func NewAssetWithFileURL

func NewAssetWithFileURL(fileURL foundation.IURL) Asset

Creates an asset that references a file. Full Topic

func (Asset) FileURL

func (a_ Asset) FileURL() foundation.URL

The URL for accessing the asset. Full Topic

func (Asset) Init

func (a_ Asset) Init() Asset

func (Asset) InitWithFileURL

func (a_ Asset) InitWithFileURL(fileURL foundation.IURL) Asset

type Container

type Container struct {
	objc.Object
}

A conduit to your app’s databases. Full Topic

func ContainerFrom

func ContainerFrom(ptr unsafe.Pointer) Container

func Container_ContainerWithIdentifier

func Container_ContainerWithIdentifier(containerIdentifier string) Container

Creates a container for the specified identifier. Full Topic

func Container_DefaultContainer

func Container_DefaultContainer() Container

Returns the app’s default container. Full Topic

func NewContainer

func NewContainer() Container

func (Container) AcceptShareMetadataCompletionHandler

func (c_ Container) AcceptShareMetadataCompletionHandler(metadata IShareMetadata, completionHandler func(acceptedShare Share, error foundation.Error))

Accepts the specified share metadata. Full Topic

func (Container) AccountStatusWithCompletionHandler

func (c_ Container) AccountStatusWithCompletionHandler(completionHandler func(accountStatus AccountStatus, error foundation.Error))

Determines whether the system can access the user’s iCloud account. Full Topic

func (Container) AddOperation

func (c_ Container) AddOperation(operation IOperation)

Adds an operation to the container’s queue. Full Topic

func (Container) ContainerIdentifier

func (c_ Container) ContainerIdentifier() string

The container’s unique identifier. Full Topic

func (Container) DatabaseWithDatabaseScope

func (c_ Container) DatabaseWithDatabaseScope(databaseScope DatabaseScope) Database

Returns the database with the specified scope. Full Topic

func (Container) FetchAllLongLivedOperationIDsWithCompletionHandler

func (c_ Container) FetchAllLongLivedOperationIDsWithCompletionHandler(completionHandler func(outstandingOperationIDs []OperationID, error foundation.Error))

Fetches the IDs of any long-lived operations that are running. Full Topic

func (Container) FetchLongLivedOperationWithIDCompletionHandler

func (c_ Container) FetchLongLivedOperationWithIDCompletionHandler(operationID OperationID, completionHandler func(outstandingOperation Operation, error foundation.Error))

Fetches the long-lived operation for the specified operation ID. Full Topic

func (Container) FetchShareMetadataWithURLCompletionHandler

func (c_ Container) FetchShareMetadataWithURLCompletionHandler(url foundation.IURL, completionHandler func(metadata ShareMetadata, error foundation.Error))

Fetches the share metadata for the specified share URL. Full Topic

func (Container) FetchShareParticipantWithEmailAddressCompletionHandler

func (c_ Container) FetchShareParticipantWithEmailAddressCompletionHandler(emailAddress string, completionHandler func(shareParticipant ShareParticipant, error foundation.Error))

Fetches the share participant with the specified email address. Full Topic

func (Container) FetchShareParticipantWithPhoneNumberCompletionHandler

func (c_ Container) FetchShareParticipantWithPhoneNumberCompletionHandler(phoneNumber string, completionHandler func(shareParticipant ShareParticipant, error foundation.Error))

Fetches the share participant with the specified phone number. Full Topic

func (Container) FetchShareParticipantWithUserRecordIDCompletionHandler

func (c_ Container) FetchShareParticipantWithUserRecordIDCompletionHandler(userRecordID IRecordID, completionHandler func(shareParticipant ShareParticipant, error foundation.Error))

Fetches the share participant with the specified user record ID. Full Topic

func (Container) FetchUserRecordIDWithCompletionHandler

func (c_ Container) FetchUserRecordIDWithCompletionHandler(completionHandler func(recordID RecordID, error foundation.Error))

Fetches the user record ID of the current user. Full Topic

func (Container) Init

func (c_ Container) Init() Container

func (Container) PrivateCloudDatabase

func (c_ Container) PrivateCloudDatabase() Database

The user’s private database. Full Topic

func (Container) PublicCloudDatabase

func (c_ Container) PublicCloudDatabase() Database

The app’s public database. Full Topic

func (Container) SharedCloudDatabase

func (c_ Container) SharedCloudDatabase() Database

The database that contains shared data. Full Topic

type Database

type Database struct {
	objc.Object
}

An object that represents a collection of record zones and subscriptions. Full Topic

func DatabaseFrom

func DatabaseFrom(ptr unsafe.Pointer) Database

func NewDatabase

func NewDatabase() Database

func (Database) AddOperation

func (d_ Database) AddOperation(operation IDatabaseOperation)

Executes the specified operation in the current database. Full Topic

func (Database) DatabaseScope

func (d_ Database) DatabaseScope() DatabaseScope

The type of database. Full Topic

func (Database) DeleteRecordWithIDCompletionHandler

func (d_ Database) DeleteRecordWithIDCompletionHandler(recordID IRecordID, completionHandler func(recordID RecordID, error foundation.Error))

Deletes a specific record. Full Topic

func (Database) DeleteRecordZoneWithIDCompletionHandler

func (d_ Database) DeleteRecordZoneWithIDCompletionHandler(zoneID IRecordZoneID, completionHandler func(zoneID RecordZoneID, error foundation.Error))

Deletes a specific record zone. Full Topic

func (Database) DeleteSubscriptionWithIDCompletionHandler

func (d_ Database) DeleteSubscriptionWithIDCompletionHandler(subscriptionID SubscriptionID, completionHandler func(subscriptionID SubscriptionID, error foundation.Error))

Deletes a specific subscription and delivers the deleted subscription’s identifier to a completion handler. Full Topic

func (Database) FetchAllRecordZonesWithCompletionHandler

func (d_ Database) FetchAllRecordZonesWithCompletionHandler(completionHandler func(zones []RecordZone, error foundation.Error))

Fetches all record zones from the current database. Full Topic

func (Database) FetchAllSubscriptionsWithCompletionHandler

func (d_ Database) FetchAllSubscriptionsWithCompletionHandler(completionHandler func(subscriptions []Subscription, error foundation.Error))

Fetches all subscriptions from the current database. Full Topic

func (Database) FetchRecordWithIDCompletionHandler

func (d_ Database) FetchRecordWithIDCompletionHandler(recordID IRecordID, completionHandler func(record Record, error foundation.Error))

Fetches a specific record. Full Topic

func (Database) FetchRecordZoneWithIDCompletionHandler

func (d_ Database) FetchRecordZoneWithIDCompletionHandler(zoneID IRecordZoneID, completionHandler func(zone RecordZone, error foundation.Error))

Fetches a specific record zone. Full Topic

func (Database) FetchSubscriptionWithIDCompletionHandler

func (d_ Database) FetchSubscriptionWithIDCompletionHandler(subscriptionID SubscriptionID, completionHandler func(subscription Subscription, error foundation.Error))

Fetches a specific subscription and delivers it to a completion handler. Full Topic

func (Database) Init

func (d_ Database) Init() Database

func (Database) PerformQueryInZoneWithIDCompletionHandler

func (d_ Database) PerformQueryInZoneWithIDCompletionHandler(query IQuery, zoneID IRecordZoneID, completionHandler func(results []Record, error foundation.Error))

Searches for records matching a predicate in the specified record zone. Full Topic

func (Database) SaveRecordCompletionHandler

func (d_ Database) SaveRecordCompletionHandler(record IRecord, completionHandler func(record Record, error foundation.Error))

Saves a specific record. Full Topic

func (Database) SaveRecordZoneCompletionHandler

func (d_ Database) SaveRecordZoneCompletionHandler(zone IRecordZone, completionHandler func(zone RecordZone, error foundation.Error))

Saves a specific record zone. Full Topic

func (Database) SaveSubscriptionCompletionHandler

func (d_ Database) SaveSubscriptionCompletionHandler(subscription ISubscription, completionHandler func(subscription Subscription, error foundation.Error))

Saves a specific subscription. Full Topic

type DatabaseNotification

type DatabaseNotification struct {
	Notification
}

A notification that triggers when the contents of a database change. Full Topic

func DatabaseNotificationFrom

func DatabaseNotificationFrom(ptr unsafe.Pointer) DatabaseNotification

func DatabaseNotification_NotificationFromRemoteNotificationDictionary

func DatabaseNotification_NotificationFromRemoteNotificationDictionary(notificationDictionary foundation.Dictionary) DatabaseNotification

Creates a new notification using the specified payload data. Full Topic

func NewDatabaseNotification

func NewDatabaseNotification() DatabaseNotification

func (DatabaseNotification) DatabaseScope

func (d_ DatabaseNotification) DatabaseScope() DatabaseScope

The type of database. Full Topic

func (DatabaseNotification) Init

type DatabaseOperation

type DatabaseOperation struct {
	Operation
}

The abstract base class for operations that act upon databases in CloudKit. Full Topic

func DatabaseOperationFrom

func DatabaseOperationFrom(ptr unsafe.Pointer) DatabaseOperation

func NewDatabaseOperation

func NewDatabaseOperation() DatabaseOperation

func (DatabaseOperation) Database

func (d_ DatabaseOperation) Database() Database

The database that the operation uses. Full Topic

func (DatabaseOperation) Init

func (DatabaseOperation) SetDatabase

func (d_ DatabaseOperation) SetDatabase(value IDatabase)

The database that the operation uses. Full Topic

type DatabaseScope

type DatabaseScope int

Constants that represent the scope of a database. Full Topic

const (
	DatabaseScopePrivate DatabaseScope = 2
	DatabaseScopePublic  DatabaseScope = 1
	DatabaseScopeShared  DatabaseScope = 3
)

type DatabaseSubscription

type DatabaseSubscription struct {
	Subscription
}

A subscription that generates push notifications when CloudKit modifies records in a database. Full Topic

func DatabaseSubscriptionFrom

func DatabaseSubscriptionFrom(ptr unsafe.Pointer) DatabaseSubscription

func NewDatabaseSubscription

func NewDatabaseSubscription() DatabaseSubscription

func NewDatabaseSubscriptionWithSubscriptionID

func NewDatabaseSubscriptionWithSubscriptionID(subscriptionID SubscriptionID) DatabaseSubscription

Creates a named subscription for all records in a database. Full Topic

func (DatabaseSubscription) Init

func (DatabaseSubscription) InitWithSubscriptionID

func (d_ DatabaseSubscription) InitWithSubscriptionID(subscriptionID SubscriptionID) DatabaseSubscription

func (DatabaseSubscription) RecordType

func (d_ DatabaseSubscription) RecordType() RecordType

The type of record that the subscription queries. Full Topic

func (DatabaseSubscription) SetRecordType

func (d_ DatabaseSubscription) SetRecordType(value RecordType)

The type of record that the subscription queries. Full Topic

type DiscoverAllUserIdentitiesOperation

type DiscoverAllUserIdentitiesOperation struct {
	Operation
}

An operation that uses the device’s contacts to search for discoverable iCloud users. Full Topic

func DiscoverAllUserIdentitiesOperationFrom

func DiscoverAllUserIdentitiesOperationFrom(ptr unsafe.Pointer) DiscoverAllUserIdentitiesOperation

func NewDiscoverAllUserIdentitiesOperation

func NewDiscoverAllUserIdentitiesOperation() DiscoverAllUserIdentitiesOperation

func (DiscoverAllUserIdentitiesOperation) Init

type DiscoverUserIdentitiesOperation

type DiscoverUserIdentitiesOperation struct {
	Operation
}

An operation that uses the provided criteria to search for discoverable iCloud users. Full Topic

func DiscoverUserIdentitiesOperationFrom

func DiscoverUserIdentitiesOperationFrom(ptr unsafe.Pointer) DiscoverUserIdentitiesOperation

func NewDiscoverUserIdentitiesOperation

func NewDiscoverUserIdentitiesOperation() DiscoverUserIdentitiesOperation

func (DiscoverUserIdentitiesOperation) Init

type ErrorCode

type ErrorCode int

The error codes that CloudKit returns. Full Topic

const (
	ErrorAccountTemporarilyUnavailable  ErrorCode = 36
	ErrorAlreadyShared                  ErrorCode = 30
	ErrorAssetFileModified              ErrorCode = 17
	ErrorAssetFileNotFound              ErrorCode = 16
	ErrorAssetNotAvailable              ErrorCode = 35
	ErrorBadContainer                   ErrorCode = 5
	ErrorBadDatabase                    ErrorCode = 24
	ErrorBatchRequestFailed             ErrorCode = 22
	ErrorChangeTokenExpired             ErrorCode = 21
	ErrorConstraintViolation            ErrorCode = 19
	ErrorIncompatibleVersion            ErrorCode = 18
	ErrorInternalError                  ErrorCode = 1
	ErrorInvalidArguments               ErrorCode = 12
	ErrorLimitExceeded                  ErrorCode = 27
	ErrorManagedAccountRestricted       ErrorCode = 32
	ErrorMissingEntitlement             ErrorCode = 8
	ErrorNetworkFailure                 ErrorCode = 4
	ErrorNetworkUnavailable             ErrorCode = 3
	ErrorNotAuthenticated               ErrorCode = 9
	ErrorOperationCancelled             ErrorCode = 20
	ErrorPartialFailure                 ErrorCode = 2
	ErrorParticipantMayNeedVerification ErrorCode = 33
	ErrorPermissionFailure              ErrorCode = 10
	ErrorQuotaExceeded                  ErrorCode = 25
	ErrorReferenceViolation             ErrorCode = 31
	ErrorRequestRateLimited             ErrorCode = 7
	ErrorResultsTruncated               ErrorCode = 13
	ErrorServerRecordChanged            ErrorCode = 14
	ErrorServerRejectedRequest          ErrorCode = 15
	ErrorServerResponseLost             ErrorCode = 34
	ErrorServiceUnavailable             ErrorCode = 6
	ErrorTooManyParticipants            ErrorCode = 29
	ErrorUnknownItem                    ErrorCode = 11
	ErrorUserDeletedZone                ErrorCode = 28
	ErrorZoneBusy                       ErrorCode = 23
	ErrorZoneNotFound                   ErrorCode = 26
)

type FetchDatabaseChangesOperation

type FetchDatabaseChangesOperation struct {
	DatabaseOperation
}

An operation that fetches database changes. Full Topic

func FetchDatabaseChangesOperationFrom

func FetchDatabaseChangesOperationFrom(ptr unsafe.Pointer) FetchDatabaseChangesOperation

func NewFetchDatabaseChangesOperation

func NewFetchDatabaseChangesOperation() FetchDatabaseChangesOperation

func NewFetchDatabaseChangesOperationWithPreviousServerChangeToken

func NewFetchDatabaseChangesOperationWithPreviousServerChangeToken(previousServerChangeToken IServerChangeToken) FetchDatabaseChangesOperation

Creates an operation for fetching database changes. Full Topic

func (FetchDatabaseChangesOperation) ChangeTokenUpdatedBlock

func (f_ FetchDatabaseChangesOperation) ChangeTokenUpdatedBlock() func(serverChangeToken ServerChangeToken)

The block to execute when the change token updates. Full Topic

func (FetchDatabaseChangesOperation) FetchAllChanges

func (f_ FetchDatabaseChangesOperation) FetchAllChanges() bool

A Boolean value that indicates whether to send repeated requests to the server. Full Topic

func (FetchDatabaseChangesOperation) FetchDatabaseChangesCompletionBlock

func (f_ FetchDatabaseChangesOperation) FetchDatabaseChangesCompletionBlock() func(serverChangeToken ServerChangeToken, moreComing bool, operationError foundation.Error)

The block to execute when the operation finishes. Full Topic

func (FetchDatabaseChangesOperation) Init

func (FetchDatabaseChangesOperation) InitWithPreviousServerChangeToken

func (f_ FetchDatabaseChangesOperation) InitWithPreviousServerChangeToken(previousServerChangeToken IServerChangeToken) FetchDatabaseChangesOperation

func (FetchDatabaseChangesOperation) PreviousServerChangeToken

func (f_ FetchDatabaseChangesOperation) PreviousServerChangeToken() ServerChangeToken

The server change token. Full Topic

func (FetchDatabaseChangesOperation) RecordZoneWithIDChangedBlock

func (f_ FetchDatabaseChangesOperation) RecordZoneWithIDChangedBlock() func(zoneID RecordZoneID)

The block to execute with a single record zone change. Full Topic

func (FetchDatabaseChangesOperation) RecordZoneWithIDWasDeletedBlock

func (f_ FetchDatabaseChangesOperation) RecordZoneWithIDWasDeletedBlock() func(zoneID RecordZoneID)

The block to execute when a record zone no longer exists. Full Topic

func (FetchDatabaseChangesOperation) RecordZoneWithIDWasDeletedDueToUserEncryptedDataResetBlock

func (f_ FetchDatabaseChangesOperation) RecordZoneWithIDWasDeletedDueToUserEncryptedDataResetBlock() func(zoneID RecordZoneID)

The block to execute when a user-invoked account reset deletes a record zone. Full Topic

func (FetchDatabaseChangesOperation) RecordZoneWithIDWasPurgedBlock

func (f_ FetchDatabaseChangesOperation) RecordZoneWithIDWasPurgedBlock() func(zoneID RecordZoneID)

The block to execute when CloudKit purges a record zone. Full Topic

func (FetchDatabaseChangesOperation) ResultsLimit

func (f_ FetchDatabaseChangesOperation) ResultsLimit() uint

The maximum number of results that the operation fetches. Full Topic

func (FetchDatabaseChangesOperation) SetChangeTokenUpdatedBlock

func (f_ FetchDatabaseChangesOperation) SetChangeTokenUpdatedBlock(value func(serverChangeToken ServerChangeToken))

The block to execute when the change token updates. Full Topic

func (FetchDatabaseChangesOperation) SetFetchAllChanges

func (f_ FetchDatabaseChangesOperation) SetFetchAllChanges(value bool)

A Boolean value that indicates whether to send repeated requests to the server. Full Topic

func (FetchDatabaseChangesOperation) SetFetchDatabaseChangesCompletionBlock

func (f_ FetchDatabaseChangesOperation) SetFetchDatabaseChangesCompletionBlock(value func(serverChangeToken ServerChangeToken, moreComing bool, operationError foundation.Error))

The block to execute when the operation finishes. Full Topic

func (FetchDatabaseChangesOperation) SetPreviousServerChangeToken

func (f_ FetchDatabaseChangesOperation) SetPreviousServerChangeToken(value IServerChangeToken)

The server change token. Full Topic

func (FetchDatabaseChangesOperation) SetRecordZoneWithIDChangedBlock

func (f_ FetchDatabaseChangesOperation) SetRecordZoneWithIDChangedBlock(value func(zoneID RecordZoneID))

The block to execute with a single record zone change. Full Topic

func (FetchDatabaseChangesOperation) SetRecordZoneWithIDWasDeletedBlock

func (f_ FetchDatabaseChangesOperation) SetRecordZoneWithIDWasDeletedBlock(value func(zoneID RecordZoneID))

The block to execute when a record zone no longer exists. Full Topic

func (FetchDatabaseChangesOperation) SetRecordZoneWithIDWasDeletedDueToUserEncryptedDataResetBlock

func (f_ FetchDatabaseChangesOperation) SetRecordZoneWithIDWasDeletedDueToUserEncryptedDataResetBlock(value func(zoneID RecordZoneID))

The block to execute when a user-invoked account reset deletes a record zone. Full Topic

func (FetchDatabaseChangesOperation) SetRecordZoneWithIDWasPurgedBlock

func (f_ FetchDatabaseChangesOperation) SetRecordZoneWithIDWasPurgedBlock(value func(zoneID RecordZoneID))

The block to execute when CloudKit purges a record zone. Full Topic

func (FetchDatabaseChangesOperation) SetResultsLimit

func (f_ FetchDatabaseChangesOperation) SetResultsLimit(value uint)

The maximum number of results that the operation fetches. Full Topic

type FetchNotificationChangesOperation

type FetchNotificationChangesOperation struct {
	Operation
}

An operation that retrieves unread notifications from a CloudKit container. Full Topic

func FetchNotificationChangesOperationFrom

func FetchNotificationChangesOperationFrom(ptr unsafe.Pointer) FetchNotificationChangesOperation

func NewFetchNotificationChangesOperation

func NewFetchNotificationChangesOperation() FetchNotificationChangesOperation

func (FetchNotificationChangesOperation) Init

type FetchRecordChangesOperation

type FetchRecordChangesOperation struct {
	DatabaseOperation
}

An operation that reports on the changed and deleted records in the specified record zone. Full Topic

func FetchRecordChangesOperationFrom

func FetchRecordChangesOperationFrom(ptr unsafe.Pointer) FetchRecordChangesOperation

func NewFetchRecordChangesOperation

func NewFetchRecordChangesOperation() FetchRecordChangesOperation

func (FetchRecordChangesOperation) Init

type FetchRecordZoneChangesConfiguration

type FetchRecordZoneChangesConfiguration struct {
	objc.Object
}

A configuration object that describes the information to fetch from a record zone. Full Topic

func FetchRecordZoneChangesConfigurationFrom

func FetchRecordZoneChangesConfigurationFrom(ptr unsafe.Pointer) FetchRecordZoneChangesConfiguration

func NewFetchRecordZoneChangesConfiguration

func NewFetchRecordZoneChangesConfiguration() FetchRecordZoneChangesConfiguration

func (FetchRecordZoneChangesConfiguration) DesiredKeys

An array of the record keys to retrieve. Full Topic

func (FetchRecordZoneChangesConfiguration) Init

func (FetchRecordZoneChangesConfiguration) PreviousServerChangeToken

func (f_ FetchRecordZoneChangesConfiguration) PreviousServerChangeToken() ServerChangeToken

The server change token. Full Topic

func (FetchRecordZoneChangesConfiguration) ResultsLimit

func (f_ FetchRecordZoneChangesConfiguration) ResultsLimit() uint

The maximum number of records that CloudKit retrieves when fetching zone changes. Full Topic

func (FetchRecordZoneChangesConfiguration) SetDesiredKeys

func (f_ FetchRecordZoneChangesConfiguration) SetDesiredKeys(value []RecordFieldKey)

An array of the record keys to retrieve. Full Topic

func (FetchRecordZoneChangesConfiguration) SetPreviousServerChangeToken

func (f_ FetchRecordZoneChangesConfiguration) SetPreviousServerChangeToken(value IServerChangeToken)

The server change token. Full Topic

func (FetchRecordZoneChangesConfiguration) SetResultsLimit

func (f_ FetchRecordZoneChangesConfiguration) SetResultsLimit(value uint)

The maximum number of records that CloudKit retrieves when fetching zone changes. Full Topic

type FetchRecordZoneChangesOperation

type FetchRecordZoneChangesOperation struct {
	DatabaseOperation
}

An operation that fetches record zone changes. Full Topic

func FetchRecordZoneChangesOperationFrom

func FetchRecordZoneChangesOperationFrom(ptr unsafe.Pointer) FetchRecordZoneChangesOperation

func NewFetchRecordZoneChangesOperation

func NewFetchRecordZoneChangesOperation() FetchRecordZoneChangesOperation

func NewFetchRecordZoneChangesOperationWithRecordZoneIDsConfigurationsByRecordZoneID

func NewFetchRecordZoneChangesOperationWithRecordZoneIDsConfigurationsByRecordZoneID(recordZoneIDs []IRecordZoneID, configurationsByRecordZoneID foundation.Dictionary) FetchRecordZoneChangesOperation

Creates an operation for fetching record zone changes. Full Topic

func (FetchRecordZoneChangesOperation) ConfigurationsByRecordZoneID

func (f_ FetchRecordZoneChangesOperation) ConfigurationsByRecordZoneID() foundation.Dictionary

A dictionary of configurations for fetching change operations by zone identifier. Full Topic

func (FetchRecordZoneChangesOperation) FetchAllChanges

func (f_ FetchRecordZoneChangesOperation) FetchAllChanges() bool

A Boolean value that indicates whether to send repeated requests to the server. Full Topic

func (FetchRecordZoneChangesOperation) FetchRecordZoneChangesCompletionBlock

func (f_ FetchRecordZoneChangesOperation) FetchRecordZoneChangesCompletionBlock() func(operationError foundation.Error)

The block to execute when the operation finishes. Full Topic

func (FetchRecordZoneChangesOperation) Init

func (FetchRecordZoneChangesOperation) InitWithRecordZoneIDsConfigurationsByRecordZoneID

func (f_ FetchRecordZoneChangesOperation) InitWithRecordZoneIDsConfigurationsByRecordZoneID(recordZoneIDs []IRecordZoneID, configurationsByRecordZoneID foundation.Dictionary) FetchRecordZoneChangesOperation

func (FetchRecordZoneChangesOperation) RecordWasChangedBlock

func (f_ FetchRecordZoneChangesOperation) RecordWasChangedBlock() func(recordID RecordID, record Record, error foundation.Error)
[Full Topic]

func (FetchRecordZoneChangesOperation) RecordWithIDWasDeletedBlock

func (f_ FetchRecordZoneChangesOperation) RecordWithIDWasDeletedBlock() func(recordID RecordID, recordType RecordType)

The block to execute when a record no longer exists. Full Topic

func (FetchRecordZoneChangesOperation) RecordZoneChangeTokensUpdatedBlock

func (f_ FetchRecordZoneChangesOperation) RecordZoneChangeTokensUpdatedBlock() func(recordZoneID RecordZoneID, serverChangeToken ServerChangeToken, clientChangeTokenData []byte)

The block to execute when the change token updates. Full Topic

func (FetchRecordZoneChangesOperation) RecordZoneFetchCompletionBlock

func (f_ FetchRecordZoneChangesOperation) RecordZoneFetchCompletionBlock() func(recordZoneID RecordZoneID, serverChangeToken ServerChangeToken, clientChangeTokenData []byte, moreComing bool, recordZoneError foundation.Error)

The block to execute when a record zone’s fetch finishes. Full Topic

func (FetchRecordZoneChangesOperation) RecordZoneIDs

func (f_ FetchRecordZoneChangesOperation) RecordZoneIDs() []RecordZoneID

The IDs of the record zones that contain the records to fetch. Full Topic

func (FetchRecordZoneChangesOperation) SetConfigurationsByRecordZoneID

func (f_ FetchRecordZoneChangesOperation) SetConfigurationsByRecordZoneID(value foundation.Dictionary)

A dictionary of configurations for fetching change operations by zone identifier. Full Topic

func (FetchRecordZoneChangesOperation) SetFetchAllChanges

func (f_ FetchRecordZoneChangesOperation) SetFetchAllChanges(value bool)

A Boolean value that indicates whether to send repeated requests to the server. Full Topic

func (FetchRecordZoneChangesOperation) SetFetchRecordZoneChangesCompletionBlock

func (f_ FetchRecordZoneChangesOperation) SetFetchRecordZoneChangesCompletionBlock(value func(operationError foundation.Error))

The block to execute when the operation finishes. Full Topic

func (FetchRecordZoneChangesOperation) SetRecordWasChangedBlock

func (f_ FetchRecordZoneChangesOperation) SetRecordWasChangedBlock(value func(recordID RecordID, record Record, error foundation.Error))
[Full Topic]

func (FetchRecordZoneChangesOperation) SetRecordWithIDWasDeletedBlock

func (f_ FetchRecordZoneChangesOperation) SetRecordWithIDWasDeletedBlock(value func(recordID RecordID, recordType RecordType))

The block to execute when a record no longer exists. Full Topic

func (FetchRecordZoneChangesOperation) SetRecordZoneChangeTokensUpdatedBlock

func (f_ FetchRecordZoneChangesOperation) SetRecordZoneChangeTokensUpdatedBlock(value func(recordZoneID RecordZoneID, serverChangeToken ServerChangeToken, clientChangeTokenData []byte))

The block to execute when the change token updates. Full Topic

func (FetchRecordZoneChangesOperation) SetRecordZoneFetchCompletionBlock

func (f_ FetchRecordZoneChangesOperation) SetRecordZoneFetchCompletionBlock(value func(recordZoneID RecordZoneID, serverChangeToken ServerChangeToken, clientChangeTokenData []byte, moreComing bool, recordZoneError foundation.Error))

The block to execute when a record zone’s fetch finishes. Full Topic

func (FetchRecordZoneChangesOperation) SetRecordZoneIDs

func (f_ FetchRecordZoneChangesOperation) SetRecordZoneIDs(value []IRecordZoneID)

The IDs of the record zones that contain the records to fetch. Full Topic

type FetchRecordZoneChangesOptions

type FetchRecordZoneChangesOptions struct {
	objc.Object
}

A configuration object that describes the information to fetch from a record zone. Full Topic

func FetchRecordZoneChangesOptionsFrom

func FetchRecordZoneChangesOptionsFrom(ptr unsafe.Pointer) FetchRecordZoneChangesOptions

func NewFetchRecordZoneChangesOptions

func NewFetchRecordZoneChangesOptions() FetchRecordZoneChangesOptions

func (FetchRecordZoneChangesOptions) Init

type FetchRecordZonesOperation

type FetchRecordZonesOperation struct {
	DatabaseOperation
}

An operation for retrieving record zones from a database. Full Topic

func FetchRecordZonesOperationFrom

func FetchRecordZonesOperationFrom(ptr unsafe.Pointer) FetchRecordZonesOperation

func FetchRecordZonesOperation_FetchAllRecordZonesOperation

func FetchRecordZonesOperation_FetchAllRecordZonesOperation() FetchRecordZonesOperation

Returns an operation for fetching all record zones in the current database. Full Topic

func NewFetchRecordZonesOperation

func NewFetchRecordZonesOperation() FetchRecordZonesOperation

func NewFetchRecordZonesOperationWithRecordZoneIDs

func NewFetchRecordZonesOperationWithRecordZoneIDs(zoneIDs []IRecordZoneID) FetchRecordZonesOperation

Creates an operation for fetching the specified record zones. Full Topic

func (FetchRecordZonesOperation) FetchRecordZonesCompletionBlock

func (f_ FetchRecordZonesOperation) FetchRecordZonesCompletionBlock() func(recordZonesByZoneID foundation.Dictionary, operationError foundation.Error)

The block to execute after CloudKit retrieves all of the record zones. Full Topic

func (FetchRecordZonesOperation) Init

func (FetchRecordZonesOperation) InitWithRecordZoneIDs

func (f_ FetchRecordZonesOperation) InitWithRecordZoneIDs(zoneIDs []IRecordZoneID) FetchRecordZonesOperation

func (FetchRecordZonesOperation) PerRecordZoneCompletionBlock

func (f_ FetchRecordZonesOperation) PerRecordZoneCompletionBlock() func(zoneID RecordZoneID, recordZone RecordZone, error foundation.Error)
[Full Topic]

func (FetchRecordZonesOperation) RecordZoneIDs

func (f_ FetchRecordZonesOperation) RecordZoneIDs() []RecordZoneID

The IDs of the record zones to retrieve. Full Topic

func (FetchRecordZonesOperation) SetFetchRecordZonesCompletionBlock

func (f_ FetchRecordZonesOperation) SetFetchRecordZonesCompletionBlock(value func(recordZonesByZoneID foundation.Dictionary, operationError foundation.Error))

The block to execute after CloudKit retrieves all of the record zones. Full Topic

func (FetchRecordZonesOperation) SetPerRecordZoneCompletionBlock

func (f_ FetchRecordZonesOperation) SetPerRecordZoneCompletionBlock(value func(zoneID RecordZoneID, recordZone RecordZone, error foundation.Error))
[Full Topic]

func (FetchRecordZonesOperation) SetRecordZoneIDs

func (f_ FetchRecordZonesOperation) SetRecordZoneIDs(value []IRecordZoneID)

The IDs of the record zones to retrieve. Full Topic

type FetchRecordsOperation

type FetchRecordsOperation struct {
	DatabaseOperation
}

An operation for retrieving records from a database. Full Topic

func FetchRecordsOperationFrom

func FetchRecordsOperationFrom(ptr unsafe.Pointer) FetchRecordsOperation

func FetchRecordsOperation_FetchCurrentUserRecordOperation

func FetchRecordsOperation_FetchCurrentUserRecordOperation() FetchRecordsOperation

Returns a fetch operation for retrieving the current user record. Full Topic

func NewFetchRecordsOperation

func NewFetchRecordsOperation() FetchRecordsOperation

func NewFetchRecordsOperationWithRecordIDs

func NewFetchRecordsOperationWithRecordIDs(recordIDs []IRecordID) FetchRecordsOperation

Creates a fetch operation for retrieving the records with the specified IDs. Full Topic

func (FetchRecordsOperation) DesiredKeys

func (f_ FetchRecordsOperation) DesiredKeys() []RecordFieldKey

The fields of the records to fetch. Full Topic

func (FetchRecordsOperation) FetchRecordsCompletionBlock

func (f_ FetchRecordsOperation) FetchRecordsCompletionBlock() func(recordsByRecordID foundation.Dictionary, operationError foundation.Error)

The block to execute after CloudKit retrieves all of the records. Full Topic

func (FetchRecordsOperation) Init

func (FetchRecordsOperation) InitWithRecordIDs

func (f_ FetchRecordsOperation) InitWithRecordIDs(recordIDs []IRecordID) FetchRecordsOperation

func (FetchRecordsOperation) PerRecordCompletionBlock

func (f_ FetchRecordsOperation) PerRecordCompletionBlock() func(record Record, recordID RecordID, error foundation.Error)

The block to execute when a record becomes available. Full Topic

func (FetchRecordsOperation) PerRecordProgressBlock

func (f_ FetchRecordsOperation) PerRecordProgressBlock() func(recordID RecordID, progress float64)

The block to execute with progress information for individual records. Full Topic

func (FetchRecordsOperation) RecordIDs

func (f_ FetchRecordsOperation) RecordIDs() []RecordID

The record IDs of the records to fetch. Full Topic

func (FetchRecordsOperation) SetDesiredKeys

func (f_ FetchRecordsOperation) SetDesiredKeys(value []RecordFieldKey)

The fields of the records to fetch. Full Topic

func (FetchRecordsOperation) SetFetchRecordsCompletionBlock

func (f_ FetchRecordsOperation) SetFetchRecordsCompletionBlock(value func(recordsByRecordID foundation.Dictionary, operationError foundation.Error))

The block to execute after CloudKit retrieves all of the records. Full Topic

func (FetchRecordsOperation) SetPerRecordCompletionBlock

func (f_ FetchRecordsOperation) SetPerRecordCompletionBlock(value func(record Record, recordID RecordID, error foundation.Error))

The block to execute when a record becomes available. Full Topic

func (FetchRecordsOperation) SetPerRecordProgressBlock

func (f_ FetchRecordsOperation) SetPerRecordProgressBlock(value func(recordID RecordID, progress float64))

The block to execute with progress information for individual records. Full Topic

func (FetchRecordsOperation) SetRecordIDs

func (f_ FetchRecordsOperation) SetRecordIDs(value []IRecordID)

The record IDs of the records to fetch. Full Topic

type FetchShareMetadataOperation

type FetchShareMetadataOperation struct {
	Operation
}

An operation that fetches metadata for one or more shares. Full Topic

func FetchShareMetadataOperationFrom

func FetchShareMetadataOperationFrom(ptr unsafe.Pointer) FetchShareMetadataOperation

func NewFetchShareMetadataOperation

func NewFetchShareMetadataOperation() FetchShareMetadataOperation

func NewFetchShareMetadataOperationWithShareURLs

func NewFetchShareMetadataOperationWithShareURLs(shareURLs []foundation.IURL) FetchShareMetadataOperation

Creates an operation for fetching the metadata for the specified shares. Full Topic

func (FetchShareMetadataOperation) FetchShareMetadataCompletionBlock

func (f_ FetchShareMetadataOperation) FetchShareMetadataCompletionBlock() func(operationError foundation.Error)

The block to execute when the operation finishes. Full Topic

func (FetchShareMetadataOperation) Init

func (FetchShareMetadataOperation) InitWithShareURLs

func (f_ FetchShareMetadataOperation) InitWithShareURLs(shareURLs []foundation.IURL) FetchShareMetadataOperation

func (FetchShareMetadataOperation) PerShareMetadataBlock

func (f_ FetchShareMetadataOperation) PerShareMetadataBlock() func(shareURL foundation.URL, shareMetadata ShareMetadata, error foundation.Error)

The block to execute as the operation fetches individual shares. Full Topic

func (FetchShareMetadataOperation) RootRecordDesiredKeys

func (f_ FetchShareMetadataOperation) RootRecordDesiredKeys() []RecordFieldKey

The fields to return when fetching the root record. Full Topic

func (FetchShareMetadataOperation) SetFetchShareMetadataCompletionBlock

func (f_ FetchShareMetadataOperation) SetFetchShareMetadataCompletionBlock(value func(operationError foundation.Error))

The block to execute when the operation finishes. Full Topic

func (FetchShareMetadataOperation) SetPerShareMetadataBlock

func (f_ FetchShareMetadataOperation) SetPerShareMetadataBlock(value func(shareURL foundation.URL, shareMetadata ShareMetadata, error foundation.Error))

The block to execute as the operation fetches individual shares. Full Topic

func (FetchShareMetadataOperation) SetRootRecordDesiredKeys

func (f_ FetchShareMetadataOperation) SetRootRecordDesiredKeys(value []RecordFieldKey)

The fields to return when fetching the root record. Full Topic

func (FetchShareMetadataOperation) SetShareURLs

func (f_ FetchShareMetadataOperation) SetShareURLs(value []foundation.IURL)

The URLs of the shares to fetch. Full Topic

func (FetchShareMetadataOperation) SetShouldFetchRootRecord

func (f_ FetchShareMetadataOperation) SetShouldFetchRootRecord(value bool)

A Boolean value that indicates whether to retrieve the root record. Full Topic

func (FetchShareMetadataOperation) ShareURLs

func (f_ FetchShareMetadataOperation) ShareURLs() []foundation.URL

The URLs of the shares to fetch. Full Topic

func (FetchShareMetadataOperation) ShouldFetchRootRecord

func (f_ FetchShareMetadataOperation) ShouldFetchRootRecord() bool

A Boolean value that indicates whether to retrieve the root record. Full Topic

type FetchShareParticipantsOperation

type FetchShareParticipantsOperation struct {
	Operation
}

An operation that converts user identities into share participants. Full Topic

func FetchShareParticipantsOperationFrom

func FetchShareParticipantsOperationFrom(ptr unsafe.Pointer) FetchShareParticipantsOperation

func NewFetchShareParticipantsOperation

func NewFetchShareParticipantsOperation() FetchShareParticipantsOperation

func NewFetchShareParticipantsOperationWithUserIdentityLookupInfos

func NewFetchShareParticipantsOperationWithUserIdentityLookupInfos(userIdentityLookupInfos []IUserIdentityLookupInfo) FetchShareParticipantsOperation

Creates an operation for generating share participants from the specified user data. Full Topic

func (FetchShareParticipantsOperation) FetchShareParticipantsCompletionBlock

func (f_ FetchShareParticipantsOperation) FetchShareParticipantsCompletionBlock() func(operationError foundation.Error)

The block to execute when the operation finishes. Full Topic

func (FetchShareParticipantsOperation) Init

func (FetchShareParticipantsOperation) InitWithUserIdentityLookupInfos

func (f_ FetchShareParticipantsOperation) InitWithUserIdentityLookupInfos(userIdentityLookupInfos []IUserIdentityLookupInfo) FetchShareParticipantsOperation

func (FetchShareParticipantsOperation) PerShareParticipantCompletionBlock

func (f_ FetchShareParticipantsOperation) PerShareParticipantCompletionBlock() func(lookupInfo UserIdentityLookupInfo, participant ShareParticipant, error foundation.Error)
[Full Topic]

func (FetchShareParticipantsOperation) SetFetchShareParticipantsCompletionBlock

func (f_ FetchShareParticipantsOperation) SetFetchShareParticipantsCompletionBlock(value func(operationError foundation.Error))

The block to execute when the operation finishes. Full Topic

func (FetchShareParticipantsOperation) SetPerShareParticipantCompletionBlock

func (f_ FetchShareParticipantsOperation) SetPerShareParticipantCompletionBlock(value func(lookupInfo UserIdentityLookupInfo, participant ShareParticipant, error foundation.Error))
[Full Topic]

func (FetchShareParticipantsOperation) SetUserIdentityLookupInfos

func (f_ FetchShareParticipantsOperation) SetUserIdentityLookupInfos(value []IUserIdentityLookupInfo)

The user data for the participants. Full Topic

func (FetchShareParticipantsOperation) UserIdentityLookupInfos

func (f_ FetchShareParticipantsOperation) UserIdentityLookupInfos() []UserIdentityLookupInfo

The user data for the participants. Full Topic

type FetchSubscriptionsOperation

type FetchSubscriptionsOperation struct {
	DatabaseOperation
}

An operation for fetching subscriptions. Full Topic

func FetchSubscriptionsOperationFrom

func FetchSubscriptionsOperationFrom(ptr unsafe.Pointer) FetchSubscriptionsOperation

func FetchSubscriptionsOperation_FetchAllSubscriptionsOperation

func FetchSubscriptionsOperation_FetchAllSubscriptionsOperation() FetchSubscriptionsOperation

Returns an operation that fetches all of the user’s subscriptions. Full Topic

func NewFetchSubscriptionsOperation

func NewFetchSubscriptionsOperation() FetchSubscriptionsOperation

func NewFetchSubscriptionsOperationWithSubscriptionIDs

func NewFetchSubscriptionsOperationWithSubscriptionIDs(subscriptionIDs []SubscriptionID) FetchSubscriptionsOperation

Creates an operation for fetching the specified subscriptions. Full Topic

func (FetchSubscriptionsOperation) FetchSubscriptionCompletionBlock

func (f_ FetchSubscriptionsOperation) FetchSubscriptionCompletionBlock() func(subscriptionsBySubscriptionID map[SubscriptionID]Subscription, operationError foundation.Error)

The block to execute after the operation fetches the subscriptions. Full Topic

func (FetchSubscriptionsOperation) Init

func (FetchSubscriptionsOperation) InitWithSubscriptionIDs

func (f_ FetchSubscriptionsOperation) InitWithSubscriptionIDs(subscriptionIDs []SubscriptionID) FetchSubscriptionsOperation

func (FetchSubscriptionsOperation) PerSubscriptionCompletionBlock

func (f_ FetchSubscriptionsOperation) PerSubscriptionCompletionBlock() func(subscriptionID SubscriptionID, subscription Subscription, error foundation.Error)
[Full Topic]

func (FetchSubscriptionsOperation) SetFetchSubscriptionCompletionBlock

func (f_ FetchSubscriptionsOperation) SetFetchSubscriptionCompletionBlock(value func(subscriptionsBySubscriptionID map[SubscriptionID]Subscription, operationError foundation.Error))

The block to execute after the operation fetches the subscriptions. Full Topic

func (FetchSubscriptionsOperation) SetPerSubscriptionCompletionBlock

func (f_ FetchSubscriptionsOperation) SetPerSubscriptionCompletionBlock(value func(subscriptionID SubscriptionID, subscription Subscription, error foundation.Error))
[Full Topic]

func (FetchSubscriptionsOperation) SetSubscriptionIDs

func (f_ FetchSubscriptionsOperation) SetSubscriptionIDs(value []SubscriptionID)

The IDs of the subscriptions to fetch. Full Topic

func (FetchSubscriptionsOperation) SubscriptionIDs

func (f_ FetchSubscriptionsOperation) SubscriptionIDs() []SubscriptionID

The IDs of the subscriptions to fetch. Full Topic

type FetchWebAuthTokenOperation

type FetchWebAuthTokenOperation struct {
	DatabaseOperation
}

An operation that creates an authentication token for use with CloudKit web services. Full Topic

func FetchWebAuthTokenOperationFrom

func FetchWebAuthTokenOperationFrom(ptr unsafe.Pointer) FetchWebAuthTokenOperation

func NewFetchWebAuthTokenOperation

func NewFetchWebAuthTokenOperation() FetchWebAuthTokenOperation

func NewFetchWebAuthTokenOperationWithAPIToken

func NewFetchWebAuthTokenOperationWithAPIToken(APIToken string) FetchWebAuthTokenOperation

Creates a fetch operation for the specified API token. Full Topic

func (FetchWebAuthTokenOperation) APIToken

func (f_ FetchWebAuthTokenOperation) APIToken() string

The API token that allows access to an app’s container. Full Topic

func (FetchWebAuthTokenOperation) FetchWebAuthTokenCompletionBlock

func (f_ FetchWebAuthTokenOperation) FetchWebAuthTokenCompletionBlock() func(webAuthToken string, operationError foundation.Error)

The block to execute when the operation finishes. Full Topic

func (FetchWebAuthTokenOperation) Init

func (FetchWebAuthTokenOperation) InitWithAPIToken

func (f_ FetchWebAuthTokenOperation) InitWithAPIToken(APIToken string) FetchWebAuthTokenOperation

func (FetchWebAuthTokenOperation) SetAPIToken

func (f_ FetchWebAuthTokenOperation) SetAPIToken(value string)

The API token that allows access to an app’s container. Full Topic

func (FetchWebAuthTokenOperation) SetFetchWebAuthTokenCompletionBlock

func (f_ FetchWebAuthTokenOperation) SetFetchWebAuthTokenCompletionBlock(value func(webAuthToken string, operationError foundation.Error))

The block to execute when the operation finishes. Full Topic

type IAcceptSharesOperation

type IAcceptSharesOperation interface {
	IOperation
	PerShareCompletionBlock() func(shareMetadata ShareMetadata, acceptedShare Share, error foundation.Error)
	SetPerShareCompletionBlock(value func(shareMetadata ShareMetadata, acceptedShare Share, error foundation.Error))
	AcceptSharesCompletionBlock() func(operationError foundation.Error)
	SetAcceptSharesCompletionBlock(value func(operationError foundation.Error))
	ShareMetadatas() []ShareMetadata
	SetShareMetadatas(value []IShareMetadata)
}

An interface definition for the AcceptSharesOperation class.

type IAsset

type IAsset interface {
	objc.IObject
	FileURL() foundation.URL
}

An interface definition for the Asset class.

type IContainer

type IContainer interface {
	objc.IObject
	FetchShareParticipantWithPhoneNumberCompletionHandler(phoneNumber string, completionHandler func(shareParticipant ShareParticipant, error foundation.Error))
	FetchAllLongLivedOperationIDsWithCompletionHandler(completionHandler func(outstandingOperationIDs []OperationID, error foundation.Error))
	FetchShareMetadataWithURLCompletionHandler(url foundation.IURL, completionHandler func(metadata ShareMetadata, error foundation.Error))
	DatabaseWithDatabaseScope(databaseScope DatabaseScope) Database
	AccountStatusWithCompletionHandler(completionHandler func(accountStatus AccountStatus, error foundation.Error))
	AddOperation(operation IOperation)
	FetchShareParticipantWithUserRecordIDCompletionHandler(userRecordID IRecordID, completionHandler func(shareParticipant ShareParticipant, error foundation.Error))
	FetchUserRecordIDWithCompletionHandler(completionHandler func(recordID RecordID, error foundation.Error))
	AcceptShareMetadataCompletionHandler(metadata IShareMetadata, completionHandler func(acceptedShare Share, error foundation.Error))
	FetchShareParticipantWithEmailAddressCompletionHandler(emailAddress string, completionHandler func(shareParticipant ShareParticipant, error foundation.Error))
	FetchLongLivedOperationWithIDCompletionHandler(operationID OperationID, completionHandler func(outstandingOperation Operation, error foundation.Error))
	PublicCloudDatabase() Database
	ContainerIdentifier() string
	PrivateCloudDatabase() Database
	SharedCloudDatabase() Database
}

An interface definition for the Container class.

type IDatabase

type IDatabase interface {
	objc.IObject
	SaveRecordCompletionHandler(record IRecord, completionHandler func(record Record, error foundation.Error))
	DeleteSubscriptionWithIDCompletionHandler(subscriptionID SubscriptionID, completionHandler func(subscriptionID SubscriptionID, error foundation.Error))
	PerformQueryInZoneWithIDCompletionHandler(query IQuery, zoneID IRecordZoneID, completionHandler func(results []Record, error foundation.Error))
	SaveSubscriptionCompletionHandler(subscription ISubscription, completionHandler func(subscription Subscription, error foundation.Error))
	FetchSubscriptionWithIDCompletionHandler(subscriptionID SubscriptionID, completionHandler func(subscription Subscription, error foundation.Error))
	DeleteRecordWithIDCompletionHandler(recordID IRecordID, completionHandler func(recordID RecordID, error foundation.Error))
	FetchRecordWithIDCompletionHandler(recordID IRecordID, completionHandler func(record Record, error foundation.Error))
	FetchRecordZoneWithIDCompletionHandler(zoneID IRecordZoneID, completionHandler func(zone RecordZone, error foundation.Error))
	FetchAllRecordZonesWithCompletionHandler(completionHandler func(zones []RecordZone, error foundation.Error))
	FetchAllSubscriptionsWithCompletionHandler(completionHandler func(subscriptions []Subscription, error foundation.Error))
	DeleteRecordZoneWithIDCompletionHandler(zoneID IRecordZoneID, completionHandler func(zoneID RecordZoneID, error foundation.Error))
	SaveRecordZoneCompletionHandler(zone IRecordZone, completionHandler func(zone RecordZone, error foundation.Error))
	AddOperation(operation IDatabaseOperation)
	DatabaseScope() DatabaseScope
}

An interface definition for the Database class.

type IDatabaseNotification

type IDatabaseNotification interface {
	INotification
	DatabaseScope() DatabaseScope
}

An interface definition for the DatabaseNotification class.

type IDatabaseOperation

type IDatabaseOperation interface {
	IOperation
	Database() Database
	SetDatabase(value IDatabase)
}

An interface definition for the DatabaseOperation class.

type IDatabaseSubscription

type IDatabaseSubscription interface {
	ISubscription
	RecordType() RecordType
	SetRecordType(value RecordType)
}

An interface definition for the DatabaseSubscription class.

type IDiscoverAllUserIdentitiesOperation

type IDiscoverAllUserIdentitiesOperation interface {
	IOperation
}

An interface definition for the DiscoverAllUserIdentitiesOperation class.

type IDiscoverUserIdentitiesOperation

type IDiscoverUserIdentitiesOperation interface {
	IOperation
}

An interface definition for the DiscoverUserIdentitiesOperation class.

type IFetchDatabaseChangesOperation

type IFetchDatabaseChangesOperation interface {
	IDatabaseOperation
	RecordZoneWithIDWasPurgedBlock() func(zoneID RecordZoneID)
	SetRecordZoneWithIDWasPurgedBlock(value func(zoneID RecordZoneID))
	RecordZoneWithIDWasDeletedBlock() func(zoneID RecordZoneID)
	SetRecordZoneWithIDWasDeletedBlock(value func(zoneID RecordZoneID))
	ChangeTokenUpdatedBlock() func(serverChangeToken ServerChangeToken)
	SetChangeTokenUpdatedBlock(value func(serverChangeToken ServerChangeToken))
	FetchAllChanges() bool
	SetFetchAllChanges(value bool)
	RecordZoneWithIDChangedBlock() func(zoneID RecordZoneID)
	SetRecordZoneWithIDChangedBlock(value func(zoneID RecordZoneID))
	FetchDatabaseChangesCompletionBlock() func(serverChangeToken ServerChangeToken, moreComing bool, operationError foundation.Error)
	SetFetchDatabaseChangesCompletionBlock(value func(serverChangeToken ServerChangeToken, moreComing bool, operationError foundation.Error))
	RecordZoneWithIDWasDeletedDueToUserEncryptedDataResetBlock() func(zoneID RecordZoneID)
	SetRecordZoneWithIDWasDeletedDueToUserEncryptedDataResetBlock(value func(zoneID RecordZoneID))
	ResultsLimit() uint
	SetResultsLimit(value uint)
	PreviousServerChangeToken() ServerChangeToken
	SetPreviousServerChangeToken(value IServerChangeToken)
}

An interface definition for the FetchDatabaseChangesOperation class.

type IFetchNotificationChangesOperation

type IFetchNotificationChangesOperation interface {
	IOperation
}

An interface definition for the FetchNotificationChangesOperation class.

type IFetchRecordChangesOperation

type IFetchRecordChangesOperation interface {
	IDatabaseOperation
}

An interface definition for the FetchRecordChangesOperation class.

type IFetchRecordZoneChangesConfiguration

type IFetchRecordZoneChangesConfiguration interface {
	objc.IObject
	DesiredKeys() []RecordFieldKey
	SetDesiredKeys(value []RecordFieldKey)
	ResultsLimit() uint
	SetResultsLimit(value uint)
	PreviousServerChangeToken() ServerChangeToken
	SetPreviousServerChangeToken(value IServerChangeToken)
}

An interface definition for the FetchRecordZoneChangesConfiguration class.

type IFetchRecordZoneChangesOperation

type IFetchRecordZoneChangesOperation interface {
	IDatabaseOperation
	RecordWasChangedBlock() func(recordID RecordID, record Record, error foundation.Error)
	SetRecordWasChangedBlock(value func(recordID RecordID, record Record, error foundation.Error))
	RecordZoneFetchCompletionBlock() func(recordZoneID RecordZoneID, serverChangeToken ServerChangeToken, clientChangeTokenData []byte, moreComing bool, recordZoneError foundation.Error)
	SetRecordZoneFetchCompletionBlock(value func(recordZoneID RecordZoneID, serverChangeToken ServerChangeToken, clientChangeTokenData []byte, moreComing bool, recordZoneError foundation.Error))
	RecordWithIDWasDeletedBlock() func(recordID RecordID, recordType RecordType)
	SetRecordWithIDWasDeletedBlock(value func(recordID RecordID, recordType RecordType))
	FetchRecordZoneChangesCompletionBlock() func(operationError foundation.Error)
	SetFetchRecordZoneChangesCompletionBlock(value func(operationError foundation.Error))
	ConfigurationsByRecordZoneID() foundation.Dictionary
	SetConfigurationsByRecordZoneID(value foundation.Dictionary)
	FetchAllChanges() bool
	SetFetchAllChanges(value bool)
	RecordZoneChangeTokensUpdatedBlock() func(recordZoneID RecordZoneID, serverChangeToken ServerChangeToken, clientChangeTokenData []byte)
	SetRecordZoneChangeTokensUpdatedBlock(value func(recordZoneID RecordZoneID, serverChangeToken ServerChangeToken, clientChangeTokenData []byte))
	RecordZoneIDs() []RecordZoneID
	SetRecordZoneIDs(value []IRecordZoneID)
}

An interface definition for the FetchRecordZoneChangesOperation class.

type IFetchRecordZoneChangesOptions

type IFetchRecordZoneChangesOptions interface {
	objc.IObject
}

An interface definition for the FetchRecordZoneChangesOptions class.

type IFetchRecordZonesOperation

type IFetchRecordZonesOperation interface {
	IDatabaseOperation
	PerRecordZoneCompletionBlock() func(zoneID RecordZoneID, recordZone RecordZone, error foundation.Error)
	SetPerRecordZoneCompletionBlock(value func(zoneID RecordZoneID, recordZone RecordZone, error foundation.Error))
	FetchRecordZonesCompletionBlock() func(recordZonesByZoneID foundation.Dictionary, operationError foundation.Error)
	SetFetchRecordZonesCompletionBlock(value func(recordZonesByZoneID foundation.Dictionary, operationError foundation.Error))
	RecordZoneIDs() []RecordZoneID
	SetRecordZoneIDs(value []IRecordZoneID)
}

An interface definition for the FetchRecordZonesOperation class.

type IFetchRecordsOperation

type IFetchRecordsOperation interface {
	IDatabaseOperation
	PerRecordProgressBlock() func(recordID RecordID, progress float64)
	SetPerRecordProgressBlock(value func(recordID RecordID, progress float64))
	PerRecordCompletionBlock() func(record Record, recordID RecordID, error foundation.Error)
	SetPerRecordCompletionBlock(value func(record Record, recordID RecordID, error foundation.Error))
	FetchRecordsCompletionBlock() func(recordsByRecordID foundation.Dictionary, operationError foundation.Error)
	SetFetchRecordsCompletionBlock(value func(recordsByRecordID foundation.Dictionary, operationError foundation.Error))
	DesiredKeys() []RecordFieldKey
	SetDesiredKeys(value []RecordFieldKey)
	RecordIDs() []RecordID
	SetRecordIDs(value []IRecordID)
}

An interface definition for the FetchRecordsOperation class.

type IFetchShareMetadataOperation

type IFetchShareMetadataOperation interface {
	IOperation
	PerShareMetadataBlock() func(shareURL foundation.URL, shareMetadata ShareMetadata, error foundation.Error)
	SetPerShareMetadataBlock(value func(shareURL foundation.URL, shareMetadata ShareMetadata, error foundation.Error))
	RootRecordDesiredKeys() []RecordFieldKey
	SetRootRecordDesiredKeys(value []RecordFieldKey)
	FetchShareMetadataCompletionBlock() func(operationError foundation.Error)
	SetFetchShareMetadataCompletionBlock(value func(operationError foundation.Error))
	ShouldFetchRootRecord() bool
	SetShouldFetchRootRecord(value bool)
	ShareURLs() []foundation.URL
	SetShareURLs(value []foundation.IURL)
}

An interface definition for the FetchShareMetadataOperation class.

type IFetchShareParticipantsOperation

type IFetchShareParticipantsOperation interface {
	IOperation
	FetchShareParticipantsCompletionBlock() func(operationError foundation.Error)
	SetFetchShareParticipantsCompletionBlock(value func(operationError foundation.Error))
	PerShareParticipantCompletionBlock() func(lookupInfo UserIdentityLookupInfo, participant ShareParticipant, error foundation.Error)
	SetPerShareParticipantCompletionBlock(value func(lookupInfo UserIdentityLookupInfo, participant ShareParticipant, error foundation.Error))
	UserIdentityLookupInfos() []UserIdentityLookupInfo
	SetUserIdentityLookupInfos(value []IUserIdentityLookupInfo)
}

An interface definition for the FetchShareParticipantsOperation class.

type IFetchSubscriptionsOperation

type IFetchSubscriptionsOperation interface {
	IDatabaseOperation
	PerSubscriptionCompletionBlock() func(subscriptionID SubscriptionID, subscription Subscription, error foundation.Error)
	SetPerSubscriptionCompletionBlock(value func(subscriptionID SubscriptionID, subscription Subscription, error foundation.Error))
	SubscriptionIDs() []SubscriptionID
	SetSubscriptionIDs(value []SubscriptionID)
	FetchSubscriptionCompletionBlock() func(subscriptionsBySubscriptionID map[SubscriptionID]Subscription, operationError foundation.Error)
	SetFetchSubscriptionCompletionBlock(value func(subscriptionsBySubscriptionID map[SubscriptionID]Subscription, operationError foundation.Error))
}

An interface definition for the FetchSubscriptionsOperation class.

type IFetchWebAuthTokenOperation

type IFetchWebAuthTokenOperation interface {
	IDatabaseOperation
	APIToken() string
	SetAPIToken(value string)
	FetchWebAuthTokenCompletionBlock() func(webAuthToken string, operationError foundation.Error)
	SetFetchWebAuthTokenCompletionBlock(value func(webAuthToken string, operationError foundation.Error))
}

An interface definition for the FetchWebAuthTokenOperation class.

type ILocationSortDescriptor

type ILocationSortDescriptor interface {
	foundation.ISortDescriptor
	RelativeLocation() objc.Object
}

An interface definition for the LocationSortDescriptor class.

type IMarkNotificationsReadOperation

type IMarkNotificationsReadOperation interface {
	IOperation
}

An interface definition for the MarkNotificationsReadOperation class.

type IModifyBadgeOperation

type IModifyBadgeOperation interface {
	IOperation
}

An interface definition for the ModifyBadgeOperation class.

type IModifyRecordZonesOperation

type IModifyRecordZonesOperation interface {
	IDatabaseOperation
	ModifyRecordZonesCompletionBlock() func(savedRecordZones []RecordZone, deletedRecordZoneIDs []RecordZoneID, operationError foundation.Error)
	SetModifyRecordZonesCompletionBlock(value func(savedRecordZones []RecordZone, deletedRecordZoneIDs []RecordZoneID, operationError foundation.Error))
	RecordZonesToSave() []RecordZone
	SetRecordZonesToSave(value []IRecordZone)
	PerRecordZoneDeleteBlock() func(recordZoneID RecordZoneID, error foundation.Error)
	SetPerRecordZoneDeleteBlock(value func(recordZoneID RecordZoneID, error foundation.Error))
	PerRecordZoneSaveBlock() func(recordZoneID RecordZoneID, recordZone RecordZone, error foundation.Error)
	SetPerRecordZoneSaveBlock(value func(recordZoneID RecordZoneID, recordZone RecordZone, error foundation.Error))
	RecordZoneIDsToDelete() []RecordZoneID
	SetRecordZoneIDsToDelete(value []IRecordZoneID)
}

An interface definition for the ModifyRecordZonesOperation class.

type IModifyRecordsOperation

type IModifyRecordsOperation interface {
	IDatabaseOperation
	ClientChangeTokenData() []byte
	SetClientChangeTokenData(value []byte)
	PerRecordDeleteBlock() func(recordID RecordID, error foundation.Error)
	SetPerRecordDeleteBlock(value func(recordID RecordID, error foundation.Error))
	RecordIDsToDelete() []RecordID
	SetRecordIDsToDelete(value []IRecordID)
	SavePolicy() RecordSavePolicy
	SetSavePolicy(value RecordSavePolicy)
	RecordsToSave() []Record
	SetRecordsToSave(value []IRecord)
	PerRecordSaveBlock() func(recordID RecordID, record Record, error foundation.Error)
	SetPerRecordSaveBlock(value func(recordID RecordID, record Record, error foundation.Error))
	PerRecordProgressBlock() func(record Record, progress float64)
	SetPerRecordProgressBlock(value func(record Record, progress float64))
	ModifyRecordsCompletionBlock() func(savedRecords []Record, deletedRecordIDs []RecordID, operationError foundation.Error)
	SetModifyRecordsCompletionBlock(value func(savedRecords []Record, deletedRecordIDs []RecordID, operationError foundation.Error))
	Atomic() bool
	SetAtomic(value bool)
}

An interface definition for the ModifyRecordsOperation class.

type IModifySubscriptionsOperation

type IModifySubscriptionsOperation interface {
	IDatabaseOperation
	ModifySubscriptionsCompletionBlock() func(savedSubscriptions []Subscription, deletedSubscriptionIDs []SubscriptionID, operationError foundation.Error)
	SetModifySubscriptionsCompletionBlock(value func(savedSubscriptions []Subscription, deletedSubscriptionIDs []SubscriptionID, operationError foundation.Error))
	SubscriptionsToSave() []Subscription
	SetSubscriptionsToSave(value []ISubscription)
	SubscriptionIDsToDelete() []SubscriptionID
	SetSubscriptionIDsToDelete(value []SubscriptionID)
	PerSubscriptionSaveBlock() func(subscriptionID SubscriptionID, subscription Subscription, error foundation.Error)
	SetPerSubscriptionSaveBlock(value func(subscriptionID SubscriptionID, subscription Subscription, error foundation.Error))
	PerSubscriptionDeleteBlock() func(subscriptionID SubscriptionID, error foundation.Error)
	SetPerSubscriptionDeleteBlock(value func(subscriptionID SubscriptionID, error foundation.Error))
}

An interface definition for the ModifySubscriptionsOperation class.

type INotification

type INotification interface {
	objc.IObject
	ContainerIdentifier() string
	SubscriptionID() SubscriptionID
	NotificationType() NotificationType
	NotificationID() NotificationID
	SubscriptionOwnerUserRecordID() RecordID
	IsPruned() bool
}

An interface definition for the Notification class.

type INotificationID

type INotificationID interface {
	objc.IObject
}

An interface definition for the NotificationID class.

type INotificationInfo

type INotificationInfo interface {
	objc.IObject
	ShouldBadge() bool
	SetShouldBadge(value bool)
	Category() string
	SetCategory(value string)
	DesiredKeys() []RecordFieldKey
	SetDesiredKeys(value []RecordFieldKey)
	AlertLaunchImage() string
	SetAlertLaunchImage(value string)
	Subtitle() string
	SetSubtitle(value string)
	ShouldSendMutableContent() bool
	SetShouldSendMutableContent(value bool)
	SoundName() string
	SetSoundName(value string)
	SubtitleLocalizationKey() string
	SetSubtitleLocalizationKey(value string)
	AlertLocalizationKey() string
	SetAlertLocalizationKey(value string)
	AlertLocalizationArgs() []RecordFieldKey
	SetAlertLocalizationArgs(value []RecordFieldKey)
	AlertActionLocalizationKey() string
	SetAlertActionLocalizationKey(value string)
	ShouldSendContentAvailable() bool
	SetShouldSendContentAvailable(value bool)
	SubtitleLocalizationArgs() []RecordFieldKey
	SetSubtitleLocalizationArgs(value []RecordFieldKey)
	TitleLocalizationKey() string
	SetTitleLocalizationKey(value string)
	CollapseIDKey() string
	SetCollapseIDKey(value string)
	TitleLocalizationArgs() []RecordFieldKey
	SetTitleLocalizationArgs(value []RecordFieldKey)
	Title() string
	SetTitle(value string)
	AlertBody() string
	SetAlertBody(value string)
}

An interface definition for the NotificationInfo class.

type IOperation

type IOperation interface {
	foundation.IOperation
	LongLivedOperationWasPersistedBlock() func()
	SetLongLivedOperationWasPersistedBlock(value func())
	OperationID() OperationID
	Group() OperationGroup
	SetGroup(value IOperationGroup)
	Configuration() OperationConfiguration
	SetConfiguration(value IOperationConfiguration)
}

An interface definition for the Operation class.

type IOperationConfiguration

type IOperationConfiguration interface {
	objc.IObject
	AllowsCellularAccess() bool
	SetAllowsCellularAccess(value bool)
	IsLongLived() bool
	SetLongLived(value bool)
	TimeoutIntervalForRequest() foundation.TimeInterval
	SetTimeoutIntervalForRequest(value foundation.TimeInterval)
	QualityOfService() foundation.QualityOfService
	SetQualityOfService(value foundation.QualityOfService)
	TimeoutIntervalForResource() foundation.TimeInterval
	SetTimeoutIntervalForResource(value foundation.TimeInterval)
	Container() Container
	SetContainer(value IContainer)
}

An interface definition for the OperationConfiguration class.

type IOperationGroup

type IOperationGroup interface {
	objc.IObject
	OperationGroupID() string
	Name() string
	SetName(value string)
	ExpectedSendSize() OperationGroupTransferSize
	SetExpectedSendSize(value OperationGroupTransferSize)
	ExpectedReceiveSize() OperationGroupTransferSize
	SetExpectedReceiveSize(value OperationGroupTransferSize)
	DefaultConfiguration() OperationConfiguration
	SetDefaultConfiguration(value IOperationConfiguration)
	Quantity() uint
	SetQuantity(value uint)
}

An interface definition for the OperationGroup class.

type IQuery

type IQuery interface {
	objc.IObject
	Predicate() foundation.Predicate
	RecordType() RecordType
	SortDescriptors() []foundation.SortDescriptor
	SetSortDescriptors(value []foundation.ISortDescriptor)
}

An interface definition for the Query class.

type IQueryCursor

type IQueryCursor interface {
	objc.IObject
}

An interface definition for the QueryCursor class.

type IQueryNotification

type IQueryNotification interface {
	INotification
	RecordID() RecordID
	RecordFields() map[string]objc.Object
	QueryNotificationReason() QueryNotificationReason
	DatabaseScope() DatabaseScope
}

An interface definition for the QueryNotification class.

type IQueryOperation

type IQueryOperation interface {
	IDatabaseOperation
	Cursor() QueryCursor
	SetCursor(value IQueryCursor)
	QueryCompletionBlock() func(cursor QueryCursor, operationError foundation.Error)
	SetQueryCompletionBlock(value func(cursor QueryCursor, operationError foundation.Error))
	RecordMatchedBlock() func(recordID RecordID, record Record, error foundation.Error)
	SetRecordMatchedBlock(value func(recordID RecordID, record Record, error foundation.Error))
	Query() Query
	SetQuery(value IQuery)
	ResultsLimit() uint
	SetResultsLimit(value uint)
	DesiredKeys() []RecordFieldKey
	SetDesiredKeys(value []RecordFieldKey)
	ZoneID() RecordZoneID
	SetZoneID(value IRecordZoneID)
}

An interface definition for the QueryOperation class.

type IQuerySubscription

type IQuerySubscription interface {
	ISubscription
	Predicate() foundation.Predicate
	QuerySubscriptionOptions() QuerySubscriptionOptions
	ZoneID() RecordZoneID
	SetZoneID(value IRecordZoneID)
	RecordType() RecordType
}

An interface definition for the QuerySubscription class.

type IRecord

type IRecord interface {
	objc.IObject
	EncodeSystemFieldsWithCoder(coder foundation.ICoder)
	SetParentReferenceFromRecordID(parentRecordID IRecordID)
	ChangedKeys() []RecordFieldKey
	AllTokens() []string
	SetParentReferenceFromRecord(parentRecord IRecord)
	ObjectForKey(key RecordFieldKey) RecordValueObject
	SetObjectForKeyedSubscript(object PRecordValue, key RecordFieldKey)
	SetObjectObjectForKeyedSubscript(objectObject objc.IObject, key RecordFieldKey)
	AllKeys() []RecordFieldKey
	ObjectForKeyedSubscript(key RecordFieldKey) RecordValueObject
	SetObjectForKey(object PRecordValue, key RecordFieldKey)
	SetObjectObjectForKey(objectObject objc.IObject, key RecordFieldKey)
	CreatorUserRecordID() RecordID
	ModificationDate() foundation.Date
	RecordChangeTag() string
	CreationDate() foundation.Date
	LastModifiedUserRecordID() RecordID
	EncryptedValues() RecordKeyValueSettingObject
	Share() Reference
	Parent() Reference
	SetParent(value IReference)
	RecordType() RecordType
	RecordID() RecordID
}

An interface definition for the Record class.

type IRecordID

type IRecordID interface {
	objc.IObject
	RecordName() string
	ZoneID() RecordZoneID
}

An interface definition for the RecordID class.

type IRecordZone

type IRecordZone interface {
	objc.IObject
	Capabilities() RecordZoneCapabilities
	Share() Reference
	ZoneID() RecordZoneID
}

An interface definition for the RecordZone class.

type IRecordZoneID

type IRecordZoneID interface {
	objc.IObject
	ZoneName() string
	OwnerName() string
}

An interface definition for the RecordZoneID class.

type IRecordZoneNotification

type IRecordZoneNotification interface {
	INotification
	DatabaseScope() DatabaseScope
	RecordZoneID() RecordZoneID
}

An interface definition for the RecordZoneNotification class.

type IRecordZoneSubscription

type IRecordZoneSubscription interface {
	ISubscription
	RecordType() RecordType
	SetRecordType(value RecordType)
	ZoneID() RecordZoneID
}

An interface definition for the RecordZoneSubscription class.

type IReference

type IReference interface {
	objc.IObject
	ReferenceAction() ReferenceAction
	RecordID() RecordID
}

An interface definition for the Reference class.

type IServerChangeToken

type IServerChangeToken interface {
	objc.IObject
}

An interface definition for the ServerChangeToken class.

type IShare

type IShare interface {
	IRecord
	RemoveParticipant(participant IShareParticipant)
	AddParticipant(participant IShareParticipant)
	CurrentUserParticipant() ShareParticipant
	Participants() []ShareParticipant
	PublicPermission() ShareParticipantPermission
	SetPublicPermission(value ShareParticipantPermission)
	URL() foundation.URL
	Owner() ShareParticipant
}

An interface definition for the Share class.

type IShareMetadata

type IShareMetadata interface {
	objc.IObject
	RootRecord() Record
	ContainerIdentifier() string
	HierarchicalRootRecordID() RecordID
	ParticipantPermission() ShareParticipantPermission
	ParticipantStatus() ShareParticipantAcceptanceStatus
	ParticipantRole() ShareParticipantRole
	Share() Share
	OwnerIdentity() UserIdentity
}

An interface definition for the ShareMetadata class.

type IShareParticipant

type IShareParticipant interface {
	objc.IObject
	Role() ShareParticipantRole
	SetRole(value ShareParticipantRole)
	AcceptanceStatus() ShareParticipantAcceptanceStatus
	Permission() ShareParticipantPermission
	SetPermission(value ShareParticipantPermission)
	UserIdentity() UserIdentity
}

An interface definition for the ShareParticipant class.

type ISubscription

type ISubscription interface {
	objc.IObject
	NotificationInfo() NotificationInfo
	SetNotificationInfo(value INotificationInfo)
	SubscriptionType() SubscriptionType
	SubscriptionID() SubscriptionID
}

An interface definition for the Subscription class.

type IUserIdentity

type IUserIdentity interface {
	objc.IObject
	HasiCloudAccount() bool
	LookupInfo() UserIdentityLookupInfo
	NameComponents() foundation.PersonNameComponents
	ContactIdentifiers() []string
	UserRecordID() RecordID
}

An interface definition for the UserIdentity class.

type IUserIdentityLookupInfo

type IUserIdentityLookupInfo interface {
	objc.IObject
	EmailAddress() string
	PhoneNumber() string
	UserRecordID() RecordID
}

An interface definition for the UserIdentityLookupInfo class.

type LocationSortDescriptor

type LocationSortDescriptor struct {
	foundation.SortDescriptor
}

An object for sorting records that contain location data. Full Topic

func LocationSortDescriptorFrom

func LocationSortDescriptorFrom(ptr unsafe.Pointer) LocationSortDescriptor

func LocationSortDescriptor_SortDescriptorWithKeyAscending

func LocationSortDescriptor_SortDescriptorWithKeyAscending(key string, ascending bool) LocationSortDescriptor

Creates and returns a sort descriptor with the specified key path and ordering. Full Topic

func LocationSortDescriptor_SortDescriptorWithKeyAscendingComparator

func LocationSortDescriptor_SortDescriptorWithKeyAscendingComparator(key string, ascending bool, cmptr foundation.Comparator) LocationSortDescriptor

Creates and returns a sort descriptor initialized with the specified key path and ordering, and a comparator block. Full Topic

func LocationSortDescriptor_SortDescriptorWithKeyAscendingSelector

func LocationSortDescriptor_SortDescriptorWithKeyAscendingSelector(key string, ascending bool, selector objc.Selector) LocationSortDescriptor

Creates a sort descriptor with the specified key path, ordering, and comparison selector. Full Topic

func NewLocationSortDescriptor

func NewLocationSortDescriptor() LocationSortDescriptor

func NewLocationSortDescriptorWithKeyAscending

func NewLocationSortDescriptorWithKeyAscending(key string, ascending bool) LocationSortDescriptor

Creates a sort descriptor with a specified string key path and sort order. Full Topic

func NewLocationSortDescriptorWithKeyAscendingComparator

func NewLocationSortDescriptorWithKeyAscendingComparator(key string, ascending bool, cmptr foundation.Comparator) LocationSortDescriptor

Creates a sort descriptor with a specified string key path and ordering, and a comparator block. Full Topic

func NewLocationSortDescriptorWithKeyAscendingSelector

func NewLocationSortDescriptorWithKeyAscendingSelector(key string, ascending bool, selector objc.Selector) LocationSortDescriptor

Creates a sort descriptor with a specified string key path, ordering, and comparison selector. Full Topic

func NewLocationSortDescriptorWithKeyRelativeLocation

func NewLocationSortDescriptorWithKeyRelativeLocation(key string, relativeLocation objc.IObject) LocationSortDescriptor

Creates a location sort descriptor using the specified key and relative location. Full Topic

func (LocationSortDescriptor) Init

func (LocationSortDescriptor) InitWithKeyAscending

func (l_ LocationSortDescriptor) InitWithKeyAscending(key string, ascending bool) LocationSortDescriptor

func (LocationSortDescriptor) InitWithKeyAscendingComparator

func (l_ LocationSortDescriptor) InitWithKeyAscendingComparator(key string, ascending bool, cmptr foundation.Comparator) LocationSortDescriptor

func (LocationSortDescriptor) InitWithKeyAscendingSelector

func (l_ LocationSortDescriptor) InitWithKeyAscendingSelector(key string, ascending bool, selector objc.Selector) LocationSortDescriptor

func (LocationSortDescriptor) InitWithKeyRelativeLocation

func (l_ LocationSortDescriptor) InitWithKeyRelativeLocation(key string, relativeLocation objc.IObject) LocationSortDescriptor

func (LocationSortDescriptor) RelativeLocation

func (l_ LocationSortDescriptor) RelativeLocation() objc.Object

The reference location for sorting records. Full Topic

type MarkNotificationsReadOperation

type MarkNotificationsReadOperation struct {
	Operation
}

An operation that marks push notifications as read by your app. Full Topic

func MarkNotificationsReadOperationFrom

func MarkNotificationsReadOperationFrom(ptr unsafe.Pointer) MarkNotificationsReadOperation

func NewMarkNotificationsReadOperation

func NewMarkNotificationsReadOperation() MarkNotificationsReadOperation

func (MarkNotificationsReadOperation) Init

type ModifyBadgeOperation

type ModifyBadgeOperation struct {
	Operation
}

An operation that sets the value of the app icon’s badge. Full Topic

func ModifyBadgeOperationFrom

func ModifyBadgeOperationFrom(ptr unsafe.Pointer) ModifyBadgeOperation

func NewModifyBadgeOperation

func NewModifyBadgeOperation() ModifyBadgeOperation

func (ModifyBadgeOperation) Init

type ModifyRecordZonesOperation

type ModifyRecordZonesOperation struct {
	DatabaseOperation
}

An operation that modifies one or more record zones. Full Topic

func ModifyRecordZonesOperationFrom

func ModifyRecordZonesOperationFrom(ptr unsafe.Pointer) ModifyRecordZonesOperation

func NewModifyRecordZonesOperation

func NewModifyRecordZonesOperation() ModifyRecordZonesOperation

func NewModifyRecordZonesOperationWithRecordZonesToSaveRecordZoneIDsToDelete

func NewModifyRecordZonesOperationWithRecordZonesToSaveRecordZoneIDsToDelete(recordZonesToSave []IRecordZone, recordZoneIDsToDelete []IRecordZoneID) ModifyRecordZonesOperation

Creates an operation for modifying the specified record zones. Full Topic

func (ModifyRecordZonesOperation) Init

func (ModifyRecordZonesOperation) InitWithRecordZonesToSaveRecordZoneIDsToDelete

func (m_ ModifyRecordZonesOperation) InitWithRecordZonesToSaveRecordZoneIDsToDelete(recordZonesToSave []IRecordZone, recordZoneIDsToDelete []IRecordZoneID) ModifyRecordZonesOperation

func (ModifyRecordZonesOperation) ModifyRecordZonesCompletionBlock

func (m_ ModifyRecordZonesOperation) ModifyRecordZonesCompletionBlock() func(savedRecordZones []RecordZone, deletedRecordZoneIDs []RecordZoneID, operationError foundation.Error)

The block to execute after CloudKit modifies all of the record zones. Full Topic

func (ModifyRecordZonesOperation) PerRecordZoneDeleteBlock

func (m_ ModifyRecordZonesOperation) PerRecordZoneDeleteBlock() func(recordZoneID RecordZoneID, error foundation.Error)
[Full Topic]

func (ModifyRecordZonesOperation) PerRecordZoneSaveBlock

func (m_ ModifyRecordZonesOperation) PerRecordZoneSaveBlock() func(recordZoneID RecordZoneID, recordZone RecordZone, error foundation.Error)
[Full Topic]

func (ModifyRecordZonesOperation) RecordZoneIDsToDelete

func (m_ ModifyRecordZonesOperation) RecordZoneIDsToDelete() []RecordZoneID

The IDs of the record zones to delete permanently from the database. Full Topic

func (ModifyRecordZonesOperation) RecordZonesToSave

func (m_ ModifyRecordZonesOperation) RecordZonesToSave() []RecordZone

The record zones to save to the database. Full Topic

func (ModifyRecordZonesOperation) SetModifyRecordZonesCompletionBlock

func (m_ ModifyRecordZonesOperation) SetModifyRecordZonesCompletionBlock(value func(savedRecordZones []RecordZone, deletedRecordZoneIDs []RecordZoneID, operationError foundation.Error))

The block to execute after CloudKit modifies all of the record zones. Full Topic

func (ModifyRecordZonesOperation) SetPerRecordZoneDeleteBlock

func (m_ ModifyRecordZonesOperation) SetPerRecordZoneDeleteBlock(value func(recordZoneID RecordZoneID, error foundation.Error))
[Full Topic]

func (ModifyRecordZonesOperation) SetPerRecordZoneSaveBlock

func (m_ ModifyRecordZonesOperation) SetPerRecordZoneSaveBlock(value func(recordZoneID RecordZoneID, recordZone RecordZone, error foundation.Error))
[Full Topic]

func (ModifyRecordZonesOperation) SetRecordZoneIDsToDelete

func (m_ ModifyRecordZonesOperation) SetRecordZoneIDsToDelete(value []IRecordZoneID)

The IDs of the record zones to delete permanently from the database. Full Topic

func (ModifyRecordZonesOperation) SetRecordZonesToSave

func (m_ ModifyRecordZonesOperation) SetRecordZonesToSave(value []IRecordZone)

The record zones to save to the database. Full Topic

type ModifyRecordsOperation

type ModifyRecordsOperation struct {
	DatabaseOperation
}

An operation that modifies one or more records. Full Topic

func ModifyRecordsOperationFrom

func ModifyRecordsOperationFrom(ptr unsafe.Pointer) ModifyRecordsOperation

func NewModifyRecordsOperation

func NewModifyRecordsOperation() ModifyRecordsOperation

func NewModifyRecordsOperationWithRecordsToSaveRecordIDsToDelete

func NewModifyRecordsOperationWithRecordsToSaveRecordIDsToDelete(records []IRecord, recordIDs []IRecordID) ModifyRecordsOperation

Creates an operation for modifying the specified records. Full Topic

func (ModifyRecordsOperation) Atomic

func (m_ ModifyRecordsOperation) Atomic() bool

A Boolean value that indicates whether the entire operation fails when CloudKit can’t update one or more records in a record zone. Full Topic

func (ModifyRecordsOperation) ClientChangeTokenData

func (m_ ModifyRecordsOperation) ClientChangeTokenData() []byte

A token that tracks local changes to records. Full Topic

func (ModifyRecordsOperation) Init

func (ModifyRecordsOperation) InitWithRecordsToSaveRecordIDsToDelete

func (m_ ModifyRecordsOperation) InitWithRecordsToSaveRecordIDsToDelete(records []IRecord, recordIDs []IRecordID) ModifyRecordsOperation

func (ModifyRecordsOperation) ModifyRecordsCompletionBlock

func (m_ ModifyRecordsOperation) ModifyRecordsCompletionBlock() func(savedRecords []Record, deletedRecordIDs []RecordID, operationError foundation.Error)

The block to execute after CloudKit modifies all of the records. Full Topic

func (ModifyRecordsOperation) PerRecordDeleteBlock

func (m_ ModifyRecordsOperation) PerRecordDeleteBlock() func(recordID RecordID, error foundation.Error)
[Full Topic]

func (ModifyRecordsOperation) PerRecordProgressBlock

func (m_ ModifyRecordsOperation) PerRecordProgressBlock() func(record Record, progress float64)

The block to execute with progress information for individual records. Full Topic

func (ModifyRecordsOperation) PerRecordSaveBlock

func (m_ ModifyRecordsOperation) PerRecordSaveBlock() func(recordID RecordID, record Record, error foundation.Error)
[Full Topic]

func (ModifyRecordsOperation) RecordIDsToDelete

func (m_ ModifyRecordsOperation) RecordIDsToDelete() []RecordID

The IDs of the records to delete permanently from the database. Full Topic

func (ModifyRecordsOperation) RecordsToSave

func (m_ ModifyRecordsOperation) RecordsToSave() []Record

The records to save to the database. Full Topic

func (ModifyRecordsOperation) SavePolicy

func (m_ ModifyRecordsOperation) SavePolicy() RecordSavePolicy

The policy to use when saving changes to records. Full Topic

func (ModifyRecordsOperation) SetAtomic

func (m_ ModifyRecordsOperation) SetAtomic(value bool)

A Boolean value that indicates whether the entire operation fails when CloudKit can’t update one or more records in a record zone. Full Topic

func (ModifyRecordsOperation) SetClientChangeTokenData

func (m_ ModifyRecordsOperation) SetClientChangeTokenData(value []byte)

A token that tracks local changes to records. Full Topic

func (ModifyRecordsOperation) SetModifyRecordsCompletionBlock

func (m_ ModifyRecordsOperation) SetModifyRecordsCompletionBlock(value func(savedRecords []Record, deletedRecordIDs []RecordID, operationError foundation.Error))

The block to execute after CloudKit modifies all of the records. Full Topic

func (ModifyRecordsOperation) SetPerRecordDeleteBlock

func (m_ ModifyRecordsOperation) SetPerRecordDeleteBlock(value func(recordID RecordID, error foundation.Error))
[Full Topic]

func (ModifyRecordsOperation) SetPerRecordProgressBlock

func (m_ ModifyRecordsOperation) SetPerRecordProgressBlock(value func(record Record, progress float64))

The block to execute with progress information for individual records. Full Topic

func (ModifyRecordsOperation) SetPerRecordSaveBlock

func (m_ ModifyRecordsOperation) SetPerRecordSaveBlock(value func(recordID RecordID, record Record, error foundation.Error))
[Full Topic]

func (ModifyRecordsOperation) SetRecordIDsToDelete

func (m_ ModifyRecordsOperation) SetRecordIDsToDelete(value []IRecordID)

The IDs of the records to delete permanently from the database. Full Topic

func (ModifyRecordsOperation) SetRecordsToSave

func (m_ ModifyRecordsOperation) SetRecordsToSave(value []IRecord)

The records to save to the database. Full Topic

func (ModifyRecordsOperation) SetSavePolicy

func (m_ ModifyRecordsOperation) SetSavePolicy(value RecordSavePolicy)

The policy to use when saving changes to records. Full Topic

type ModifySubscriptionsOperation

type ModifySubscriptionsOperation struct {
	DatabaseOperation
}

An operation for modifying one or more subscriptions. Full Topic

func ModifySubscriptionsOperationFrom

func ModifySubscriptionsOperationFrom(ptr unsafe.Pointer) ModifySubscriptionsOperation

func NewModifySubscriptionsOperation

func NewModifySubscriptionsOperation() ModifySubscriptionsOperation

func NewModifySubscriptionsOperationWithSubscriptionsToSaveSubscriptionIDsToDelete

func NewModifySubscriptionsOperationWithSubscriptionsToSaveSubscriptionIDsToDelete(subscriptionsToSave []ISubscription, subscriptionIDsToDelete []SubscriptionID) ModifySubscriptionsOperation

Creates an operation for saving and deleting the specified subscriptions. Full Topic

func (ModifySubscriptionsOperation) Init

func (ModifySubscriptionsOperation) InitWithSubscriptionsToSaveSubscriptionIDsToDelete

func (m_ ModifySubscriptionsOperation) InitWithSubscriptionsToSaveSubscriptionIDsToDelete(subscriptionsToSave []ISubscription, subscriptionIDsToDelete []SubscriptionID) ModifySubscriptionsOperation

func (ModifySubscriptionsOperation) ModifySubscriptionsCompletionBlock

func (m_ ModifySubscriptionsOperation) ModifySubscriptionsCompletionBlock() func(savedSubscriptions []Subscription, deletedSubscriptionIDs []SubscriptionID, operationError foundation.Error)

The block to execute after the operation modifies the subscriptions. Full Topic

func (ModifySubscriptionsOperation) PerSubscriptionDeleteBlock

func (m_ ModifySubscriptionsOperation) PerSubscriptionDeleteBlock() func(subscriptionID SubscriptionID, error foundation.Error)
[Full Topic]

func (ModifySubscriptionsOperation) PerSubscriptionSaveBlock

func (m_ ModifySubscriptionsOperation) PerSubscriptionSaveBlock() func(subscriptionID SubscriptionID, subscription Subscription, error foundation.Error)
[Full Topic]

func (ModifySubscriptionsOperation) SetModifySubscriptionsCompletionBlock

func (m_ ModifySubscriptionsOperation) SetModifySubscriptionsCompletionBlock(value func(savedSubscriptions []Subscription, deletedSubscriptionIDs []SubscriptionID, operationError foundation.Error))

The block to execute after the operation modifies the subscriptions. Full Topic

func (ModifySubscriptionsOperation) SetPerSubscriptionDeleteBlock

func (m_ ModifySubscriptionsOperation) SetPerSubscriptionDeleteBlock(value func(subscriptionID SubscriptionID, error foundation.Error))
[Full Topic]

func (ModifySubscriptionsOperation) SetPerSubscriptionSaveBlock

func (m_ ModifySubscriptionsOperation) SetPerSubscriptionSaveBlock(value func(subscriptionID SubscriptionID, subscription Subscription, error foundation.Error))
[Full Topic]

func (ModifySubscriptionsOperation) SetSubscriptionIDsToDelete

func (m_ ModifySubscriptionsOperation) SetSubscriptionIDsToDelete(value []SubscriptionID)

The IDs of the subscriptions that you want to delete. Full Topic

func (ModifySubscriptionsOperation) SetSubscriptionsToSave

func (m_ ModifySubscriptionsOperation) SetSubscriptionsToSave(value []ISubscription)

The subscriptions to save to the database. Full Topic

func (ModifySubscriptionsOperation) SubscriptionIDsToDelete

func (m_ ModifySubscriptionsOperation) SubscriptionIDsToDelete() []SubscriptionID

The IDs of the subscriptions that you want to delete. Full Topic

func (ModifySubscriptionsOperation) SubscriptionsToSave

func (m_ ModifySubscriptionsOperation) SubscriptionsToSave() []Subscription

The subscriptions to save to the database. Full Topic

type Notification

type Notification struct {
	objc.Object
}

The abstract base class for CloudKit notifications. Full Topic

func NewNotification

func NewNotification() Notification

func NotificationFrom

func NotificationFrom(ptr unsafe.Pointer) Notification

func Notification_NotificationFromRemoteNotificationDictionary

func Notification_NotificationFromRemoteNotificationDictionary(notificationDictionary foundation.Dictionary) Notification

Creates a new notification using the specified payload data. Full Topic

func (Notification) ContainerIdentifier

func (n_ Notification) ContainerIdentifier() string

The ID of the container with the content that triggers the notification. Full Topic

func (Notification) Init

func (n_ Notification) Init() Notification

func (Notification) IsPruned

func (n_ Notification) IsPruned() bool

A Boolean value that indicates whether the system removes some push notification content before delivery. Full Topic

func (Notification) NotificationID

func (n_ Notification) NotificationID() NotificationID

The notification’s ID. Full Topic

func (Notification) NotificationType

func (n_ Notification) NotificationType() NotificationType

The type of event that generates the notification. Full Topic

func (Notification) SubscriptionID

func (n_ Notification) SubscriptionID() SubscriptionID

The ID of the subscription that triggers the notification. Full Topic

func (Notification) SubscriptionOwnerUserRecordID

func (n_ Notification) SubscriptionOwnerUserRecordID() RecordID

The ID of the user record that creates the subscription that generates the push notification. Full Topic

type NotificationID

type NotificationID struct {
	objc.Object
}

An object that uniquely identifies a push notification that a container sends. Full Topic

func NewNotificationID

func NewNotificationID() NotificationID

func NotificationIDFrom

func NotificationIDFrom(ptr unsafe.Pointer) NotificationID

func (NotificationID) Init

func (n_ NotificationID) Init() NotificationID

type NotificationInfo

type NotificationInfo struct {
	objc.Object
}

An object that describes the configuration of a subscription’s push notifications. Full Topic

func NewNotificationInfo

func NewNotificationInfo() NotificationInfo

func NotificationInfoFrom

func NotificationInfoFrom(ptr unsafe.Pointer) NotificationInfo

func (NotificationInfo) AlertActionLocalizationKey

func (n_ NotificationInfo) AlertActionLocalizationKey() string

The key that identifies the localized string for the notification’s action. Full Topic

func (NotificationInfo) AlertBody

func (n_ NotificationInfo) AlertBody() string

The text for the notification’s alert. Full Topic

func (NotificationInfo) AlertLaunchImage

func (n_ NotificationInfo) AlertLaunchImage() string

The filename of an image to use as a launch image. Full Topic

func (NotificationInfo) AlertLocalizationArgs

func (n_ NotificationInfo) AlertLocalizationArgs() []RecordFieldKey

The fields for building a notification’s alert. Full Topic

func (NotificationInfo) AlertLocalizationKey

func (n_ NotificationInfo) AlertLocalizationKey() string

The key that identifies the localized string for the notification’s alert. Full Topic

func (NotificationInfo) Category

func (n_ NotificationInfo) Category() string

The name of the action group that corresponds to this notification. Full Topic

func (NotificationInfo) CollapseIDKey

func (n_ NotificationInfo) CollapseIDKey() string

A value that the system uses to coalesce unseen push notifications. Full Topic

func (NotificationInfo) DesiredKeys

func (n_ NotificationInfo) DesiredKeys() []RecordFieldKey

The names of fields to include in the push notification’s payload. Full Topic

func (NotificationInfo) Init

func (NotificationInfo) SetAlertActionLocalizationKey

func (n_ NotificationInfo) SetAlertActionLocalizationKey(value string)

The key that identifies the localized string for the notification’s action. Full Topic

func (NotificationInfo) SetAlertBody

func (n_ NotificationInfo) SetAlertBody(value string)

The text for the notification’s alert. Full Topic

func (NotificationInfo) SetAlertLaunchImage

func (n_ NotificationInfo) SetAlertLaunchImage(value string)

The filename of an image to use as a launch image. Full Topic

func (NotificationInfo) SetAlertLocalizationArgs

func (n_ NotificationInfo) SetAlertLocalizationArgs(value []RecordFieldKey)

The fields for building a notification’s alert. Full Topic

func (NotificationInfo) SetAlertLocalizationKey

func (n_ NotificationInfo) SetAlertLocalizationKey(value string)

The key that identifies the localized string for the notification’s alert. Full Topic

func (NotificationInfo) SetCategory

func (n_ NotificationInfo) SetCategory(value string)

The name of the action group that corresponds to this notification. Full Topic

func (NotificationInfo) SetCollapseIDKey

func (n_ NotificationInfo) SetCollapseIDKey(value string)

A value that the system uses to coalesce unseen push notifications. Full Topic

func (NotificationInfo) SetDesiredKeys

func (n_ NotificationInfo) SetDesiredKeys(value []RecordFieldKey)

The names of fields to include in the push notification’s payload. Full Topic

func (NotificationInfo) SetShouldBadge

func (n_ NotificationInfo) SetShouldBadge(value bool)

A Boolean value that determines whether an app’s icon badge increments its value. Full Topic

func (NotificationInfo) SetShouldSendContentAvailable

func (n_ NotificationInfo) SetShouldSendContentAvailable(value bool)

A Boolean value that indicates whether the push notification includes the content available flag. Full Topic

func (NotificationInfo) SetShouldSendMutableContent

func (n_ NotificationInfo) SetShouldSendMutableContent(value bool)

A Boolean value that indicates whether the push notification sets the mutable content flag. Full Topic

func (NotificationInfo) SetSoundName

func (n_ NotificationInfo) SetSoundName(value string)

The filename of the sound file to play when a notification arrives. Full Topic

func (NotificationInfo) SetSubtitle

func (n_ NotificationInfo) SetSubtitle(value string)

The notification’s subtitle. Full Topic

func (NotificationInfo) SetSubtitleLocalizationArgs

func (n_ NotificationInfo) SetSubtitleLocalizationArgs(value []RecordFieldKey)

The fields for building a notification’s subtitle. Full Topic

func (NotificationInfo) SetSubtitleLocalizationKey

func (n_ NotificationInfo) SetSubtitleLocalizationKey(value string)

The key that identifies the localized string for the notification’s subtitle. Full Topic

func (NotificationInfo) SetTitle

func (n_ NotificationInfo) SetTitle(value string)

The notification’s title. Full Topic

func (NotificationInfo) SetTitleLocalizationArgs

func (n_ NotificationInfo) SetTitleLocalizationArgs(value []RecordFieldKey)

The fields for building a notification’s title. Full Topic

func (NotificationInfo) SetTitleLocalizationKey

func (n_ NotificationInfo) SetTitleLocalizationKey(value string)

The key that identifies the localized string for the notification’s title. Full Topic

func (NotificationInfo) ShouldBadge

func (n_ NotificationInfo) ShouldBadge() bool

A Boolean value that determines whether an app’s icon badge increments its value. Full Topic

func (NotificationInfo) ShouldSendContentAvailable

func (n_ NotificationInfo) ShouldSendContentAvailable() bool

A Boolean value that indicates whether the push notification includes the content available flag. Full Topic

func (NotificationInfo) ShouldSendMutableContent

func (n_ NotificationInfo) ShouldSendMutableContent() bool

A Boolean value that indicates whether the push notification sets the mutable content flag. Full Topic

func (NotificationInfo) SoundName

func (n_ NotificationInfo) SoundName() string

The filename of the sound file to play when a notification arrives. Full Topic

func (NotificationInfo) Subtitle

func (n_ NotificationInfo) Subtitle() string

The notification’s subtitle. Full Topic

func (NotificationInfo) SubtitleLocalizationArgs

func (n_ NotificationInfo) SubtitleLocalizationArgs() []RecordFieldKey

The fields for building a notification’s subtitle. Full Topic

func (NotificationInfo) SubtitleLocalizationKey

func (n_ NotificationInfo) SubtitleLocalizationKey() string

The key that identifies the localized string for the notification’s subtitle. Full Topic

func (NotificationInfo) Title

func (n_ NotificationInfo) Title() string

The notification’s title. Full Topic

func (NotificationInfo) TitleLocalizationArgs

func (n_ NotificationInfo) TitleLocalizationArgs() []RecordFieldKey

The fields for building a notification’s title. Full Topic

func (NotificationInfo) TitleLocalizationKey

func (n_ NotificationInfo) TitleLocalizationKey() string

The key that identifies the localized string for the notification’s title. Full Topic

type NotificationType

type NotificationType int

Constants that indicate the type of event that generates the push notification. Full Topic

const (
	NotificationTypeDatabase         NotificationType = 4
	NotificationTypeQuery            NotificationType = 1
	NotificationTypeReadNotification NotificationType = 3
	NotificationTypeRecordZone       NotificationType = 2
)

type Operation

type Operation struct {
	foundation.Operation
}

The abstract base class for all operations that execute in a database. Full Topic

func NewOperation

func NewOperation() Operation

func OperationFrom

func OperationFrom(ptr unsafe.Pointer) Operation

func (Operation) Configuration

func (o_ Operation) Configuration() OperationConfiguration

The operation’s configuration. Full Topic

func (Operation) Group

func (o_ Operation) Group() OperationGroup

The operation’s group. Full Topic

func (Operation) Init

func (o_ Operation) Init() Operation

func (Operation) LongLivedOperationWasPersistedBlock

func (o_ Operation) LongLivedOperationWasPersistedBlock() func()

The block to execute when the server begins to store callbacks for the long-lived operation. Full Topic

func (Operation) OperationID

func (o_ Operation) OperationID() OperationID

A unique identifier for a long-lived operation. Full Topic

func (Operation) SetConfiguration

func (o_ Operation) SetConfiguration(value IOperationConfiguration)

The operation’s configuration. Full Topic

func (Operation) SetGroup

func (o_ Operation) SetGroup(value IOperationGroup)

The operation’s group. Full Topic

func (Operation) SetLongLivedOperationWasPersistedBlock

func (o_ Operation) SetLongLivedOperationWasPersistedBlock(value func())

The block to execute when the server begins to store callbacks for the long-lived operation. Full Topic

type OperationConfiguration

type OperationConfiguration struct {
	objc.Object
}

An object that describes how a CloudKit operation behaves. Full Topic

func NewOperationConfiguration

func NewOperationConfiguration() OperationConfiguration

func OperationConfigurationFrom

func OperationConfigurationFrom(ptr unsafe.Pointer) OperationConfiguration

func (OperationConfiguration) AllowsCellularAccess

func (o_ OperationConfiguration) AllowsCellularAccess() bool

A Boolean value that indicates whether operations that use this configuration can send data over the cellular network. Full Topic

func (OperationConfiguration) Container

func (o_ OperationConfiguration) Container() Container

The configuration’s container. Full Topic

func (OperationConfiguration) Init

func (OperationConfiguration) IsLongLived

func (o_ OperationConfiguration) IsLongLived() bool

A Boolean value that indicates whether the operations that use this configuration are long-lived. Full Topic

func (OperationConfiguration) QualityOfService

func (o_ OperationConfiguration) QualityOfService() foundation.QualityOfService

The priority that the system uses when it allocates resources to the operations that use this configuration. Full Topic

func (OperationConfiguration) SetAllowsCellularAccess

func (o_ OperationConfiguration) SetAllowsCellularAccess(value bool)

A Boolean value that indicates whether operations that use this configuration can send data over the cellular network. Full Topic

func (OperationConfiguration) SetContainer

func (o_ OperationConfiguration) SetContainer(value IContainer)

The configuration’s container. Full Topic

func (OperationConfiguration) SetLongLived

func (o_ OperationConfiguration) SetLongLived(value bool)

A Boolean value that indicates whether the operations that use this configuration are long-lived. Full Topic

func (OperationConfiguration) SetQualityOfService

func (o_ OperationConfiguration) SetQualityOfService(value foundation.QualityOfService)

The priority that the system uses when it allocates resources to the operations that use this configuration. Full Topic

func (OperationConfiguration) SetTimeoutIntervalForRequest

func (o_ OperationConfiguration) SetTimeoutIntervalForRequest(value foundation.TimeInterval)

The maximum amount of time that a request can take. Full Topic

func (OperationConfiguration) SetTimeoutIntervalForResource

func (o_ OperationConfiguration) SetTimeoutIntervalForResource(value foundation.TimeInterval)

The maximum amount of time that a resource request can take. Full Topic

func (OperationConfiguration) TimeoutIntervalForRequest

func (o_ OperationConfiguration) TimeoutIntervalForRequest() foundation.TimeInterval

The maximum amount of time that a request can take. Full Topic

func (OperationConfiguration) TimeoutIntervalForResource

func (o_ OperationConfiguration) TimeoutIntervalForResource() foundation.TimeInterval

The maximum amount of time that a resource request can take. Full Topic

type OperationGroup

type OperationGroup struct {
	objc.Object
}

An explicit association between two or more operations. Full Topic

func NewOperationGroup

func NewOperationGroup() OperationGroup

func OperationGroupFrom

func OperationGroupFrom(ptr unsafe.Pointer) OperationGroup

func (OperationGroup) DefaultConfiguration

func (o_ OperationGroup) DefaultConfiguration() OperationConfiguration

The default configuration for operations in the group. Full Topic

func (OperationGroup) ExpectedReceiveSize

func (o_ OperationGroup) ExpectedReceiveSize() OperationGroupTransferSize

The estimated size of traffic to download from CloudKit. Full Topic

func (OperationGroup) ExpectedSendSize

func (o_ OperationGroup) ExpectedSendSize() OperationGroupTransferSize

The estimated size of traffic to upload to CloudKit. Full Topic

func (OperationGroup) Init

func (o_ OperationGroup) Init() OperationGroup

func (OperationGroup) Name

func (o_ OperationGroup) Name() string

The operation group’s name. Full Topic

func (OperationGroup) OperationGroupID

func (o_ OperationGroup) OperationGroupID() string

The operation group’s unique identifier. Full Topic

func (OperationGroup) Quantity

func (o_ OperationGroup) Quantity() uint

The number of operations in the operation group. Full Topic

func (OperationGroup) SetDefaultConfiguration

func (o_ OperationGroup) SetDefaultConfiguration(value IOperationConfiguration)

The default configuration for operations in the group. Full Topic

func (OperationGroup) SetExpectedReceiveSize

func (o_ OperationGroup) SetExpectedReceiveSize(value OperationGroupTransferSize)

The estimated size of traffic to download from CloudKit. Full Topic

func (OperationGroup) SetExpectedSendSize

func (o_ OperationGroup) SetExpectedSendSize(value OperationGroupTransferSize)

The estimated size of traffic to upload to CloudKit. Full Topic

func (OperationGroup) SetName

func (o_ OperationGroup) SetName(value string)

The operation group’s name. Full Topic

func (OperationGroup) SetQuantity

func (o_ OperationGroup) SetQuantity(value uint)

The number of operations in the operation group. Full Topic

type OperationGroupTransferSize

type OperationGroupTransferSize int

Constants that represent possible data transfer sizes. Full Topic

const (
	OperationGroupTransferSizeGigabytes           OperationGroupTransferSize = 5
	OperationGroupTransferSizeHundredsOfGigabytes OperationGroupTransferSize = 7
	OperationGroupTransferSizeHundredsOfMegabytes OperationGroupTransferSize = 4
	OperationGroupTransferSizeKilobytes           OperationGroupTransferSize = 1
	OperationGroupTransferSizeMegabytes           OperationGroupTransferSize = 2
	OperationGroupTransferSizeTensOfGigabytes     OperationGroupTransferSize = 6
	OperationGroupTransferSizeTensOfMegabytes     OperationGroupTransferSize = 3
	OperationGroupTransferSizeUnknown             OperationGroupTransferSize = 0
)

type OperationID

type OperationID string

A type that represents the ID of an operation. Full Topic

type PRecordKeyValueSetting

type PRecordKeyValueSetting interface {
	// optional
	AllKeys() []RecordFieldKey
	HasAllKeys() bool

	// optional
	ChangedKeys() []RecordFieldKey
	HasChangedKeys() bool

	// optional
	ObjectForKeyedSubscript(key RecordFieldKey) RecordValueObject
	HasObjectForKeyedSubscript() bool

	// optional
	SetObjectForKeyedSubscript(object RecordValueObject, key RecordFieldKey)
	HasSetObjectForKeyedSubscript() bool

	// optional
	SetObjectForKey(object RecordValueObject, key RecordFieldKey)
	HasSetObjectForKey() bool

	// optional
	ObjectForKey(key RecordFieldKey) RecordValueObject
	HasObjectForKey() bool
}

A protocol for managing the key-value pairs of a CloudKit record. Full Topic

type PRecordValue

type PRecordValue interface {
}

The protocol that provides strong type-checking for objects that the CloudKit framework stores on the server. Full Topic

type Query

type Query struct {
	objc.Object
}

A query that describes the criteria to apply when searching for records in a database. Full Topic

func NewQuery

func NewQuery() Query

func NewQueryWithRecordTypePredicate

func NewQueryWithRecordTypePredicate(recordType RecordType, predicate foundation.IPredicate) Query

Creates a query with the specified record type and predicate. Full Topic

func QueryFrom

func QueryFrom(ptr unsafe.Pointer) Query

func (Query) Init

func (q_ Query) Init() Query

func (Query) InitWithRecordTypePredicate

func (q_ Query) InitWithRecordTypePredicate(recordType RecordType, predicate foundation.IPredicate) Query

func (Query) Predicate

func (q_ Query) Predicate() foundation.Predicate

The predicate to use for matching records. Full Topic

func (Query) RecordType

func (q_ Query) RecordType() RecordType

The record type to search. Full Topic

func (Query) SetSortDescriptors

func (q_ Query) SetSortDescriptors(value []foundation.ISortDescriptor)

The sort descriptors for organizing the query’s results. Full Topic

func (Query) SortDescriptors

func (q_ Query) SortDescriptors() []foundation.SortDescriptor

The sort descriptors for organizing the query’s results. Full Topic

type QueryCursor

type QueryCursor struct {
	objc.Object
}

An object that marks the stopping point for a query and the starting point for retrieving the remaining results. Full Topic

func NewQueryCursor

func NewQueryCursor() QueryCursor

func QueryCursorFrom

func QueryCursorFrom(ptr unsafe.Pointer) QueryCursor

func (QueryCursor) Init

func (q_ QueryCursor) Init() QueryCursor

type QueryNotification

type QueryNotification struct {
	Notification
}

A notification that triggers when a record that matches the subscription’s predicate changes. Full Topic

func NewQueryNotification

func NewQueryNotification() QueryNotification

func QueryNotificationFrom

func QueryNotificationFrom(ptr unsafe.Pointer) QueryNotification

func QueryNotification_NotificationFromRemoteNotificationDictionary

func QueryNotification_NotificationFromRemoteNotificationDictionary(notificationDictionary foundation.Dictionary) QueryNotification

Creates a new notification using the specified payload data. Full Topic

func (QueryNotification) DatabaseScope

func (q_ QueryNotification) DatabaseScope() DatabaseScope

The type of database for the record zone. Full Topic

func (QueryNotification) Init

func (QueryNotification) QueryNotificationReason

func (q_ QueryNotification) QueryNotificationReason() QueryNotificationReason

The event that triggers the push notification. Full Topic

func (QueryNotification) RecordFields

func (q_ QueryNotification) RecordFields() map[string]objc.Object

A dictionary of fields that have changes. Full Topic

func (QueryNotification) RecordID

func (q_ QueryNotification) RecordID() RecordID

The ID of the record that CloudKit creates, updates, or deletes. Full Topic

type QueryNotificationReason

type QueryNotificationReason int

Constants that indicate the event that triggers the notification. Full Topic

const (
	QueryNotificationReasonRecordCreated QueryNotificationReason = 1
	QueryNotificationReasonRecordDeleted QueryNotificationReason = 3
	QueryNotificationReasonRecordUpdated QueryNotificationReason = 2
)

type QueryOperation

type QueryOperation struct {
	DatabaseOperation
}

An operation for executing queries in a database. Full Topic

func NewQueryOperation

func NewQueryOperation() QueryOperation

func NewQueryOperationWithCursor

func NewQueryOperationWithCursor(cursor IQueryCursor) QueryOperation

Creates an operation with additional results from a previous search. Full Topic

func NewQueryOperationWithQuery

func NewQueryOperationWithQuery(query IQuery) QueryOperation

Creates an operation that searches for records in the specified record zone. Full Topic

func QueryOperationFrom

func QueryOperationFrom(ptr unsafe.Pointer) QueryOperation

func (QueryOperation) Cursor

func (q_ QueryOperation) Cursor() QueryCursor

The cursor for continuing the search. Full Topic

func (QueryOperation) DesiredKeys

func (q_ QueryOperation) DesiredKeys() []RecordFieldKey

The fields of the records to fetch. Full Topic

func (QueryOperation) Init

func (q_ QueryOperation) Init() QueryOperation

func (QueryOperation) InitWithCursor

func (q_ QueryOperation) InitWithCursor(cursor IQueryCursor) QueryOperation

func (QueryOperation) InitWithQuery

func (q_ QueryOperation) InitWithQuery(query IQuery) QueryOperation

func (QueryOperation) Query

func (q_ QueryOperation) Query() Query

The query for the search. Full Topic

func (QueryOperation) QueryCompletionBlock

func (q_ QueryOperation) QueryCompletionBlock() func(cursor QueryCursor, operationError foundation.Error)

The block to execute after CloudKit retrieves all of the records. Full Topic

func (QueryOperation) RecordMatchedBlock

func (q_ QueryOperation) RecordMatchedBlock() func(recordID RecordID, record Record, error foundation.Error)
[Full Topic]

func (QueryOperation) ResultsLimit

func (q_ QueryOperation) ResultsLimit() uint

The maximum number of records to return at one time. Full Topic

func (QueryOperation) SetCursor

func (q_ QueryOperation) SetCursor(value IQueryCursor)

The cursor for continuing the search. Full Topic

func (QueryOperation) SetDesiredKeys

func (q_ QueryOperation) SetDesiredKeys(value []RecordFieldKey)

The fields of the records to fetch. Full Topic

func (QueryOperation) SetQuery

func (q_ QueryOperation) SetQuery(value IQuery)

The query for the search. Full Topic

func (QueryOperation) SetQueryCompletionBlock

func (q_ QueryOperation) SetQueryCompletionBlock(value func(cursor QueryCursor, operationError foundation.Error))

The block to execute after CloudKit retrieves all of the records. Full Topic

func (QueryOperation) SetRecordMatchedBlock

func (q_ QueryOperation) SetRecordMatchedBlock(value func(recordID RecordID, record Record, error foundation.Error))
[Full Topic]

func (QueryOperation) SetResultsLimit

func (q_ QueryOperation) SetResultsLimit(value uint)

The maximum number of records to return at one time. Full Topic

func (QueryOperation) SetZoneID

func (q_ QueryOperation) SetZoneID(value IRecordZoneID)

The ID of the record zone that contains the records to search. Full Topic

func (QueryOperation) ZoneID

func (q_ QueryOperation) ZoneID() RecordZoneID

The ID of the record zone that contains the records to search. Full Topic

type QuerySubscription

type QuerySubscription struct {
	Subscription
}

A subscription that generates push notifications when CloudKit modifies records that match a predicate. Full Topic

func NewQuerySubscription

func NewQuerySubscription() QuerySubscription

func NewQuerySubscriptionWithRecordTypePredicateSubscriptionIDOptions

func NewQuerySubscriptionWithRecordTypePredicateSubscriptionIDOptions(recordType RecordType, predicate foundation.IPredicate, subscriptionID SubscriptionID, querySubscriptionOptions QuerySubscriptionOptions) QuerySubscription

Creates a named query-based subscription that queries records of a specific type. Full Topic

func QuerySubscriptionFrom

func QuerySubscriptionFrom(ptr unsafe.Pointer) QuerySubscription

func (QuerySubscription) Init

func (QuerySubscription) InitWithRecordTypePredicateSubscriptionIDOptions

func (q_ QuerySubscription) InitWithRecordTypePredicateSubscriptionIDOptions(recordType RecordType, predicate foundation.IPredicate, subscriptionID SubscriptionID, querySubscriptionOptions QuerySubscriptionOptions) QuerySubscription

func (QuerySubscription) Predicate

func (q_ QuerySubscription) Predicate() foundation.Predicate

The matching criteria to apply to records. Full Topic

func (QuerySubscription) QuerySubscriptionOptions

func (q_ QuerySubscription) QuerySubscriptionOptions() QuerySubscriptionOptions

Options that define the behavior of the subscription. Full Topic

func (QuerySubscription) RecordType

func (q_ QuerySubscription) RecordType() RecordType

The type of record that the subscription queries. Full Topic

func (QuerySubscription) SetZoneID

func (q_ QuerySubscription) SetZoneID(value IRecordZoneID)

The ID of the record zone that the subscription queries. Full Topic

func (QuerySubscription) ZoneID

func (q_ QuerySubscription) ZoneID() RecordZoneID

The ID of the record zone that the subscription queries. Full Topic

type QuerySubscriptionOptions

type QuerySubscriptionOptions uint

Configuration options for a query subscription. Full Topic

const (
	QuerySubscriptionOptionsFiresOnRecordCreation QuerySubscriptionOptions = 1
	QuerySubscriptionOptionsFiresOnRecordDeletion QuerySubscriptionOptions = 4
	QuerySubscriptionOptionsFiresOnRecordUpdate   QuerySubscriptionOptions = 2
	QuerySubscriptionOptionsFiresOnce             QuerySubscriptionOptions = 8
)

type Record

type Record struct {
	objc.Object
}

A collection of key-value pairs that store your app’s data. Full Topic

func NewRecord

func NewRecord() Record

func NewRecordWithRecordType

func NewRecordWithRecordType(recordType RecordType) Record

Creates a new record of the specified type. Full Topic

func NewRecordWithRecordTypeRecordID

func NewRecordWithRecordTypeRecordID(recordType RecordType, recordID IRecordID) Record

Creates a record using an ID that you provide. Full Topic

func NewRecordWithRecordTypeZoneID

func NewRecordWithRecordTypeZoneID(recordType RecordType, zoneID IRecordZoneID) Record

Creates a record in the specified zone. Full Topic

func RecordFrom

func RecordFrom(ptr unsafe.Pointer) Record

func (Record) AllKeys

func (r_ Record) AllKeys() []RecordFieldKey

Returns an array of the record’s keys. Full Topic

func (Record) AllTokens

func (r_ Record) AllTokens() []string

Returns an array of strings to use for full-text searches of the field’s string-based values. Full Topic

func (Record) ChangedKeys

func (r_ Record) ChangedKeys() []RecordFieldKey

Returns an array of keys with recent changes to their values. Full Topic

func (Record) CreationDate

func (r_ Record) CreationDate() foundation.Date

The time when CloudKit first saves the record to the server. Full Topic

func (Record) CreatorUserRecordID

func (r_ Record) CreatorUserRecordID() RecordID

The ID of the user who creates the record. Full Topic

func (Record) EncodeSystemFieldsWithCoder

func (r_ Record) EncodeSystemFieldsWithCoder(coder foundation.ICoder)

Encodes the record’s system fields using the specified archiver. Full Topic

func (Record) EncryptedValues

func (r_ Record) EncryptedValues() RecordKeyValueSettingObject

An object that manages the record’s encrypted key-value pairs. Full Topic

func (Record) Init

func (r_ Record) Init() Record

func (Record) InitWithRecordType

func (r_ Record) InitWithRecordType(recordType RecordType) Record

func (Record) InitWithRecordTypeRecordID

func (r_ Record) InitWithRecordTypeRecordID(recordType RecordType, recordID IRecordID) Record

func (Record) InitWithRecordTypeZoneID

func (r_ Record) InitWithRecordTypeZoneID(recordType RecordType, zoneID IRecordZoneID) Record

func (Record) LastModifiedUserRecordID

func (r_ Record) LastModifiedUserRecordID() RecordID

The ID of the user who most recently modified the record. Full Topic

func (Record) ModificationDate

func (r_ Record) ModificationDate() foundation.Date

The most recent time that CloudKit saved the record to the server. Full Topic

func (Record) ObjectForKey

func (r_ Record) ObjectForKey(key RecordFieldKey) RecordValueObject

Returns the object that the record stores for the specified key. Full Topic

func (Record) ObjectForKeyedSubscript

func (r_ Record) ObjectForKeyedSubscript(key RecordFieldKey) RecordValueObject

Returns the object that the record stores for the specified key. Full Topic

func (Record) Parent

func (r_ Record) Parent() Reference

A reference to the record’s parent record. Full Topic

func (Record) RecordChangeTag

func (r_ Record) RecordChangeTag() string

The server change token for the record. Full Topic

func (Record) RecordID

func (r_ Record) RecordID() RecordID

The unique ID of the record. Full Topic

func (Record) RecordType

func (r_ Record) RecordType() RecordType

The value that your app defines to identify the type of record. Full Topic

func (Record) SetObjectForKey

func (r_ Record) SetObjectForKey(object PRecordValue, key RecordFieldKey)

Stores an object in the record using the specified key. Full Topic

func (Record) SetObjectForKeyedSubscript

func (r_ Record) SetObjectForKeyedSubscript(object PRecordValue, key RecordFieldKey)

Stores an object in the record using the specified key. Full Topic

func (Record) SetObjectObjectForKey

func (r_ Record) SetObjectObjectForKey(objectObject objc.IObject, key RecordFieldKey)

Stores an object in the record using the specified key. Full Topic

func (Record) SetObjectObjectForKeyedSubscript

func (r_ Record) SetObjectObjectForKeyedSubscript(objectObject objc.IObject, key RecordFieldKey)

Stores an object in the record using the specified key. Full Topic

func (Record) SetParent

func (r_ Record) SetParent(value IReference)

A reference to the record’s parent record. Full Topic

func (Record) SetParentReferenceFromRecord

func (r_ Record) SetParentReferenceFromRecord(parentRecord IRecord)

Creates and sets a reference object for a parent from its record. Full Topic

func (Record) SetParentReferenceFromRecordID

func (r_ Record) SetParentReferenceFromRecordID(parentRecordID IRecordID)

Creates and sets a reference object for a parent from the parent’s record ID. Full Topic

func (Record) Share

func (r_ Record) Share() Reference

A reference to the share object that determines the share status of the record. Full Topic

type RecordFieldKey

type RecordFieldKey string

A data type that CloudKit requires for record field names. Full Topic

const (
	RecordParentKey            RecordFieldKey = "___parent"
	RecordShareKey             RecordFieldKey = "___share"
	ShareThumbnailImageDataKey RecordFieldKey = "cloudkit.thumbnailImageData"
	ShareTitleKey              RecordFieldKey = "cloudkit.title"
	ShareTypeKey               RecordFieldKey = "cloudkit.type"
)

type RecordID

type RecordID struct {
	objc.Object
}

An object that uniquely identifies a record in a database. Full Topic

func NewRecordID

func NewRecordID() RecordID

func NewRecordIDWithRecordName

func NewRecordIDWithRecordName(recordName string) RecordID

Creates a new record ID with the specified name in the default zone. Full Topic

func NewRecordIDWithRecordNameZoneID

func NewRecordIDWithRecordNameZoneID(recordName string, zoneID IRecordZoneID) RecordID

Creates a new record ID with the specified name and zone information. Full Topic

func RecordIDFrom

func RecordIDFrom(ptr unsafe.Pointer) RecordID

func (RecordID) Init

func (r_ RecordID) Init() RecordID

func (RecordID) InitWithRecordName

func (r_ RecordID) InitWithRecordName(recordName string) RecordID

func (RecordID) InitWithRecordNameZoneID

func (r_ RecordID) InitWithRecordNameZoneID(recordName string, zoneID IRecordZoneID) RecordID

func (RecordID) RecordName

func (r_ RecordID) RecordName() string

The unique name of the record. Full Topic

func (RecordID) ZoneID

func (r_ RecordID) ZoneID() RecordZoneID

The ID of the zone that contains the record. Full Topic

type RecordKeyValueSettingObject

type RecordKeyValueSettingObject struct {
	objc.Object
}

A concrete type for the PRecordKeyValueSetting protocol.

func (RecordKeyValueSettingObject) AllKeys

Returns an array of the record’s keys. Full Topic

func (RecordKeyValueSettingObject) ChangedKeys

func (r_ RecordKeyValueSettingObject) ChangedKeys() []RecordFieldKey

Returns an array of keys with recent changes to their values. Full Topic

func (RecordKeyValueSettingObject) HasAllKeys

func (r_ RecordKeyValueSettingObject) HasAllKeys() bool

func (RecordKeyValueSettingObject) HasChangedKeys

func (r_ RecordKeyValueSettingObject) HasChangedKeys() bool

func (RecordKeyValueSettingObject) HasObjectForKey

func (r_ RecordKeyValueSettingObject) HasObjectForKey() bool

func (RecordKeyValueSettingObject) HasObjectForKeyedSubscript

func (r_ RecordKeyValueSettingObject) HasObjectForKeyedSubscript() bool

func (RecordKeyValueSettingObject) HasSetObjectForKey

func (r_ RecordKeyValueSettingObject) HasSetObjectForKey() bool

func (RecordKeyValueSettingObject) HasSetObjectForKeyedSubscript

func (r_ RecordKeyValueSettingObject) HasSetObjectForKeyedSubscript() bool

func (RecordKeyValueSettingObject) ObjectForKey

Returns the object that the record stores for the specified key. Full Topic

func (RecordKeyValueSettingObject) ObjectForKeyedSubscript

func (r_ RecordKeyValueSettingObject) ObjectForKeyedSubscript(key RecordFieldKey) RecordValueObject

Returns the object that the record stores for the specified key. Full Topic

func (RecordKeyValueSettingObject) SetObjectForKey

func (r_ RecordKeyValueSettingObject) SetObjectForKey(object RecordValueObject, key RecordFieldKey)

Stores an object in the record using the specified key. Full Topic

func (RecordKeyValueSettingObject) SetObjectForKeyedSubscript

func (r_ RecordKeyValueSettingObject) SetObjectForKeyedSubscript(object RecordValueObject, key RecordFieldKey)

Stores an object in the record using the specified key. Full Topic

type RecordSavePolicy

type RecordSavePolicy int

Constants that indicate which policy to apply when saving records. Full Topic

const (
	RecordSaveAllKeys                 RecordSavePolicy = 2
	RecordSaveChangedKeys             RecordSavePolicy = 1
	RecordSaveIfServerRecordUnchanged RecordSavePolicy = 0
)

type RecordType

type RecordType string

A data type that CloudKit requires for record types. Full Topic

const (
	RecordTypeShare      RecordType = "cloudkit.share"
	RecordTypeUserRecord RecordType = "Users"
)

type RecordValueObject

type RecordValueObject struct {
	objc.Object
}

A concrete type for the PRecordValue protocol.

type RecordZone

type RecordZone struct {
	objc.Object
}

A database partition that contains related records. Full Topic

func NewRecordZone

func NewRecordZone() RecordZone

func NewRecordZoneWithZoneID

func NewRecordZoneWithZoneID(zoneID IRecordZoneID) RecordZone

Creates a record zone object with the specified zone ID. Full Topic

func NewRecordZoneWithZoneName

func NewRecordZoneWithZoneName(zoneName string) RecordZone

Creates a record zone object with the specified zone name. Full Topic

func RecordZoneFrom

func RecordZoneFrom(ptr unsafe.Pointer) RecordZone

func RecordZone_DefaultRecordZone

func RecordZone_DefaultRecordZone() RecordZone

Returns the default record zone. Full Topic

func (RecordZone) Capabilities

func (r_ RecordZone) Capabilities() RecordZoneCapabilities

The capabilities that the zone supports. Full Topic

func (RecordZone) Init

func (r_ RecordZone) Init() RecordZone

func (RecordZone) InitWithZoneID

func (r_ RecordZone) InitWithZoneID(zoneID IRecordZoneID) RecordZone

func (RecordZone) InitWithZoneName

func (r_ RecordZone) InitWithZoneName(zoneName string) RecordZone

func (RecordZone) Share

func (r_ RecordZone) Share() Reference

A reference to the record zone’s share record. Full Topic

func (RecordZone) ZoneID

func (r_ RecordZone) ZoneID() RecordZoneID

The unique ID of the zone. Full Topic

type RecordZoneCapabilities

type RecordZoneCapabilities uint

The capabilities that a record zone supports. Full Topic

const (
	RecordZoneCapabilityAtomic          RecordZoneCapabilities = 2
	RecordZoneCapabilityFetchChanges    RecordZoneCapabilities = 1
	RecordZoneCapabilitySharing         RecordZoneCapabilities = 4
	RecordZoneCapabilityZoneWideSharing RecordZoneCapabilities = 8
)

type RecordZoneID

type RecordZoneID struct {
	objc.Object
}

An object that uniquely identifies a record zone in a database. Full Topic

func NewRecordZoneID

func NewRecordZoneID() RecordZoneID

func NewRecordZoneIDWithZoneNameOwnerName

func NewRecordZoneIDWithZoneNameOwnerName(zoneName string, ownerName string) RecordZoneID

Creates a record zone ID with the specified name and owner. Full Topic

func RecordZoneIDFrom

func RecordZoneIDFrom(ptr unsafe.Pointer) RecordZoneID

func (RecordZoneID) Init

func (r_ RecordZoneID) Init() RecordZoneID

func (RecordZoneID) InitWithZoneNameOwnerName

func (r_ RecordZoneID) InitWithZoneNameOwnerName(zoneName string, ownerName string) RecordZoneID

func (RecordZoneID) OwnerName

func (r_ RecordZoneID) OwnerName() string

The ID of the user who owns the record zone. Full Topic

func (RecordZoneID) ZoneName

func (r_ RecordZoneID) ZoneName() string

The unique name of the record zone. Full Topic

type RecordZoneNotification

type RecordZoneNotification struct {
	Notification
}

A notification that triggers when the contents of a record zone change. Full Topic

func NewRecordZoneNotification

func NewRecordZoneNotification() RecordZoneNotification

func RecordZoneNotificationFrom

func RecordZoneNotificationFrom(ptr unsafe.Pointer) RecordZoneNotification

func RecordZoneNotification_NotificationFromRemoteNotificationDictionary

func RecordZoneNotification_NotificationFromRemoteNotificationDictionary(notificationDictionary foundation.Dictionary) RecordZoneNotification

Creates a new notification using the specified payload data. Full Topic

func (RecordZoneNotification) DatabaseScope

func (r_ RecordZoneNotification) DatabaseScope() DatabaseScope

The type of database for the record zone. Full Topic

func (RecordZoneNotification) Init

func (RecordZoneNotification) RecordZoneID

func (r_ RecordZoneNotification) RecordZoneID() RecordZoneID

The ID of the record zone that has changes. Full Topic

type RecordZoneSubscription

type RecordZoneSubscription struct {
	Subscription
}

A subscription that generates push notifications when CloudKit modifies records in a specific record zone. Full Topic

func NewRecordZoneSubscription

func NewRecordZoneSubscription() RecordZoneSubscription

func NewRecordZoneSubscriptionWithZoneIDSubscriptionID

func NewRecordZoneSubscriptionWithZoneIDSubscriptionID(zoneID IRecordZoneID, subscriptionID SubscriptionID) RecordZoneSubscription

Creates a named subscription for all records in the specified record zone. Full Topic

func RecordZoneSubscriptionFrom

func RecordZoneSubscriptionFrom(ptr unsafe.Pointer) RecordZoneSubscription

func (RecordZoneSubscription) Init

func (RecordZoneSubscription) InitWithZoneIDSubscriptionID

func (r_ RecordZoneSubscription) InitWithZoneIDSubscriptionID(zoneID IRecordZoneID, subscriptionID SubscriptionID) RecordZoneSubscription

func (RecordZoneSubscription) RecordType

func (r_ RecordZoneSubscription) RecordType() RecordType

The type of record that the subscription queries. Full Topic

func (RecordZoneSubscription) SetRecordType

func (r_ RecordZoneSubscription) SetRecordType(value RecordType)

The type of record that the subscription queries. Full Topic

func (RecordZoneSubscription) ZoneID

The ID of the record zone that the subscription queries. Full Topic

type Reference

type Reference struct {
	objc.Object
}

A relationship between two records in a record zone. Full Topic

func NewReference

func NewReference() Reference

func NewReferenceWithRecordAction

func NewReferenceWithRecordAction(record IRecord, action ReferenceAction) Reference

Creates a reference object that points to the specified record object. Full Topic

func NewReferenceWithRecordIDAction

func NewReferenceWithRecordIDAction(recordID IRecordID, action ReferenceAction) Reference

Creates a reference object that points to the record with the specified ID. Full Topic

func ReferenceFrom

func ReferenceFrom(ptr unsafe.Pointer) Reference

func (Reference) Init

func (r_ Reference) Init() Reference

func (Reference) InitWithRecordAction

func (r_ Reference) InitWithRecordAction(record IRecord, action ReferenceAction) Reference

func (Reference) InitWithRecordIDAction

func (r_ Reference) InitWithRecordIDAction(recordID IRecordID, action ReferenceAction) Reference

func (Reference) RecordID

func (r_ Reference) RecordID() RecordID

The ID of the referenced record. Full Topic

func (Reference) ReferenceAction

func (r_ Reference) ReferenceAction() ReferenceAction

The ownership behavior for the records. Full Topic

type ReferenceAction

type ReferenceAction uint

Constants that indicate the behavior when deleting a referenced record. Full Topic

const (
	ReferenceActionDeleteSelf ReferenceAction = 1
	ReferenceActionNone       ReferenceAction = 0
)

type ServerChangeToken

type ServerChangeToken struct {
	objc.Object
}

An opaque token that represents a specific point in a database’s history. Full Topic

func NewServerChangeToken

func NewServerChangeToken() ServerChangeToken

func ServerChangeTokenFrom

func ServerChangeTokenFrom(ptr unsafe.Pointer) ServerChangeToken

func (ServerChangeToken) Init

type Share

type Share struct {
	Record
}

A specialized record type that manages a collection of shared records. Full Topic

func NewShare

func NewShare() Share

func NewShareWithRecordType

func NewShareWithRecordType(recordType RecordType) Share

Creates a new record of the specified type. Full Topic

func NewShareWithRecordTypeRecordID

func NewShareWithRecordTypeRecordID(recordType RecordType, recordID IRecordID) Share

Creates a record using an ID that you provide. Full Topic

func NewShareWithRecordTypeZoneID

func NewShareWithRecordTypeZoneID(recordType RecordType, zoneID IRecordZoneID) Share

Creates a record in the specified zone. Full Topic

func NewShareWithRecordZoneID

func NewShareWithRecordZoneID(recordZoneID IRecordZoneID) Share

Creates a new share for the specified record zone. Full Topic

func NewShareWithRootRecord

func NewShareWithRootRecord(rootRecord IRecord) Share

Creates a new share for the specified record. Full Topic

func NewShareWithRootRecordShareID

func NewShareWithRootRecordShareID(rootRecord IRecord, shareID IRecordID) Share

Creates a new share for the specified record and record ID. Full Topic

func ShareFrom

func ShareFrom(ptr unsafe.Pointer) Share

func (Share) AddParticipant

func (s_ Share) AddParticipant(participant IShareParticipant)

Adds a participant to the share. Full Topic

func (Share) CurrentUserParticipant

func (s_ Share) CurrentUserParticipant() ShareParticipant

The participant that represents the current user. Full Topic

func (Share) Init

func (s_ Share) Init() Share

func (Share) InitWithRecordType

func (s_ Share) InitWithRecordType(recordType RecordType) Share

func (Share) InitWithRecordTypeRecordID

func (s_ Share) InitWithRecordTypeRecordID(recordType RecordType, recordID IRecordID) Share

func (Share) InitWithRecordTypeZoneID

func (s_ Share) InitWithRecordTypeZoneID(recordType RecordType, zoneID IRecordZoneID) Share

func (Share) InitWithRecordZoneID

func (s_ Share) InitWithRecordZoneID(recordZoneID IRecordZoneID) Share

func (Share) InitWithRootRecord

func (s_ Share) InitWithRootRecord(rootRecord IRecord) Share

func (Share) InitWithRootRecordShareID

func (s_ Share) InitWithRootRecordShareID(rootRecord IRecord, shareID IRecordID) Share

func (Share) Owner

func (s_ Share) Owner() ShareParticipant

The participant that represents the share’s owner. Full Topic

func (Share) Participants

func (s_ Share) Participants() []ShareParticipant

An array that contains the share’s participants. Full Topic

func (Share) PublicPermission

func (s_ Share) PublicPermission() ShareParticipantPermission

The permission for anyone with access to the share’s URL. Full Topic

func (Share) RemoveParticipant

func (s_ Share) RemoveParticipant(participant IShareParticipant)

Removes a participant from the share. Full Topic

func (Share) SetPublicPermission

func (s_ Share) SetPublicPermission(value ShareParticipantPermission)

The permission for anyone with access to the share’s URL. Full Topic

func (Share) URL

func (s_ Share) URL() foundation.URL

The URL for inviting participants to the share. Full Topic

type ShareMetadata

type ShareMetadata struct {
	objc.Object
}

An object that describes a shared record’s metadata. Full Topic

func NewShareMetadata

func NewShareMetadata() ShareMetadata

func ShareMetadataFrom

func ShareMetadataFrom(ptr unsafe.Pointer) ShareMetadata

func (ShareMetadata) ContainerIdentifier

func (s_ ShareMetadata) ContainerIdentifier() string

The ID of the share’s container. Full Topic

func (ShareMetadata) HierarchicalRootRecordID

func (s_ ShareMetadata) HierarchicalRootRecordID() RecordID

The record ID of the shared hierarchy’s root record. Full Topic

func (ShareMetadata) Init

func (s_ ShareMetadata) Init() ShareMetadata

func (ShareMetadata) OwnerIdentity

func (s_ ShareMetadata) OwnerIdentity() UserIdentity

The identity of the share’s owner. Full Topic

func (ShareMetadata) ParticipantPermission

func (s_ ShareMetadata) ParticipantPermission() ShareParticipantPermission

The share’s permissions for the user who retrieves the metadata. Full Topic

func (ShareMetadata) ParticipantRole

func (s_ ShareMetadata) ParticipantRole() ShareParticipantRole

The share’s participant role for the user who retrieves the metadata. Full Topic

func (ShareMetadata) ParticipantStatus

func (s_ ShareMetadata) ParticipantStatus() ShareParticipantAcceptanceStatus

The share’s participation status for the user who retrieves the metadata. Full Topic

func (ShareMetadata) RootRecord

func (s_ ShareMetadata) RootRecord() Record

The share’s root record. Full Topic

func (ShareMetadata) Share

func (s_ ShareMetadata) Share() Share

The share that owns the metadata. Full Topic

type ShareParticipant

type ShareParticipant struct {
	objc.Object
}

An object that describes a user’s participation in a share. Full Topic

func NewShareParticipant

func NewShareParticipant() ShareParticipant

func ShareParticipantFrom

func ShareParticipantFrom(ptr unsafe.Pointer) ShareParticipant

func (ShareParticipant) AcceptanceStatus

func (s_ ShareParticipant) AcceptanceStatus() ShareParticipantAcceptanceStatus

The current state of the user’s acceptance of the share. Full Topic

func (ShareParticipant) Init

func (ShareParticipant) Permission

The participant’s permission level for the share. Full Topic

func (ShareParticipant) Role

The participant’s role for the share. Full Topic

func (ShareParticipant) SetPermission

func (s_ ShareParticipant) SetPermission(value ShareParticipantPermission)

The participant’s permission level for the share. Full Topic

func (ShareParticipant) SetRole

func (s_ ShareParticipant) SetRole(value ShareParticipantRole)

The participant’s role for the share. Full Topic

func (ShareParticipant) UserIdentity

func (s_ ShareParticipant) UserIdentity() UserIdentity

The identity of the participant. Full Topic

type ShareParticipantAcceptanceStatus

type ShareParticipantAcceptanceStatus int

Constants that represent the status of a participant. Full Topic

const (
	ShareParticipantAcceptanceStatusAccepted ShareParticipantAcceptanceStatus = 2
	ShareParticipantAcceptanceStatusPending  ShareParticipantAcceptanceStatus = 1
	ShareParticipantAcceptanceStatusRemoved  ShareParticipantAcceptanceStatus = 3
	ShareParticipantAcceptanceStatusUnknown  ShareParticipantAcceptanceStatus = 0
)

type ShareParticipantPermission

type ShareParticipantPermission int

Constants that represent the permissions to grant to a share participant. Full Topic

const (
	ShareParticipantPermissionNone      ShareParticipantPermission = 1
	ShareParticipantPermissionReadOnly  ShareParticipantPermission = 2
	ShareParticipantPermissionReadWrite ShareParticipantPermission = 3
	ShareParticipantPermissionUnknown   ShareParticipantPermission = 0
)

type ShareParticipantRole

type ShareParticipantRole int

Constants that represent the role of a share’s participant. Full Topic

const (
	ShareParticipantRoleOwner       ShareParticipantRole = 1
	ShareParticipantRolePrivateUser ShareParticipantRole = 3
	ShareParticipantRolePublicUser  ShareParticipantRole = 4
	ShareParticipantRoleUnknown     ShareParticipantRole = 0
)

type ShareParticipantType

type ShareParticipantType int

The role of a participant. Full Topic

const (
	ShareParticipantTypeOwner       ShareParticipantType = 1
	ShareParticipantTypePrivateUser ShareParticipantType = 3
	ShareParticipantTypePublicUser  ShareParticipantType = 4
	ShareParticipantTypeUnknown     ShareParticipantType = 0
)

type Subscription

type Subscription struct {
	objc.Object
}

An abstract base class for subscriptions. Full Topic

func NewSubscription

func NewSubscription() Subscription

func SubscriptionFrom

func SubscriptionFrom(ptr unsafe.Pointer) Subscription

func (Subscription) Init

func (s_ Subscription) Init() Subscription

func (Subscription) NotificationInfo

func (s_ Subscription) NotificationInfo() NotificationInfo

The configuration for a subscription’s push notifications. Full Topic

func (Subscription) SetNotificationInfo

func (s_ Subscription) SetNotificationInfo(value INotificationInfo)

The configuration for a subscription’s push notifications. Full Topic

func (Subscription) SubscriptionID

func (s_ Subscription) SubscriptionID() SubscriptionID

The subscription’s unique identifier. Full Topic

func (Subscription) SubscriptionType

func (s_ Subscription) SubscriptionType() SubscriptionType

The behavior that a subscription provides. Full Topic

type SubscriptionID

type SubscriptionID string

A type that represents a subscription’s identifier. Full Topic

type SubscriptionType

type SubscriptionType int

Constants that identify a subscription’s behavior. Full Topic

const (
	SubscriptionTypeDatabase   SubscriptionType = 3
	SubscriptionTypeQuery      SubscriptionType = 1
	SubscriptionTypeRecordZone SubscriptionType = 2
)

type UserIdentity

type UserIdentity struct {
	objc.Object
}

The identity of a user. Full Topic

func NewUserIdentity

func NewUserIdentity() UserIdentity

func UserIdentityFrom

func UserIdentityFrom(ptr unsafe.Pointer) UserIdentity

func (UserIdentity) ContactIdentifiers

func (u_ UserIdentity) ContactIdentifiers() []string

Identifiers that match contacts in the local Contacts database. Full Topic

func (UserIdentity) HasiCloudAccount

func (u_ UserIdentity) HasiCloudAccount() bool

A Boolean value that indicates whether the user has an iCloud account. Full Topic

func (UserIdentity) Init

func (u_ UserIdentity) Init() UserIdentity

func (UserIdentity) LookupInfo

func (u_ UserIdentity) LookupInfo() UserIdentityLookupInfo

The lookup info for retrieving the user identity. Full Topic

func (UserIdentity) NameComponents

func (u_ UserIdentity) NameComponents() foundation.PersonNameComponents

The user’s name. Full Topic

func (UserIdentity) UserRecordID

func (u_ UserIdentity) UserRecordID() RecordID

The user record ID for the corresponding user record. Full Topic

type UserIdentityLookupInfo

type UserIdentityLookupInfo struct {
	objc.Object
}

The criteria to use when searching for discoverable iCloud users. Full Topic

func NewUserIdentityLookupInfo

func NewUserIdentityLookupInfo() UserIdentityLookupInfo

func NewUserIdentityLookupInfoWithEmailAddress

func NewUserIdentityLookupInfoWithEmailAddress(emailAddress string) UserIdentityLookupInfo

Creates a lookup info for the specified email address. Full Topic

func NewUserIdentityLookupInfoWithPhoneNumber

func NewUserIdentityLookupInfoWithPhoneNumber(phoneNumber string) UserIdentityLookupInfo

Creates a lookup info for the specified phone number. Full Topic

func NewUserIdentityLookupInfoWithUserRecordID

func NewUserIdentityLookupInfoWithUserRecordID(userRecordID IRecordID) UserIdentityLookupInfo

Creates a lookup info for the specified user record ID. Full Topic

func UserIdentityLookupInfoFrom

func UserIdentityLookupInfoFrom(ptr unsafe.Pointer) UserIdentityLookupInfo

func UserIdentityLookupInfo_LookupInfosWithEmails

func UserIdentityLookupInfo_LookupInfosWithEmails(emails []string) []UserIdentityLookupInfo

Returns an array of lookup infos for the specifed email addresses. Full Topic

func UserIdentityLookupInfo_LookupInfosWithPhoneNumbers

func UserIdentityLookupInfo_LookupInfosWithPhoneNumbers(phoneNumbers []string) []UserIdentityLookupInfo

Returns an array of lookup infos for the specifed phone numbers. Full Topic

func UserIdentityLookupInfo_LookupInfosWithRecordIDs

func UserIdentityLookupInfo_LookupInfosWithRecordIDs(recordIDs []IRecordID) []UserIdentityLookupInfo

Returns an array of lookup infos for the specifed user record IDs. Full Topic

func (UserIdentityLookupInfo) EmailAddress

func (u_ UserIdentityLookupInfo) EmailAddress() string

The user’s email address. Full Topic

func (UserIdentityLookupInfo) Init

func (UserIdentityLookupInfo) InitWithEmailAddress

func (u_ UserIdentityLookupInfo) InitWithEmailAddress(emailAddress string) UserIdentityLookupInfo

func (UserIdentityLookupInfo) InitWithPhoneNumber

func (u_ UserIdentityLookupInfo) InitWithPhoneNumber(phoneNumber string) UserIdentityLookupInfo

func (UserIdentityLookupInfo) InitWithUserRecordID

func (u_ UserIdentityLookupInfo) InitWithUserRecordID(userRecordID IRecordID) UserIdentityLookupInfo

func (UserIdentityLookupInfo) PhoneNumber

func (u_ UserIdentityLookupInfo) PhoneNumber() string

The user’s phone number. Full Topic

func (UserIdentityLookupInfo) UserRecordID

func (u_ UserIdentityLookupInfo) UserRecordID() RecordID

The ID of the user record. Full Topic

Source Files

Jump to

Keyboard shortcuts

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