Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions src/photos.cs
Original file line number Diff line number Diff line change
Expand Up @@ -979,6 +979,8 @@ interface PHPhotoLibraryChangeObserver {
void PhotoLibraryDidChange (PHChange changeInstance);
}

delegate void PHPhotoLibraryCancellableChangeHandler (out bool cancel);

[iOS (8,0)]
[TV (10,0)]
[NoMac]
Expand All @@ -1003,6 +1005,14 @@ interface PHPhotoLibrary {
[Export ("performChangesAndWait:error:")]
bool PerformChangesAndWait (Action changeHandler, out NSError error);

[iOS (10,2), TV (10,1)]
[Export ("performCancellableChanges:completionHandler:")]
void PerformChanges (PHPhotoLibraryCancellableChangeHandler cancellableChangeHandler, Action<bool, NSError> completionHandler);

[iOS (10,2), TV (10,1)]
[Export ("performCancellableChangesAndWait:error:")]
bool PerformChangesAndWait (PHPhotoLibraryCancellableChangeHandler cancellableChangeHandler, out NSError error);

[Export ("registerChangeObserver:")]
void RegisterChangeObserver ([Protocolize] PHPhotoLibraryChangeObserver observer);

Expand Down