ContentUpdateDelegate
Objective-C
@protocol ContentUpdateDelegate <NSObject>
Swift
protocol ContentUpdateDelegate : NSObjectProtocol
A set of delegate methods for content update.
-
Notifies the delegate that the requested operation was started.
Declaration
Objective-C
- (void)contextUpdate:(nonnull NSObject *)context notifyStart:(BOOL)hasProgress;
Swift
func contextUpdate(_ context: NSObject, notifyStart hasProgress: Bool)
Parameters
context
The context informing the delegate of this event.
hasProgress
If the operation supports progress then hasProgress is true.
-
Notifies the delegate with the progress on requested operation.
Declaration
Objective-C
- (void)contextUpdate:(nonnull NSObject *)context notifyProgress:(int)progress;
Swift
func contextUpdate(_ context: NSObject, notifyProgress progress: Int32)
Parameters
context
The context informing the delegate of this event.
progress
The progress value.
-
Notifies the delegate that the requested operation was completed.
Declaration
Objective-C
- (void)contextUpdate:(nonnull NSObject *)context notifyComplete:(BOOL)success;
Swift
func contextUpdate(_ context: NSObject, notifyComplete success: Bool)
Parameters
context
The context informing the delegate of this event.
success
If the operation was successfully.
-
Notifies the delegate with the new content store object status.
Declaration
Objective-C
- (void)contextUpdate:(nonnull NSObject *)context notifyStatusChanged:(ContentUpdateStatus)status;
Swift
func contextUpdate(_ context: NSObject, notifyStatusChanged status: ContentUpdateStatus)
Parameters
context
The context informing the delegate of this event.
status
The new status.