Skip to content

Commit

Permalink
[Photos] Update Photos to Xcode 8.2 Beta 1 (#1106)
Browse files Browse the repository at this point in the history
  • Loading branch information
dalexsoto authored and spouliot committed Nov 3, 2016
1 parent ce30a5c commit 019685e
Showing 1 changed file with 10 additions and 0 deletions.
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

0 comments on commit 019685e

Please sign in to comment.