[Xcode12][Photos] Update for beta1 (no beta2 changes) (#9045)

* photo updates for xcode12
This commit is contained in:
Whitney Schmidt 2020-07-10 11:05:26 -04:00 коммит произвёл GitHub
Родитель 83fd7694ff
Коммит 79f33e494a
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
5 изменённых файлов: 35 добавлений и 17 удалений

Просмотреть файл

@ -249,7 +249,12 @@ namespace Photos
[Mac (10,13)]
[Native]
public enum PHAuthorizationStatus : long {
NotDetermined, Restricted, Denied, Authorized
NotDetermined,
Restricted,
Denied,
Authorized,
[iOS (14,0)][NoTV][NoMac]
Limited,
}
[iOS (9,0)]
@ -378,5 +383,14 @@ namespace Photos
LibraryVolumeOffline = 3114,
RelinquishingLibraryBundleToWriter = 3142,
SwitchingSystemPhotoLibrary = 3143,
NetworkAccessRequired = 3164,
}
[TV (14,0), Mac (10,16), iOS (14,0)]
[Native]
public enum PHAccessLevel : long
{
AddOnly = 1,
ReadWrite = 2,
}
}

Просмотреть файл

@ -1072,13 +1072,30 @@ namespace Photos
[Export ("sharedPhotoLibrary")]
PHPhotoLibrary SharedPhotoLibrary { get; }
[Deprecated (PlatformName.iOS, 14, 0, message: "Use 'GetAuthorizationStatus' instead.")]
[Deprecated (PlatformName.MacOSX, 10, 16, message: "Use 'GetAuthorizationStatus' instead.")]
[Deprecated (PlatformName.TvOS, 14, 0, message: "Use 'GetAuthorizationStatus' instead.")]
[Static, Export ("authorizationStatus")]
PHAuthorizationStatus AuthorizationStatus { get; }
[TV (14,0), Mac (10,16), iOS (14,0)]
[Static]
[Export ("authorizationStatusForAccessLevel:")]
PHAuthorizationStatus GetAuthorizationStatus (PHAccessLevel accessLevel);
[Deprecated (PlatformName.iOS, 14, 0, message: "Use 'RequestAuthorization(PHAccessLevel, Action<PHAuthorizationStatus>)' overload instead.")]
[Deprecated (PlatformName.MacOSX, 10, 16, message: "Use 'RequestAuthorization(PHAccessLevel, Action<PHAuthorizationStatus>)' overload instead.")]
[Deprecated (PlatformName.TvOS, 14, 0, message: "Use 'RequestAuthorization(PHAccessLevel, Action<PHAuthorizationStatus>)' overload instead.")]
[Static, Export ("requestAuthorization:")]
[Async]
void RequestAuthorization (Action<PHAuthorizationStatus> handler);
[TV (14,0), Mac (10,16), iOS (14,0)]
[Static]
[Export ("requestAuthorizationForAccessLevel:handler:")]
[Async]
void RequestAuthorization (PHAccessLevel accessLevel, Action<PHAuthorizationStatus> handler);
// no [Async] since we're binding performChangesAndWait:error: too
[Export ("performChanges:completionHandler:")]
void PerformChanges (Action changeHandler, Action<bool, NSError> completionHandler);
@ -1131,6 +1148,9 @@ namespace Photos
[Mac (10,12)]
[BaseType (typeof(NSObject))]
interface PHLivePhoto : NSSecureCoding, NSCopying
#if IOS
, NSItemProviderReading
#endif
{
[Export ("size")]
CGSize Size { get; }

Просмотреть файл

@ -1,6 +0,0 @@
!deprecated-attribute-missing! PHPhotoLibrary::authorizationStatus missing a [Deprecated] attribute
!deprecated-attribute-missing! PHPhotoLibrary::requestAuthorization: missing a [Deprecated] attribute
!missing-enum! PHAccessLevel not bound
!missing-protocol-conformance! PHLivePhoto should conform to NSItemProviderReading (defined in 'NSItemProvider' category)
!missing-selector! +PHPhotoLibrary::authorizationStatusForAccessLevel: not bound
!missing-selector! +PHPhotoLibrary::requestAuthorizationForAccessLevel:handler: not bound

Просмотреть файл

@ -1,5 +0,0 @@
!deprecated-attribute-missing! PHPhotoLibrary::authorizationStatus missing a [Deprecated] attribute
!deprecated-attribute-missing! PHPhotoLibrary::requestAuthorization: missing a [Deprecated] attribute
!missing-enum! PHAccessLevel not bound
!missing-selector! +PHPhotoLibrary::authorizationStatusForAccessLevel: not bound
!missing-selector! +PHPhotoLibrary::requestAuthorizationForAccessLevel:handler: not bound

Просмотреть файл

@ -1,5 +0,0 @@
!deprecated-attribute-missing! PHPhotoLibrary::authorizationStatus missing a [Deprecated] attribute
!deprecated-attribute-missing! PHPhotoLibrary::requestAuthorization: missing a [Deprecated] attribute
!missing-enum! PHAccessLevel not bound
!missing-selector! +PHPhotoLibrary::authorizationStatusForAccessLevel: not bound
!missing-selector! +PHPhotoLibrary::requestAuthorizationForAccessLevel:handler: not bound