Initializer

init(notificationIDsToMarkRead:)

Initializes and returns an operation object configured to mark the specified notifications as read.

Declaration

convenience init(notificationIDsToMarkRead notificationIDs: [CKNotification.ID])

Parameters

notificationIDs

An array of CKNotification.ID objects representing the notifications you want to mark as read. Use this parameter to initialize the value in the notificationIDs property. If you specify nil, assign an appropriate value to the notificationIDs property before executing the operation.

If any objects in the array are not CKNotification.ID objects, this method raises an exception.

Return Value

An initialized operation object.

Discussion

Assign a completion block to the markNotificationsReadCompletionBlock property to process the results.

See Also

Initializing the Operation Object

init()Deprecated