Contents

CloudKit

Use the CloudKit namespace to configure CloudKit JS, and to access app containers and global constants.

Declaration

interface CloudKit

Overview

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

Properties

Classes

Structures

See Also

Classes