peachsim 0.1.1830 → 0.1.1832
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-lib/agent-daemon-client.cjs +1 -1
- package/dist-lib/agent-events.cjs +1 -1
- package/dist-lib/attached-projects.cjs +1 -1
- package/dist-lib/auth/shared-session.cjs +1 -1
- package/dist-lib/backend-origin.cjs +1 -1
- package/dist-lib/beta.cjs +1 -1
- package/dist-lib/beta.mjs +1 -1
- package/dist-lib/bridge-constants.cjs +1 -1
- package/dist-lib/bridge-contract-input.cjs +1 -1
- package/dist-lib/bridge-contract-input.mjs +1 -1
- package/dist-lib/bridge-contract.cjs +1 -1
- package/dist-lib/bridge-contract.mjs +1 -1
- package/dist-lib/bundle-channel.cjs +20 -9
- package/dist-lib/capture-contract.cjs +1 -1
- package/dist-lib/capture-contract.mjs +1 -1
- package/dist-lib/cloud-contract.cjs +1 -1
- package/dist-lib/cloud-contract.mjs +1 -1
- package/dist-lib/cloud-test-args.cjs +1 -1
- package/dist-lib/cloud-test-args.mjs +1 -1
- package/dist-lib/cloud.cjs +1 -1
- package/dist-lib/cloud.mjs +1 -1
- package/dist-lib/config.cjs +1 -1
- package/dist-lib/config.mjs +1 -1
- package/dist-lib/detox/index.cjs +1 -1
- package/dist-lib/dev-bundle-resolution.cjs +1 -1
- package/dist-lib/expo-swift-bundle.cjs +3 -3
- package/dist-lib/expo-swift-metadata.cjs +1 -1
- package/dist-lib/expo-swift-metadata.mjs +1 -1
- package/dist-lib/home-paths.cjs +1 -1
- package/dist-lib/host/bridge-host.cjs +20 -9
- package/dist-lib/host/fetch-proxy-handler.cjs +1 -1
- package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
- package/dist-lib/host/fetch-proxy-overrides.mjs +1 -1
- package/dist-lib/host/replacement-module-handler.cjs +1 -1
- package/dist-lib/host/websocket-proxy.cjs +1 -1
- package/dist-lib/index.cjs +2 -2
- package/dist-lib/jump-to-source-babel.cjs +1 -1
- package/dist-lib/jump-to-source-native.cjs +1 -1
- package/dist-lib/kotlin-host.cjs +1 -1
- package/dist-lib/menu.cjs +1 -1
- package/dist-lib/menu.mjs +1 -1
- package/dist-lib/metro-fingerprint-registry.cjs +1 -1
- package/dist-lib/metro-fingerprint-registry.mjs +1 -1
- package/dist-lib/metro-production-bundle.cjs +1 -1
- package/dist-lib/metro-production-bundle.mjs +1 -1
- package/dist-lib/metro.cjs +2 -2
- package/dist-lib/native-app-identity-project.cjs +2 -2
- package/dist-lib/native-app-identity-project.mjs +2 -2
- package/dist-lib/native-app-identity.cjs +1 -1
- package/dist-lib/native-app-identity.mjs +1 -1
- package/dist-lib/native-firebase-metadata.cjs +1 -1
- package/dist-lib/native-firebase-metadata.mjs +1 -1
- package/dist-lib/pdfium-raster.cjs +1 -1
- package/dist-lib/pdfium-raster.mjs +1 -1
- package/dist-lib/plist.cjs +1 -1
- package/dist-lib/plist.mjs +1 -1
- package/dist-lib/profiles.cjs +1 -1
- package/dist-lib/public-brand.cjs +1 -1
- package/dist-lib/public-origins-lib-esm.json +24 -24
- package/dist-lib/public-origins-lib.json +53 -53
- package/dist-lib/react-native-host-modules.cjs +1 -1
- package/dist-lib/react-native-host-modules.mjs +1 -1
- package/dist-lib/reap-browser.cjs +1 -1
- package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
- package/dist-lib/sdk.cjs +1 -1
- package/dist-lib/sdk.mjs +1 -1
- package/dist-lib/skills.cjs +20 -9
- package/dist-lib/swift-compile.cjs +2 -2
- package/dist-lib/swift-compile.mjs +2 -2
- package/dist-lib/swift-package.cjs +1 -1
- package/dist-lib/swift-package.mjs +1 -1
- package/dist-lib/swift-submit.cjs +1 -1
- package/dist-lib/swift-submit.mjs +1 -1
- package/dist-lib/swift-toolchain.cjs +1 -1
- package/dist-lib/swift.cjs +1 -1
- package/dist-lib/vite-swift.cjs +3 -3
- package/dist-lib/vite.cjs +1 -1
- package/dist-lib/worklet-executable.cjs +1 -1
- package/dist-lib/worklet-executable.mjs +1 -1
- package/dist-types/packages/peach-engine/src/render-worker/resilient-frame-clock.d.ts +1 -0
- package/package.json +1 -1
- package/sdk/ios/System/Library/Frameworks/Photos.framework/Headers/PHAdjustmentData.h +28 -0
- package/sdk/ios/System/Library/Frameworks/Photos.framework/Headers/PHAsset.h +129 -0
- package/sdk/ios/System/Library/Frameworks/Photos.framework/Headers/PHAssetChangeRequest.h +143 -0
- package/sdk/ios/System/Library/Frameworks/Photos.framework/Headers/PHAssetCollection.h +67 -0
- package/sdk/ios/System/Library/Frameworks/Photos.framework/Headers/PHAssetCollectionChangeRequest.h +60 -0
- package/sdk/ios/System/Library/Frameworks/Photos.framework/Headers/PHAssetCreationRequest.h +55 -0
- package/sdk/ios/System/Library/Frameworks/Photos.framework/Headers/PHAssetExtendedMetadata.h +33 -0
- package/sdk/ios/System/Library/Frameworks/Photos.framework/Headers/PHAssetResource.h +67 -0
- package/sdk/ios/System/Library/Frameworks/Photos.framework/Headers/PHAssetResourceManager.h +55 -0
- package/sdk/ios/System/Library/Frameworks/Photos.framework/Headers/PHAssetResourceUploadJob.h +79 -0
- package/sdk/ios/System/Library/Frameworks/Photos.framework/Headers/PHAssetResourceUploadJobChangeRequest.h +94 -0
- package/sdk/ios/System/Library/Frameworks/Photos.framework/Headers/PHAssetResourceUploadJobOptions.h +23 -0
- package/sdk/ios/System/Library/Frameworks/Photos.framework/Headers/PHChange.h +91 -0
- package/sdk/ios/System/Library/Frameworks/Photos.framework/Headers/PHChangeRequest.h +12 -0
- package/sdk/ios/System/Library/Frameworks/Photos.framework/Headers/PHCloudIdentifier.h +133 -0
- package/sdk/ios/System/Library/Frameworks/Photos.framework/Headers/PHCollection.h +68 -0
- package/sdk/ios/System/Library/Frameworks/Photos.framework/Headers/PHCollectionList.h +59 -0
- package/sdk/ios/System/Library/Frameworks/Photos.framework/Headers/PHCollectionListChangeRequest.h +95 -0
- package/sdk/ios/System/Library/Frameworks/Photos.framework/Headers/PHContentEditingInput.h +55 -0
- package/sdk/ios/System/Library/Frameworks/Photos.framework/Headers/PHContentEditingOutput.h +37 -0
- package/sdk/ios/System/Library/Frameworks/Photos.framework/Headers/PHError.h +56 -0
- package/sdk/ios/System/Library/Frameworks/Photos.framework/Headers/PHFetchOptions.h +48 -0
- package/sdk/ios/System/Library/Frameworks/Photos.framework/Headers/PHFetchResult.h +43 -0
- package/sdk/ios/System/Library/Frameworks/Photos.framework/Headers/PHImageManager.h +251 -0
- package/sdk/ios/System/Library/Frameworks/Photos.framework/Headers/PHLivePhoto.h +52 -0
- package/sdk/ios/System/Library/Frameworks/Photos.framework/Headers/PHLivePhotoEditingContext.h +131 -0
- package/sdk/ios/System/Library/Frameworks/Photos.framework/Headers/PHObject.h +32 -0
- package/sdk/ios/System/Library/Frameworks/Photos.framework/Headers/PHPersistentChange.h +29 -0
- package/sdk/ios/System/Library/Frameworks/Photos.framework/Headers/PHPersistentChangeFetchResult.h +26 -0
- package/sdk/ios/System/Library/Frameworks/Photos.framework/Headers/PHPersistentChangeToken.h +21 -0
- package/sdk/ios/System/Library/Frameworks/Photos.framework/Headers/PHPersistentObjectChangeDetails.h +30 -0
- package/sdk/ios/System/Library/Frameworks/Photos.framework/Headers/PHPhotoLibrary.h +174 -0
- package/sdk/ios/System/Library/Frameworks/Photos.framework/Headers/PHProject.h +35 -0
- package/sdk/ios/System/Library/Frameworks/Photos.framework/Headers/PHProjectChangeRequest.h +66 -0
- package/sdk/ios/System/Library/Frameworks/Photos.framework/Headers/Photos.apinotes +12 -0
- package/sdk/ios/System/Library/Frameworks/Photos.framework/Headers/Photos.h +58 -0
- package/sdk/ios/System/Library/Frameworks/Photos.framework/Headers/PhotosTypes.h +332 -0
- package/sdk/ios/System/Library/Frameworks/Photos.framework/Modules/module.modulemap +5 -0
- package/sdk/ios/System/Library/Frameworks/PhotosUI.framework/Headers/PHContentEditingController.h +48 -0
- package/sdk/ios/System/Library/Frameworks/PhotosUI.framework/Headers/PHLivePhotoView.h +117 -0
- package/sdk/ios/System/Library/Frameworks/PhotosUI.framework/Headers/PHPhotoLibrary+PhotosUISupport.h +56 -0
- package/sdk/ios/System/Library/Frameworks/PhotosUI.framework/Headers/PHPicker.h +311 -0
- package/sdk/ios/System/Library/Frameworks/PhotosUI.framework/Headers/PHSharedAlbumCreationViewController.h +112 -0
- package/sdk/ios/System/Library/Frameworks/PhotosUI.framework/Headers/PHSharedAlbumCustomizationViewController.h +76 -0
- package/sdk/ios/System/Library/Frameworks/PhotosUI.framework/Headers/PHSharedAlbumPostingViewController.h +72 -0
- package/sdk/ios/System/Library/Frameworks/PhotosUI.framework/Headers/PhotosUI.h +38 -0
- package/sdk/ios/System/Library/Frameworks/PhotosUI.framework/Modules/module.modulemap +6 -0
- package/src/nitro-dependencies.ts +3 -3
- package/src/turbo-source.ts +15 -2
package/sdk/ios/System/Library/Frameworks/Photos.framework/Headers/PHLivePhotoEditingContext.h
ADDED
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
//
|
|
2
|
+
// PHLivePhotoEditingContext.h
|
|
3
|
+
// Photos
|
|
4
|
+
//
|
|
5
|
+
// Copyright (c) 2016 Apple Inc. All rights reserved.
|
|
6
|
+
//
|
|
7
|
+
|
|
8
|
+
#import <Photos/PHLivePhoto.h>
|
|
9
|
+
#import <CoreImage/CIImage.h>
|
|
10
|
+
#import <CoreMedia/CMTime.h>
|
|
11
|
+
#import <ImageIO/CGImageProperties.h>
|
|
12
|
+
|
|
13
|
+
NS_ASSUME_NONNULL_BEGIN
|
|
14
|
+
API_AVAILABLE_BEGIN(macos(10.12), ios(10), tvos(10))
|
|
15
|
+
|
|
16
|
+
@protocol PHLivePhotoFrame;
|
|
17
|
+
@class PHContentEditingInput;
|
|
18
|
+
@class PHContentEditingOutput;
|
|
19
|
+
|
|
20
|
+
/// A block callback for processing frames of a live photo, including the still image
|
|
21
|
+
typedef CIImage * _Nullable (^PHLivePhotoFrameProcessingBlock)(id <PHLivePhotoFrame> _Nonnull frame, NSError * _Nullable * _Nonnull error);
|
|
22
|
+
|
|
23
|
+
typedef NSString * const PHLivePhotoEditingOption NS_STRING_ENUM;
|
|
24
|
+
|
|
25
|
+
OS_EXPORT
|
|
26
|
+
@interface PHLivePhotoEditingContext : NSObject
|
|
27
|
+
|
|
28
|
+
/// Initializer from the specified live photo input
|
|
29
|
+
/// Return nil if the specified input is not for a live photo
|
|
30
|
+
- (nullable instancetype)initWithLivePhotoEditingInput:(PHContentEditingInput *)livePhotoInput NS_DESIGNATED_INITIALIZER;
|
|
31
|
+
- (instancetype)init NS_UNAVAILABLE;
|
|
32
|
+
|
|
33
|
+
// ------------------------------------------------------------------------
|
|
34
|
+
// Read-only properties
|
|
35
|
+
// ------------------------------------------------------------------------
|
|
36
|
+
|
|
37
|
+
/// The original full-size image from the input live photo
|
|
38
|
+
@property (readonly) CIImage *fullSizeImage;
|
|
39
|
+
|
|
40
|
+
/// The duration of the live photo
|
|
41
|
+
@property (readonly) CMTime duration;
|
|
42
|
+
|
|
43
|
+
/// The time of the still image within the live photo
|
|
44
|
+
@property (readonly) CMTime photoTime;
|
|
45
|
+
|
|
46
|
+
// ------------------------------------------------------------------------
|
|
47
|
+
// Editable properties
|
|
48
|
+
// ------------------------------------------------------------------------
|
|
49
|
+
|
|
50
|
+
/// A block that can be set to process each frame of the live photo
|
|
51
|
+
/// Note that the context uses a copy of the processor block during processing
|
|
52
|
+
@property (nullable, copy) PHLivePhotoFrameProcessingBlock frameProcessor;
|
|
53
|
+
|
|
54
|
+
/// Specify the audio volume of the edited live photo
|
|
55
|
+
/// Must be between 0.0 and 1.0
|
|
56
|
+
/// Default to 1.0
|
|
57
|
+
@property float audioVolume;
|
|
58
|
+
|
|
59
|
+
// The orientation of the live photo
|
|
60
|
+
@property (readonly) CGImagePropertyOrientation orientation;
|
|
61
|
+
|
|
62
|
+
// ------------------------------------------------------------------------
|
|
63
|
+
// Processing
|
|
64
|
+
// ------------------------------------------------------------------------
|
|
65
|
+
|
|
66
|
+
/// Asynchronously generate a new live photo suitable for playback in a PHLivePhotoView of the specified target size
|
|
67
|
+
/// The options dictionary can contain additional options, see below
|
|
68
|
+
- (void)prepareLivePhotoForPlaybackWithTargetSize:(CGSize)targetSize options:(nullable NSDictionary<PHLivePhotoEditingOption, id> *)options completionHandler:(void(^)(PHLivePhoto * _Nullable livePhoto, NSError * _Nullable error))handler NS_SWIFT_ASYNC_NAME(livePhotoForPlayback(targetSize:options:));
|
|
69
|
+
|
|
70
|
+
/// Asynchronously process and save the edited live photo to the specified content editing output
|
|
71
|
+
/// Options dictionary should be nil, reserved for future expansion
|
|
72
|
+
- (void)saveLivePhotoToOutput:(PHContentEditingOutput *)output options:(nullable NSDictionary<PHLivePhotoEditingOption, id> *)options completionHandler:(void(^)(BOOL success, NSError * _Nullable error))handler NS_SWIFT_ASYNC_THROWS_ON_FALSE(1);
|
|
73
|
+
|
|
74
|
+
/// Cancel the current asynchronous operation
|
|
75
|
+
/// This is implicitly called whenever prepare or save is called
|
|
76
|
+
/// A canceled operation will call its completion handler with an appropriate error code
|
|
77
|
+
- (void)cancel;
|
|
78
|
+
|
|
79
|
+
@end
|
|
80
|
+
|
|
81
|
+
/// The type of frame in the Live Photo
|
|
82
|
+
typedef NS_ENUM(NSInteger, PHLivePhotoFrameType) {
|
|
83
|
+
/// Indicates the still image
|
|
84
|
+
PHLivePhotoFrameTypePhoto,
|
|
85
|
+
|
|
86
|
+
/// Indicates a video frame
|
|
87
|
+
PHLivePhotoFrameTypeVideo,
|
|
88
|
+
};
|
|
89
|
+
|
|
90
|
+
/// Protocol that describes a single frame of a live photo
|
|
91
|
+
@protocol PHLivePhotoFrame
|
|
92
|
+
|
|
93
|
+
/// Input image for the frame
|
|
94
|
+
@property (readonly) CIImage *image;
|
|
95
|
+
|
|
96
|
+
/// The time of the frame relative to the beginning of the live photo
|
|
97
|
+
@property (readonly) CMTime time;
|
|
98
|
+
|
|
99
|
+
/// The type of frame
|
|
100
|
+
@property (nonatomic, readonly) PHLivePhotoFrameType type;
|
|
101
|
+
|
|
102
|
+
/// The scale of the frame relative to the full-size image
|
|
103
|
+
@property (readonly) CGFloat renderScale;
|
|
104
|
+
|
|
105
|
+
@end
|
|
106
|
+
|
|
107
|
+
// ------------------------------------------------------------------------
|
|
108
|
+
// Options that can be set during processing
|
|
109
|
+
// ------------------------------------------------------------------------
|
|
110
|
+
|
|
111
|
+
/// Indicates whether processing should happen at playback time
|
|
112
|
+
/// If set to NO (the default) the live photo will always be rendered before playback
|
|
113
|
+
/// If set to YES, the editing context might still choose to render first for performance reasons
|
|
114
|
+
/// This option is ignored by the saveLivePhotoToOutput method
|
|
115
|
+
extern PHLivePhotoEditingOption PHLivePhotoShouldRenderAtPlaybackTime API_AVAILABLE(ios(11), tvos(11));
|
|
116
|
+
|
|
117
|
+
// ------------------------------------------------------------------------
|
|
118
|
+
// Errors
|
|
119
|
+
// ------------------------------------------------------------------------
|
|
120
|
+
|
|
121
|
+
/// The error domain for all Live Photo Editing errors (Deprecated).
|
|
122
|
+
extern NSString * const PHLivePhotoEditingErrorDomain API_DEPRECATED_WITH_REPLACEMENT("PHPhotosErrorDomain", macos(10.12, 10.15)) API_UNAVAILABLE(ios, tvos, macCatalyst);
|
|
123
|
+
|
|
124
|
+
/// Error code for Live Photo Editing errors (Deprecated)
|
|
125
|
+
typedef NS_ENUM(NSInteger, PHLivePhotoEditingErrorCode) {
|
|
126
|
+
PHLivePhotoEditingErrorCodeUnknown API_DEPRECATED_WITH_REPLACEMENT("PHPhotosErrorInternalError", macos(10.12, 10.15)),
|
|
127
|
+
PHLivePhotoEditingErrorCodeAborted API_DEPRECATED_WITH_REPLACEMENT("PHPhotosErrorUserCancelled", macos(10.12, 10.15)),
|
|
128
|
+
} API_UNAVAILABLE(ios, tvos, macCatalyst);
|
|
129
|
+
|
|
130
|
+
API_AVAILABLE_END
|
|
131
|
+
NS_ASSUME_NONNULL_END
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
//
|
|
2
|
+
// PHObject.h
|
|
3
|
+
// Photos
|
|
4
|
+
//
|
|
5
|
+
// Copyright (c) 2013 Apple Inc. All rights reserved.
|
|
6
|
+
//
|
|
7
|
+
|
|
8
|
+
#import <Foundation/Foundation.h>
|
|
9
|
+
|
|
10
|
+
NS_ASSUME_NONNULL_BEGIN
|
|
11
|
+
API_AVAILABLE_BEGIN(macos(10.13), ios(8), tvos(10))
|
|
12
|
+
|
|
13
|
+
@class PHPhotoLibrary;
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
OS_EXPORT
|
|
17
|
+
NS_SWIFT_SENDABLE
|
|
18
|
+
PEACH_SWIFT_CLASS(SwiftUI) @interface PHObject : NSObject <NSCopying>
|
|
19
|
+
|
|
20
|
+
// Returns an identifier which persistently identifies the object on a given device
|
|
21
|
+
@property (nonatomic, copy, readonly) NSString *localIdentifier;
|
|
22
|
+
|
|
23
|
+
@end
|
|
24
|
+
|
|
25
|
+
// PHObjectPlaceholder represents a model object future , vended by change requests when creating a model object. PHObjectPlaceholder is a read-only object and may be used as a proxy for the real object that will be created both inside and outside of the change block. Will compare isEqual: to the fetched model object after the change block is performed.
|
|
26
|
+
OS_EXPORT API_AVAILABLE(macos(10.15))
|
|
27
|
+
NS_SWIFT_SENDABLE
|
|
28
|
+
@interface PHObjectPlaceholder : PHObject
|
|
29
|
+
@end
|
|
30
|
+
|
|
31
|
+
API_AVAILABLE_END
|
|
32
|
+
NS_ASSUME_NONNULL_END
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
//
|
|
2
|
+
// PHPersistentChange.h
|
|
3
|
+
// Photos
|
|
4
|
+
//
|
|
5
|
+
// Copyright © 2022 Apple Inc. All rights reserved.
|
|
6
|
+
//
|
|
7
|
+
|
|
8
|
+
#import <Foundation/Foundation.h>
|
|
9
|
+
#import <Photos/PhotosTypes.h>
|
|
10
|
+
|
|
11
|
+
NS_ASSUME_NONNULL_BEGIN
|
|
12
|
+
|
|
13
|
+
@class PHPersistentChangeToken;
|
|
14
|
+
@class PHPersistentObjectChangeDetails;
|
|
15
|
+
|
|
16
|
+
API_AVAILABLE(macosx(13), ios(16), tvos(16))
|
|
17
|
+
NS_SWIFT_SENDABLE
|
|
18
|
+
@interface PHPersistentChange : NSObject
|
|
19
|
+
|
|
20
|
+
+ (instancetype)new NS_UNAVAILABLE;
|
|
21
|
+
- (instancetype)init NS_UNAVAILABLE;
|
|
22
|
+
|
|
23
|
+
@property (nonatomic, readonly) PHPersistentChangeToken *changeToken;
|
|
24
|
+
|
|
25
|
+
- (nullable PHPersistentObjectChangeDetails *)changeDetailsForObjectType:(PHObjectType)objectType error:(NSError **)error;
|
|
26
|
+
|
|
27
|
+
@end
|
|
28
|
+
|
|
29
|
+
NS_ASSUME_NONNULL_END
|
package/sdk/ios/System/Library/Frameworks/Photos.framework/Headers/PHPersistentChangeFetchResult.h
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Created by Dave Dribin on 2/9/18.
|
|
3
|
+
// Copyright © 2018 Apple Inc. All rights reserved.
|
|
4
|
+
//
|
|
5
|
+
|
|
6
|
+
#import <Foundation/Foundation.h>
|
|
7
|
+
|
|
8
|
+
NS_ASSUME_NONNULL_BEGIN
|
|
9
|
+
|
|
10
|
+
@class PHChange;
|
|
11
|
+
@class PHPersistentChange;
|
|
12
|
+
@class PHPersistentChangeToken;
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
API_AVAILABLE(macos(13), ios(16), tvos(16))
|
|
16
|
+
|
|
17
|
+
@interface PHPersistentChangeFetchResult : NSObject
|
|
18
|
+
|
|
19
|
+
+ (instancetype)new NS_UNAVAILABLE;
|
|
20
|
+
- (instancetype)init NS_UNAVAILABLE;
|
|
21
|
+
|
|
22
|
+
- (void)enumerateChangesWithBlock:(void (NS_NOESCAPE ^)(PHPersistentChange *change, BOOL *stop))block NS_REFINED_FOR_SWIFT;
|
|
23
|
+
|
|
24
|
+
@end
|
|
25
|
+
|
|
26
|
+
NS_ASSUME_NONNULL_END
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Created by Dave Dribin on 11/2/17.
|
|
3
|
+
// Copyright © 2017 Apple Inc. All rights reserved.
|
|
4
|
+
//
|
|
5
|
+
|
|
6
|
+
#import <Foundation/Foundation.h>
|
|
7
|
+
|
|
8
|
+
NS_ASSUME_NONNULL_BEGIN
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
API_AVAILABLE(macos(13), ios(16), tvos(16))
|
|
12
|
+
|
|
13
|
+
NS_SWIFT_SENDABLE
|
|
14
|
+
@interface PHPersistentChangeToken : NSObject <NSCopying, NSSecureCoding>
|
|
15
|
+
|
|
16
|
+
+ (instancetype)new NS_UNAVAILABLE;
|
|
17
|
+
- (instancetype)init NS_UNAVAILABLE;
|
|
18
|
+
|
|
19
|
+
@end
|
|
20
|
+
|
|
21
|
+
NS_ASSUME_NONNULL_END
|
package/sdk/ios/System/Library/Frameworks/Photos.framework/Headers/PHPersistentObjectChangeDetails.h
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
//
|
|
2
|
+
// PHPersistentObjectChangeDetails.h
|
|
3
|
+
// Photos
|
|
4
|
+
//
|
|
5
|
+
// Copyright © 2022 Apple Inc. All rights reserved.
|
|
6
|
+
//
|
|
7
|
+
|
|
8
|
+
#import <Foundation/Foundation.h>
|
|
9
|
+
#import <Photos/PhotosTypes.h>
|
|
10
|
+
|
|
11
|
+
NS_ASSUME_NONNULL_BEGIN
|
|
12
|
+
|
|
13
|
+
@class PHObject;
|
|
14
|
+
|
|
15
|
+
API_AVAILABLE(macosx(13), ios(16), tvos(16))
|
|
16
|
+
NS_SWIFT_SENDABLE
|
|
17
|
+
@interface PHPersistentObjectChangeDetails : NSObject
|
|
18
|
+
|
|
19
|
+
@property (nonatomic, readonly) PHObjectType objectType;
|
|
20
|
+
|
|
21
|
+
@property (nonatomic, strong, readonly) NSSet<NSString *> *insertedLocalIdentifiers;
|
|
22
|
+
@property (nonatomic, strong, readonly) NSSet<NSString *> *updatedLocalIdentifiers;
|
|
23
|
+
@property (nonatomic, strong, readonly) NSSet<NSString *> *deletedLocalIdentifiers;
|
|
24
|
+
|
|
25
|
+
+ (instancetype)new NS_UNAVAILABLE;
|
|
26
|
+
- (instancetype)init NS_UNAVAILABLE;
|
|
27
|
+
|
|
28
|
+
@end
|
|
29
|
+
|
|
30
|
+
NS_ASSUME_NONNULL_END
|
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
//
|
|
2
|
+
// PHPhotoLibrary.h
|
|
3
|
+
// Photos
|
|
4
|
+
//
|
|
5
|
+
// Copyright (c) 2013 Apple Inc. All rights reserved.
|
|
6
|
+
//
|
|
7
|
+
|
|
8
|
+
#import <Foundation/Foundation.h>
|
|
9
|
+
#import <Photos/PhotosTypes.h>
|
|
10
|
+
|
|
11
|
+
NS_ASSUME_NONNULL_BEGIN
|
|
12
|
+
API_AVAILABLE_BEGIN(macos(10.13), ios(8), tvos(10))
|
|
13
|
+
|
|
14
|
+
@class PHChange;
|
|
15
|
+
@class PHPhotoLibrary;
|
|
16
|
+
@class PHPersistentChangeToken;
|
|
17
|
+
@class PHPersistentChangeFetchResult;
|
|
18
|
+
@class PHAssetResourceUploadJobOptions;
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
typedef NS_ENUM(NSInteger, PHAuthorizationStatus) {
|
|
22
|
+
PHAuthorizationStatusNotDetermined = 0, // User has not yet made a choice with regards to this application
|
|
23
|
+
PHAuthorizationStatusRestricted, // This application is not authorized to access photo data.
|
|
24
|
+
// The user cannot change this application’s status, possibly due to active restrictions
|
|
25
|
+
// such as parental controls being in place.
|
|
26
|
+
PHAuthorizationStatusDenied, // User has explicitly denied this application access to photos data.
|
|
27
|
+
PHAuthorizationStatusAuthorized, // User has authorized this application to access photos data.
|
|
28
|
+
PHAuthorizationStatusLimited API_AVAILABLE(ios(14)), // User has authorized this application for limited photo library access. Add PHPhotoLibraryPreventAutomaticLimitedAccessAlert = YES to the application's Info.plist to prevent the automatic alert to update the users limited library selection. Use -[PHPhotoLibrary(PhotosUISupport) presentLimitedLibraryPickerFromViewController:] from PhotosUI/PHPhotoLibrary+PhotosUISupport.h to manually present the limited library picker.
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
typedef NS_ENUM(NSInteger, PHAccessLevel) {
|
|
32
|
+
PHAccessLevelAddOnly = 1,
|
|
33
|
+
PHAccessLevelReadWrite = 2,
|
|
34
|
+
} API_AVAILABLE(macos(11), ios(14), tvos(14));
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
#pragma mark -
|
|
38
|
+
PEACH_SWIFT_CLASS(SwiftUI) @protocol PHPhotoLibraryChangeObserver <NSObject>
|
|
39
|
+
// This callback is invoked on an arbitrary serial queue. If you need this to be handled on a specific queue, you should redispatch appropriately
|
|
40
|
+
- (void)photoLibraryDidChange:(PHChange *)changeInstance;
|
|
41
|
+
|
|
42
|
+
@end
|
|
43
|
+
|
|
44
|
+
#pragma mark -
|
|
45
|
+
API_AVAILABLE(macos(10.15), ios(13), tvos(13))
|
|
46
|
+
@protocol PHPhotoLibraryAvailabilityObserver <NSObject>
|
|
47
|
+
// This notification is posted on a private queue.
|
|
48
|
+
- (void)photoLibraryDidBecomeUnavailable:(PHPhotoLibrary *)photoLibrary API_AVAILABLE(macos(10.15), ios(13), tvos(13));
|
|
49
|
+
@end
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
API_AVAILABLE(macos(27), ios(27), tvos(27), visionos(27))
|
|
53
|
+
@protocol PHPhotoLibraryPersistentChangesObserver <NSObject>
|
|
54
|
+
// This callback is invoked on an arbitrary serial queue. If you need this to be handled on a specific queue, you should redispatch appropriately
|
|
55
|
+
- (void)photoLibraryPersistentChangesDidUpdate:(PHPhotoLibrary *)photoLibrary;
|
|
56
|
+
@end
|
|
57
|
+
|
|
58
|
+
/*!
|
|
59
|
+
@class PHPhotoLibrary
|
|
60
|
+
@abstract A PHPhotoLibrary provides access to the metadata and image data for the photos, videos and related content in the user's photo library, including content from the Camera Roll, iCloud Shared, Photo Stream, imported, and synced from iTunes.
|
|
61
|
+
@discussion ...
|
|
62
|
+
*/
|
|
63
|
+
#pragma mark -
|
|
64
|
+
OS_EXPORT
|
|
65
|
+
NS_SWIFT_SENDABLE
|
|
66
|
+
PEACH_SWIFT_CLASS(SwiftUI) @interface PHPhotoLibrary : NSObject
|
|
67
|
+
|
|
68
|
+
+ (PHPhotoLibrary *)sharedPhotoLibrary;
|
|
69
|
+
|
|
70
|
+
#pragma mark - Library access authorization status
|
|
71
|
+
|
|
72
|
+
/// Replaces \c +authorizationStatus to support add-only/read-write access level status
|
|
73
|
+
+ (PHAuthorizationStatus)authorizationStatusForAccessLevel:(PHAccessLevel)accessLevel API_AVAILABLE(macosx(11), ios(14), tvos(14));
|
|
74
|
+
+ (void)requestAuthorizationForAccessLevel:(PHAccessLevel)accessLevel handler:(void(^)(PHAuthorizationStatus status))handler API_AVAILABLE(macosx(11), ios(14), tvos(14)) NS_SWIFT_ASYNC(2);
|
|
75
|
+
|
|
76
|
+
/// Deprecated and replaced by authorizationStatusForAccessLevel:, will return \c PHAuthorizationStatusAuthorized if the user has chosen limited photo library access
|
|
77
|
+
+ (PHAuthorizationStatus)authorizationStatus API_DEPRECATED_WITH_REPLACEMENT("+authorizationStatusForAccessLevel:", ios(8, API_TO_BE_DEPRECATED), macos(10.13, API_TO_BE_DEPRECATED), tvos(10, API_TO_BE_DEPRECATED));
|
|
78
|
+
+ (void)requestAuthorization:(void(^)(PHAuthorizationStatus status))handler API_DEPRECATED_WITH_REPLACEMENT("+requestAuthorizationForAccessLevel:handler:", ios(8, API_TO_BE_DEPRECATED), macos(10.13, API_TO_BE_DEPRECATED), tvos(10, API_TO_BE_DEPRECATED));
|
|
79
|
+
|
|
80
|
+
#pragma mark - Background Upload of Asset Resources: Feature and Extension Enablement
|
|
81
|
+
|
|
82
|
+
/// A Boolean value that indicates whether background asset resource uploading is enabled.
|
|
83
|
+
///
|
|
84
|
+
/// The value is `true` if the extension is enabled and active, and is `false` otherwise.
|
|
85
|
+
///
|
|
86
|
+
/// The extension's host app uses this property to determine the background processing status. See ``PHAssetResourceUploadJob`` and ````PHAssetResourceUploadJobChangeRequest`` for more information.
|
|
87
|
+
@property (readonly, getter=isUploadJobExtensionEnabled) BOOL uploadJobExtensionEnabled API_AVAILABLE(ios(26.1), macCatalyst(27.0), macos(27.0)) API_UNAVAILABLE(tvos, visionos, watchos) NS_SWIFT_NAME(uploadJobExtensionEnabled);
|
|
88
|
+
|
|
89
|
+
/// Enables or disables the background asset resource upload job feature.
|
|
90
|
+
///
|
|
91
|
+
/// You must call this function before you create ``PHAssetResourceUploadJob`` in the extension's host application.
|
|
92
|
+
///
|
|
93
|
+
/// To enable background uploads, you must have both full library access and register the extension with the extension point: "com.apple.photos.background-upload".
|
|
94
|
+
///
|
|
95
|
+
/// - Parameters:
|
|
96
|
+
/// - enable: `true` allows calls to the extension's host application; you can fulfill that protocol to create ``PHAssetResourceUploadJob`` objects. `false` stops calls to the extension's host application.
|
|
97
|
+
/// - error: if either enabling or disabling was unsuccessful, `false` is returned and an error is set on the `error` parameter.
|
|
98
|
+
- (BOOL)setUploadJobExtensionEnabled:(BOOL)enable error:(NSError **)error API_DEPRECATED("Use -enableUploadJobExtensionWithOptions:error: and -disableUploadJobExtensionWithError: instead", ios(26.1, 27.0)) API_UNAVAILABLE(macCatalyst, macos, tvos, visionos, watchos);
|
|
99
|
+
|
|
100
|
+
/// Enables the background asset resource upload job feature with the given options, atomically.
|
|
101
|
+
///
|
|
102
|
+
/// The configuration is created with `options` already set, as a single change — unlike calling
|
|
103
|
+
/// ``setUploadJobExtensionOptions:error:`` afterward, as a separate change.
|
|
104
|
+
///
|
|
105
|
+
/// - Parameters:
|
|
106
|
+
/// - options: the options to set for the newly enabled configuration, or `nil` to use default values.
|
|
107
|
+
/// - error: if enabling was unsuccessful, `false` is returned and an error is set on the `error` parameter.
|
|
108
|
+
- (BOOL)enableUploadJobExtensionWithOptions:(nullable PHAssetResourceUploadJobOptions *)options error:(NSError **)error API_AVAILABLE(ios(27.0), macCatalyst(27.0), macos(27.0)) API_UNAVAILABLE(tvos, visionos, watchos);
|
|
109
|
+
|
|
110
|
+
/// Disables the background asset resource upload job feature.
|
|
111
|
+
///
|
|
112
|
+
/// - Parameters:
|
|
113
|
+
/// - error: if disabling was unsuccessful, `false` is returned and an error is set on the `error` parameter.
|
|
114
|
+
- (BOOL)disableUploadJobExtensionWithError:(NSError **)error API_AVAILABLE(ios(27.0), macCatalyst(27.0), macos(27.0)) API_UNAVAILABLE(tvos, visionos, watchos);
|
|
115
|
+
|
|
116
|
+
/// The options for the calling app's background asset resource upload job configuration.
|
|
117
|
+
///
|
|
118
|
+
/// The value is `nil` if the extension isn't enabled or the caller isn't authorized. Otherwise, the value is an
|
|
119
|
+
/// options object with default values if the configuration exists but no options have been set.
|
|
120
|
+
@property (readonly, nullable) PHAssetResourceUploadJobOptions *uploadJobExtensionOptions API_AVAILABLE(ios(27.0), macCatalyst(27.0), macos(27.0)) API_UNAVAILABLE(tvos, visionos, watchos);
|
|
121
|
+
|
|
122
|
+
/// Sets the options for the calling app's background asset resource upload job configuration.
|
|
123
|
+
///
|
|
124
|
+
/// To reset the configuration's options to their default values, pass a newly-initialized `PHAssetResourceUploadJobOptions` instance.
|
|
125
|
+
///
|
|
126
|
+
/// - Parameters:
|
|
127
|
+
/// - options: the options to set.
|
|
128
|
+
/// - error: if the configuration could not be found, the caller isn't authorized, or the update failed, `false` is returned and an error is set on the `error` parameter.
|
|
129
|
+
- (BOOL)setUploadJobExtensionOptions:(PHAssetResourceUploadJobOptions *)options error:(NSError **)error API_AVAILABLE(ios(27.0), macCatalyst(27.0), macos(27.0)) API_UNAVAILABLE(tvos, visionos, watchos);
|
|
130
|
+
|
|
131
|
+
#pragma mark - Library availability
|
|
132
|
+
|
|
133
|
+
@property (readonly, atomic, nullable, strong) NSError *unavailabilityReason API_AVAILABLE(macos(10.15), ios(13), tvos(13));
|
|
134
|
+
|
|
135
|
+
- (void)registerAvailabilityObserver:(id<PHPhotoLibraryAvailabilityObserver>)observer API_AVAILABLE(macos(10.15), ios(13), tvos(13));
|
|
136
|
+
- (void)unregisterAvailabilityObserver:(id<PHPhotoLibraryAvailabilityObserver>)observer API_AVAILABLE(macos(10.15), ios(13), tvos(13));
|
|
137
|
+
|
|
138
|
+
#pragma mark - Applying Changes
|
|
139
|
+
|
|
140
|
+
// handlers are invoked on an arbitrary serial queue
|
|
141
|
+
// Nesting change requests will throw an exception
|
|
142
|
+
- (void)performChanges:(dispatch_block_t)changeBlock completionHandler:(nullable void(^)(BOOL success, NSError *__nullable error))completionHandler NS_SWIFT_ASYNC_THROWS_ON_FALSE(1);
|
|
143
|
+
- (BOOL)performChangesAndWait:(dispatch_block_t)changeBlock error:(NSError *__autoreleasing *)error;
|
|
144
|
+
|
|
145
|
+
#pragma mark - Change Handling
|
|
146
|
+
|
|
147
|
+
- (void)registerChangeObserver:(id<PHPhotoLibraryChangeObserver>)observer;
|
|
148
|
+
- (void)unregisterChangeObserver:(id<PHPhotoLibraryChangeObserver>)observer;
|
|
149
|
+
|
|
150
|
+
#pragma mark - Change History
|
|
151
|
+
|
|
152
|
+
/// Registers an observer to be notified when persistent changes occur in the photo library.
|
|
153
|
+
///
|
|
154
|
+
/// The observer is held weakly by the photo library. The observer's ``PHPhotoLibraryPersistentChangesObserver/photoLibraryPersistentChangesDidUpdate:`` method
|
|
155
|
+
/// is called on an arbitrary serial queue when changes are committed to the photo library. Use
|
|
156
|
+
/// ``fetchPersistentChangesSinceToken:error:`` to retrieve the specific changes.
|
|
157
|
+
///
|
|
158
|
+
/// Requires read-write photo library authorization (``PHAccessLevel/PHAccessLevelReadWrite``).
|
|
159
|
+
- (void)registerPersistentChangesObserver:(id<PHPhotoLibraryPersistentChangesObserver>)observer API_AVAILABLE(macos(27), ios(27), tvos(27), visionos(27));
|
|
160
|
+
|
|
161
|
+
/// Unregisters a previously registered persistent changes observer.
|
|
162
|
+
///
|
|
163
|
+
/// After calling this method, the observer will no longer receive persistent changes callbacks.
|
|
164
|
+
- (void)unregisterPersistentChangesObserver:(id<PHPhotoLibraryPersistentChangesObserver>)observer API_AVAILABLE(macos(27), ios(27), tvos(27), visionos(27));
|
|
165
|
+
|
|
166
|
+
- (nullable PHPersistentChangeFetchResult *)fetchPersistentChangesSinceToken:(PHPersistentChangeToken *)token error:(NSError **)error API_AVAILABLE(macos(13), ios(16), tvos(16));
|
|
167
|
+
|
|
168
|
+
@property (nonatomic, readonly) PHPersistentChangeToken *currentChangeToken API_AVAILABLE(macos(13), ios(16), tvos(16));
|
|
169
|
+
|
|
170
|
+
|
|
171
|
+
@end
|
|
172
|
+
|
|
173
|
+
API_AVAILABLE_END
|
|
174
|
+
NS_ASSUME_NONNULL_END
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
//
|
|
2
|
+
// PHProject.h
|
|
3
|
+
// Photos
|
|
4
|
+
//
|
|
5
|
+
// Copyright © 2018 Apple Inc. All rights reserved.
|
|
6
|
+
//
|
|
7
|
+
|
|
8
|
+
#import <Photos/PHObject.h>
|
|
9
|
+
#import <Photos/PHCollection.h>
|
|
10
|
+
|
|
11
|
+
NS_ASSUME_NONNULL_BEGIN
|
|
12
|
+
API_AVAILABLE_BEGIN(macos(10.13))
|
|
13
|
+
|
|
14
|
+
API_UNAVAILABLE_BEGIN(ios, tvos, macCatalyst)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
OS_EXPORT
|
|
18
|
+
NS_SWIFT_SENDABLE
|
|
19
|
+
@interface PHProject : PHAssetCollection
|
|
20
|
+
|
|
21
|
+
@property (nonatomic, readonly) NSData *projectExtensionData;
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
Property to determine if a project preview was previously set.
|
|
25
|
+
Use -[PHProjectChangeRequest setProjectPreviewImage:] to set a project preview.
|
|
26
|
+
*/
|
|
27
|
+
@property (nonatomic, readonly) BOOL hasProjectPreview;
|
|
28
|
+
|
|
29
|
+
@end
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
API_UNAVAILABLE_END
|
|
33
|
+
|
|
34
|
+
API_AVAILABLE_END
|
|
35
|
+
NS_ASSUME_NONNULL_END
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
//
|
|
2
|
+
// PHProjectChangeRequest.h
|
|
3
|
+
// Photos
|
|
4
|
+
//
|
|
5
|
+
// Copyright © 2018 Apple Inc. All rights reserved.
|
|
6
|
+
//
|
|
7
|
+
|
|
8
|
+
#import <Foundation/Foundation.h>
|
|
9
|
+
#import <Photos/PHChangeRequest.h>
|
|
10
|
+
|
|
11
|
+
@class UIImage;
|
|
12
|
+
@class PHAsset;
|
|
13
|
+
@class PHProject;
|
|
14
|
+
|
|
15
|
+
NS_ASSUME_NONNULL_BEGIN
|
|
16
|
+
API_AVAILABLE_BEGIN(macos(10.13))
|
|
17
|
+
|
|
18
|
+
API_UNAVAILABLE_BEGIN(ios, tvos, macCatalyst)
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
// PHProjectChangeRequest can only be created or used within a -[PHPhotoLibrary performChanges:] or -[PHPhotoLibrary performChangesAndWait:] block.
|
|
22
|
+
OS_EXPORT
|
|
23
|
+
@interface PHProjectChangeRequest : PHChangeRequest
|
|
24
|
+
|
|
25
|
+
- (instancetype)initWithProject:(PHProject *)project;
|
|
26
|
+
|
|
27
|
+
@property (nonatomic, copy, readwrite) NSString *title;
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
The projectExtensionData property is intended for storage of compressed, project specific data
|
|
31
|
+
only. Do not include things like rasterized images that can be locally cached in this data. The
|
|
32
|
+
total size of stored data is limited to 5 MB. Attempting to store more data than allowed will result
|
|
33
|
+
in an error.
|
|
34
|
+
*/
|
|
35
|
+
@property (nonatomic, copy, readwrite) NSData *projectExtensionData;
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
Sets the key asset representing the project.
|
|
39
|
+
Deprecated in macOS 10.14, please use -[PHProjectChangeRequest setProjectPreviewImage:] to provide a rendered preview instead.
|
|
40
|
+
*/
|
|
41
|
+
- (void)setKeyAsset:(nullable PHAsset *)keyAsset API_DEPRECATED_WITH_REPLACEMENT("-setProjectPreviewImage:", macos(10.13, 10.14)) API_UNAVAILABLE(ios, macCatalyst, tvos);
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
Use this method to update the project preview visible in Photos.
|
|
45
|
+
Extensions are expected to set a project preview:
|
|
46
|
+
- In or after -[id<PHProjectExtensionController> beginProjectWithExtensionContext:projectInfo:].
|
|
47
|
+
- In or after -[id<PHProjectExtensionController> resumeProjectWithExtensionContext:projectInfo:]
|
|
48
|
+
if -[PHProject hasProjectPreview] returns NO.
|
|
49
|
+
- Whenever the project changes in a way that a new preview is needed.
|
|
50
|
+
@param previewImage A rendered project preview, expected dimensions are 1024x1024.
|
|
51
|
+
*/
|
|
52
|
+
- (void)setProjectPreviewImage:(UIImage *)previewImage;
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
Removes the specified assets from the project.
|
|
56
|
+
@param assets A collection of PHAsset objects to be removed from the project.
|
|
57
|
+
*/
|
|
58
|
+
- (void)removeAssets:(id<NSFastEnumeration>)assets API_AVAILABLE(macos(10.14)) NS_REFINED_FOR_SWIFT;
|
|
59
|
+
|
|
60
|
+
@end
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
API_UNAVAILABLE_END
|
|
64
|
+
|
|
65
|
+
API_AVAILABLE_END
|
|
66
|
+
NS_ASSUME_NONNULL_END
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
---
|
|
2
|
+
Name: Photos
|
|
3
|
+
Classes:
|
|
4
|
+
# The below are methods for which overlays provide better implementations
|
|
5
|
+
- Name: PHChange
|
|
6
|
+
Methods:
|
|
7
|
+
- Selector: 'changeDetailsForObject:'
|
|
8
|
+
SwiftPrivate: true
|
|
9
|
+
MethodKind: Instance
|
|
10
|
+
- Selector: 'changeDetailsForFetchResult:'
|
|
11
|
+
SwiftPrivate: true
|
|
12
|
+
MethodKind: Instance
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Photos.h
|
|
3
|
+
// Photos
|
|
4
|
+
//
|
|
5
|
+
// Copyright (c) 2013 Apple Inc. All rights reserved.
|
|
6
|
+
//
|
|
7
|
+
|
|
8
|
+
#ifndef Photos_Photos_h
|
|
9
|
+
#define Photos_Photos_h
|
|
10
|
+
|
|
11
|
+
#import <Photos/PHPhotoLibrary.h>
|
|
12
|
+
#import <Photos/PhotosTypes.h>
|
|
13
|
+
#import <Photos/PHError.h>
|
|
14
|
+
|
|
15
|
+
#import <Photos/PHObject.h>
|
|
16
|
+
#import <Photos/PHAsset.h>
|
|
17
|
+
#import <Photos/PHAssetCollection.h>
|
|
18
|
+
#import <Photos/PHCollection.h>
|
|
19
|
+
#import <Photos/PHCollectionList.h>
|
|
20
|
+
#import <Photos/PHLivePhoto.h>
|
|
21
|
+
|
|
22
|
+
#import <Photos/PHFetchOptions.h>
|
|
23
|
+
#import <Photos/PHFetchResult.h>
|
|
24
|
+
|
|
25
|
+
#import <Photos/PHChange.h>
|
|
26
|
+
#import <Photos/PHPersistentChange.h>
|
|
27
|
+
#import <Photos/PHPersistentChangeToken.h>
|
|
28
|
+
#import <Photos/PHPersistentChangeFetchResult.h>
|
|
29
|
+
#import <Photos/PHPersistentObjectChangeDetails.h>
|
|
30
|
+
|
|
31
|
+
#import <Photos/PHAssetChangeRequest.h>
|
|
32
|
+
#import <Photos/PHAssetCreationRequest.h>
|
|
33
|
+
#import <Photos/PHAssetCollectionChangeRequest.h>
|
|
34
|
+
|
|
35
|
+
#import <Photos/PHAssetResourceUploadJob.h>
|
|
36
|
+
#import <Photos/PHAssetResourceUploadJobChangeRequest.h>
|
|
37
|
+
#import <Photos/PHAssetResourceUploadJobOptions.h>
|
|
38
|
+
|
|
39
|
+
#import <Photos/PHCollectionListChangeRequest.h>
|
|
40
|
+
#import <Photos/PHLivePhotoEditingContext.h>
|
|
41
|
+
|
|
42
|
+
#import <Photos/PHImageManager.h>
|
|
43
|
+
|
|
44
|
+
#import <Photos/PHAssetResourceManager.h>
|
|
45
|
+
#import <Photos/PHAssetResource.h>
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
#import <Photos/PHAdjustmentData.h>
|
|
49
|
+
#import <Photos/PHContentEditingInput.h>
|
|
50
|
+
#import <Photos/PHContentEditingOutput.h>
|
|
51
|
+
|
|
52
|
+
#import <Photos/PHProject.h>
|
|
53
|
+
#import <Photos/PHProjectChangeRequest.h>
|
|
54
|
+
#import <Photos/PHCloudIdentifier.h>
|
|
55
|
+
|
|
56
|
+
#import <Photos/PHAssetExtendedMetadata.h>
|
|
57
|
+
|
|
58
|
+
#endif
|