CloudKit.Container
A Cloudkit.container object provides access to an app container, and through the app container, access to its databases. It also contains methods for authenticating and fetching users.
Declaration
interface CloudKit.ContainerOverview
You do not create container objects yourself, nor should you subclass the CloudKit.Container class. You configure a container using the CloudKit.configure method and obtain a container using one of the CloudKit namespace container methods.
The asynchronous methods in this class return a Promise object that resolves when the operation completes. For a description of the Promise class returned by these methods, go to Mozilla Developer Network: Promise.
This class is similar to the CKContainer class in the CloudKit framework.
Topics
Getting the Public and Private Databases
Getting the Identifier and Environment
Authenticating Users
Discovering Users
fetchCurrentUserIdentitydiscoverAllUserIdentitiesdiscoverUserIdentitiesdiscoverUserIdentityWithEmailAddressdiscoverUserIdentityWithPhoneNumberdiscoverUserIdentityWithUserRecordName
Accepting Shared Records
Receiving Notifications
addNotificationListenerremoveNotificationListenerregisterForNotificationsunregisterForNotificationsisRegisteredForNotifications
Logging
See Also
Classes
CloudKitCloudKit.CKErrorCloudKit.DatabaseCloudKit.DatabaseChangesResponseCloudKit.NotificationCloudKit.QueryNotificationCloudKit.QueryResponseCloudKit.RecordInfosResponseCloudKit.RecordsBatchBuilderCloudKit.RecordsResponseCloudKit.RecordZoneChangesResponseCloudKit.RecordZoneNotificationCloudKit.RecordZonesResponseCloudKit.ResponseCloudKit.ShareRecordType