Instance Method

databaseWithDatabaseScope:

Retrieves the database with the appropriate scope.

Declaration

- (CKDatabase *)databaseWithDatabaseScope:(CKDatabaseScope)databaseScope;

Parameters

databaseScope

The scope of the database you want returned. See CKDatabaseScope for the available options.

Return Value

An initialized CKDatabase object with the appropriate scope.

Discussion

This convenience method returns the database associated with the specified container that is of the scope requested.

See Also

Getting the Public and Private Databases

privateCloudDatabase

The database containing the user’s private data.

publicCloudDatabase

The database containing the data shared by all users.

sharedCloudDatabase

The database containing shared user data.