[Xcode12][Photos] Update for beta1 (no beta2 changes) (#9045)
* photo updates for xcode12
This commit is contained in:
Родитель
83fd7694ff
Коммит
79f33e494a
|
@ -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
|
Загрузка…
Ссылка в новой задаче