CloudKit
Use the CloudKit namespace to configure CloudKit JS, and to access app containers and global constants.
Declaration
interface CloudKitOverview
Set up CloudKit JS by passing container and authentication information to the configure method. Also, specify whether to use the development or production environment. You’ll need the container ID and API token to configure CloudKit JS. (Use CloudKit Dashboard to create an API token, as described in Accessing CloudKit Using an API Token.) Some operations require users to enter their Apple ID credentials. Apple presents the sign-in dialog, but you can customize the position and theme of the sign-in and sign-out buttons.
After configuring CloudKit JS, use the container methods to get the app’s container objects (CloudKit.Container), and from the container objects, get the database objects (CloudKit.Database).
Topics
Configuring CloudKit JS
Accessing Containers
Constants
Enumerations
CloudKit.AppleIDButtonThemeCloudKit.DatabaseScopeCloudKit.QueryFilterComparatorCloudKit.ReferenceActionCloudKit.ShareParticipantAcceptanceStatusCloudKit.ShareParticipantPermissionCloudKit.ShareParticipantTypeCloudKit.SubscriptionType
Properties
CKErrorDatabaseScopePromiseQueryFilterComparatorReferenceActionShareParticipantAcceptanceStatusShareParticipantPermissionShareParticipantTypeShareRecordTypeSubscriptionType
Classes
CloudKit.CKErrorCloudKit.ContainerCloudKit.DatabaseCloudKit.DatabaseChangesResponseCloudKit.NotificationCloudKit.QueryNotificationCloudKit.QueryResponseCloudKit.RecordInfosResponseCloudKit.RecordsBatchBuilderCloudKit.RecordsResponseCloudKit.RecordZoneChangesResponseCloudKit.RecordZoneNotificationCloudKit.RecordZonesResponseCloudKit.ResponseCloudKit.ShareRecordTypeCloudKit.SubscriptionsResponseCloudKit.UserIdentitiesResponse
Structures
CloudKit.CloudKitConfigCloudKit.ContainerConfigCloudKit.NameComponentsCloudKit.NotificationInfoCloudKit.QueryCloudKit.RecordCloudKit.RecordFieldCloudKit.RecordInfoCloudKit.RecordZoneCloudKit.RecordZoneChangesCloudKit.RecordZoneChangesOptionsCloudKit.ShareCloudKit.ShareParticipantCloudKit.SharingUIResultCloudKit.SubscriptionCloudKit.UserIdentityCloudKit.UserLookupInfoCloudKit.ZoneID
See Also
Classes
CloudKit.CKErrorCloudKit.ContainerCloudKit.DatabaseCloudKit.DatabaseChangesResponseCloudKit.NotificationCloudKit.QueryNotificationCloudKit.QueryResponseCloudKit.RecordInfosResponseCloudKit.RecordsBatchBuilderCloudKit.RecordsResponseCloudKit.RecordZoneChangesResponseCloudKit.RecordZoneNotificationCloudKit.RecordZonesResponseCloudKit.ResponseCloudKit.ShareRecordType