Class

CloudKit.QueryNotification

A CloudKit.QueryNotification object represents a push notification that was generated by a subscription object. A query notification is triggered by subscriptions where the subscriptionType key is query. Use a CloudKit.QueryNotification object to get information about the record that changed. To create query subscriptions and handle push notifications, see the saveSubscriptions method in CloudKit.Database.

Declaration

interface CloudKit.QueryNotification

Overview

This class is similar to the CKQueryNotification class in the CloudKit framework.

Topics

Getting Record Changes

queryNotificationReason

The reason for the query notification.

recordName

The name of the record that was created, deleted, or updated.

recordFields

A dictionary representation of the fields that changed in the record.

isPublicDatabase

Boolean value indicating whether the notification is from the public database.

Getting the Notification Type

notificationType

The type of notification.

isQueryNotification

Boolean value indicating whether this notification is a CloudKit.QueryNotification object.

Logging

toString

Returns a string representation of the notification.

Constants

Reasons for Query Notifications

Constants indicating the event that triggered the notification.

Relationships