ContentStoreObjectDelegate
Objective-C
@protocol ContentStoreObjectDelegate <NSObject>
Swift
protocol ContentStoreObjectDelegate : NSObjectProtocol
A set of methods that you can use to get notify.
-
Notifies the delegate that the requested operation was started.
Declaration
Objective-C
- (void)contentStoreObject:(nonnull ContentStoreObject *)object notifyStart:(BOOL)hasProgress;
Swift
func contentStoreObject(_ object: ContentStoreObject, notifyStart hasProgress: Bool)
Parameters
object
The content store object 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)contentStoreObject:(nonnull ContentStoreObject *)object notifyProgress:(int)progress;
Swift
func contentStoreObject(_ object: ContentStoreObject, notifyProgress progress: Int32)
Parameters
object
The content store object informing the delegate of this event.
progress
The progress value.
-
Notifies the delegate that the requested operation was completed.
Declaration
Objective-C
- (void)contentStoreObject:(nonnull ContentStoreObject *)object notifyComplete:(BOOL)success;
Swift
func contentStoreObject(_ object: ContentStoreObject, notifyComplete success: Bool)
Parameters
object
The content store object 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)contentStoreObject:(nonnull ContentStoreObject *)object notifyStatusChanged:(ContentStoreObjectStatus)status;
Swift
func contentStoreObject(_ object: ContentStoreObject, notifyStatusChanged status: ContentStoreObjectStatus)
Parameters
object
The content store object informing the delegate of this event.
status
The new status.