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
|
@@ -0,0 +1,332 @@
|
|
|
1
|
+
//
|
|
2
|
+
// PhotosTypes.h
|
|
3
|
+
// Photos
|
|
4
|
+
//
|
|
5
|
+
// Copyright (c) 2013 Apple Inc. All rights reserved.
|
|
6
|
+
//
|
|
7
|
+
|
|
8
|
+
#ifndef Photos_PhotosTypes_h
|
|
9
|
+
#define Photos_PhotosTypes_h
|
|
10
|
+
|
|
11
|
+
#import <Foundation/Foundation.h>
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
API_AVAILABLE_BEGIN(macos(10.11), ios(8), tvos(10))
|
|
15
|
+
|
|
16
|
+
#pragma mark - PHCollectionListTypes
|
|
17
|
+
|
|
18
|
+
typedef NS_ENUM(NSInteger, PHImageContentMode) {
|
|
19
|
+
PHImageContentModeAspectFit = 0,
|
|
20
|
+
PHImageContentModeAspectFill = 1,
|
|
21
|
+
PHImageContentModeDefault = PHImageContentModeAspectFit
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
typedef NS_ENUM(NSInteger, PHCollectionListType) {
|
|
25
|
+
|
|
26
|
+
PHCollectionListTypeMomentList API_DEPRECATED("Will be removed in a future release", ios(8, 13), tvos(10, 13)) API_UNAVAILABLE(macos) = 1,
|
|
27
|
+
|
|
28
|
+
PHCollectionListTypeFolder = 2,
|
|
29
|
+
PHCollectionListTypeSmartFolder = 3,
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
typedef NS_ENUM(NSInteger, PHCollectionListSubtype) {
|
|
33
|
+
|
|
34
|
+
// PHCollectionListTypeMomentList subtypes
|
|
35
|
+
|
|
36
|
+
PHCollectionListSubtypeMomentListCluster API_DEPRECATED("Will be removed in a future release", ios(8, 13), tvos(10, 13)) API_UNAVAILABLE(macos) = 1,
|
|
37
|
+
PHCollectionListSubtypeMomentListYear API_DEPRECATED("Will be removed in a future release", ios(8, 13), tvos(10, 13)) API_UNAVAILABLE(macos) = 2,
|
|
38
|
+
|
|
39
|
+
// PHCollectionListTypeFolder subtypes
|
|
40
|
+
|
|
41
|
+
/// A user-configurable folder containing albums or other folders.
|
|
42
|
+
///
|
|
43
|
+
/// Can be created, or modified via ``/Photos/PHCollectionListChangeRequest``
|
|
44
|
+
PHCollectionListSubtypeRegularFolder = 100,
|
|
45
|
+
|
|
46
|
+
/// The collection list that contains the top-level user collections.
|
|
47
|
+
///
|
|
48
|
+
/// There is always one root folder in the library and does not allow ``/Photos/PHCollectionEditOperation/PHCollectionEditOperationRename`` or ``/Photos/PHCollectionEditOperation/PHCollectionEditOperationDelete``
|
|
49
|
+
PHCollectionListSubtypeRootFolder API_AVAILABLE(macos(27), ios(27), tvos(27), visionos(27)) = 101,
|
|
50
|
+
|
|
51
|
+
// PHCollectionListTypeSmartFolder subtypes
|
|
52
|
+
PHCollectionListSubtypeSmartFolderEvents = 200,
|
|
53
|
+
PHCollectionListSubtypeSmartFolderFaces = 201,
|
|
54
|
+
|
|
55
|
+
// Used for fetching if you don't care about the exact subtype
|
|
56
|
+
PHCollectionListSubtypeAny = NSIntegerMax
|
|
57
|
+
};
|
|
58
|
+
|
|
59
|
+
#pragma mark - PHCollection types
|
|
60
|
+
|
|
61
|
+
typedef NS_ENUM(NSInteger, PHCollectionEditOperation) {
|
|
62
|
+
PHCollectionEditOperationDeleteContent = 1, // Delete things it contains
|
|
63
|
+
PHCollectionEditOperationRemoveContent = 2, // Remove things it contains, they're not deleted from the library
|
|
64
|
+
PHCollectionEditOperationAddContent = 3, // Add things from other collection
|
|
65
|
+
PHCollectionEditOperationCreateContent = 4, // Create new things, or duplicate them from others in the same container
|
|
66
|
+
PHCollectionEditOperationRearrangeContent = 5, // Change the order of things
|
|
67
|
+
PHCollectionEditOperationDelete = 6, // Deleting of the container, not the content
|
|
68
|
+
PHCollectionEditOperationRename = 7, // Renaming of the container, not the content
|
|
69
|
+
};
|
|
70
|
+
|
|
71
|
+
#pragma mark - PHAssetCollection types
|
|
72
|
+
|
|
73
|
+
typedef NS_ENUM(NSInteger, PHAssetCollectionType) {
|
|
74
|
+
PHAssetCollectionTypeAlbum = 1,
|
|
75
|
+
PHAssetCollectionTypeSmartAlbum = 2,
|
|
76
|
+
|
|
77
|
+
PHAssetCollectionTypeMoment API_DEPRECATED("Will be removed in a future release", ios(8, 13), tvos(10, 13)) API_UNAVAILABLE(macos) = 3,
|
|
78
|
+
|
|
79
|
+
};
|
|
80
|
+
|
|
81
|
+
typedef NS_ENUM(NSInteger, PHAssetCollectionSubtype) {
|
|
82
|
+
|
|
83
|
+
// PHAssetCollectionTypeAlbum regular subtypes
|
|
84
|
+
PHAssetCollectionSubtypeAlbumRegular = 2,
|
|
85
|
+
PHAssetCollectionSubtypeAlbumSyncedEvent = 3,
|
|
86
|
+
PHAssetCollectionSubtypeAlbumSyncedFaces = 4,
|
|
87
|
+
PHAssetCollectionSubtypeAlbumSyncedAlbum = 5,
|
|
88
|
+
PHAssetCollectionSubtypeAlbumImported = 6,
|
|
89
|
+
|
|
90
|
+
// PHAssetCollectionTypeAlbum shared subtypes
|
|
91
|
+
PHAssetCollectionSubtypeAlbumMyPhotoStream = 100,
|
|
92
|
+
PHAssetCollectionSubtypeAlbumCloudShared = 101,
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
// PHAssetCollectionTypeSmartAlbum subtypes
|
|
96
|
+
PHAssetCollectionSubtypeSmartAlbumGeneric = 200,
|
|
97
|
+
PHAssetCollectionSubtypeSmartAlbumPanoramas = 201,
|
|
98
|
+
PHAssetCollectionSubtypeSmartAlbumVideos = 202,
|
|
99
|
+
PHAssetCollectionSubtypeSmartAlbumFavorites = 203,
|
|
100
|
+
PHAssetCollectionSubtypeSmartAlbumTimelapses = 204,
|
|
101
|
+
PHAssetCollectionSubtypeSmartAlbumAllHidden = 205,
|
|
102
|
+
PHAssetCollectionSubtypeSmartAlbumRecentlyAdded = 206,
|
|
103
|
+
PHAssetCollectionSubtypeSmartAlbumBursts = 207,
|
|
104
|
+
PHAssetCollectionSubtypeSmartAlbumSlomoVideos = 208,
|
|
105
|
+
PHAssetCollectionSubtypeSmartAlbumUserLibrary = 209,
|
|
106
|
+
PHAssetCollectionSubtypeSmartAlbumSelfPortraits API_AVAILABLE(ios(9)) = 210,
|
|
107
|
+
PHAssetCollectionSubtypeSmartAlbumScreenshots API_AVAILABLE(ios(9)) = 211,
|
|
108
|
+
PHAssetCollectionSubtypeSmartAlbumDepthEffect API_AVAILABLE(macos(10.13), ios(10.2), tvos(10.1)) = 212,
|
|
109
|
+
PHAssetCollectionSubtypeSmartAlbumLivePhotos API_AVAILABLE(macos(10.13), ios(10.3), tvos(10.2)) = 213,
|
|
110
|
+
PHAssetCollectionSubtypeSmartAlbumAnimated API_AVAILABLE(macos(10.15), ios(11), tvos(11)) = 214,
|
|
111
|
+
PHAssetCollectionSubtypeSmartAlbumLongExposures API_AVAILABLE(macos(10.15), ios(11), tvos(11)) = 215,
|
|
112
|
+
PHAssetCollectionSubtypeSmartAlbumUnableToUpload API_AVAILABLE(macos(10.15), ios(13), tvos(13)) = 216,
|
|
113
|
+
PHAssetCollectionSubtypeSmartAlbumRAW API_AVAILABLE(macos(12), ios(15), tvos(15)) = 217,
|
|
114
|
+
PHAssetCollectionSubtypeSmartAlbumCinematic API_AVAILABLE(macos(12), ios(15), tvos(15)) = 218,
|
|
115
|
+
|
|
116
|
+
/// A Smart Album that groups all photos and videos captured as spatial media.
|
|
117
|
+
PHAssetCollectionSubtypeSmartAlbumSpatial API_AVAILABLE(macos(15), ios(18), tvos(18)) = 219,
|
|
118
|
+
|
|
119
|
+
/// A Smart Album that groups all videos captured using the device’s screenrecordings function.
|
|
120
|
+
PHAssetCollectionSubtypeSmartAlbumScreenRecordings API_AVAILABLE(macos(11), ios(14), tvos(14)) = 220,
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
// Used for fetching, if you don't care about the exact subtype
|
|
124
|
+
PHAssetCollectionSubtypeAny = NSIntegerMax
|
|
125
|
+
};
|
|
126
|
+
|
|
127
|
+
#pragma mark - PHAsset types
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
typedef NS_ENUM(NSInteger, PHAssetEditOperation) {
|
|
131
|
+
PHAssetEditOperationDelete = 1,
|
|
132
|
+
PHAssetEditOperationContent = 2,
|
|
133
|
+
PHAssetEditOperationProperties = 3,
|
|
134
|
+
|
|
135
|
+
};
|
|
136
|
+
|
|
137
|
+
typedef NS_ENUM(NSInteger, PHAssetPlaybackStyle) {
|
|
138
|
+
PHAssetPlaybackStyleUnsupported = 0,
|
|
139
|
+
PHAssetPlaybackStyleImage = 1,
|
|
140
|
+
PHAssetPlaybackStyleImageAnimated = 2,
|
|
141
|
+
PHAssetPlaybackStyleLivePhoto = 3,
|
|
142
|
+
PHAssetPlaybackStyleVideo = 4,
|
|
143
|
+
PHAssetPlaybackStyleVideoLooping = 5,
|
|
144
|
+
} API_AVAILABLE(macos(10.13), ios(11), tvos(11)) NS_SWIFT_NAME(PHAsset.PlaybackStyle);
|
|
145
|
+
|
|
146
|
+
// Playback variation describes the Live Photo presentation effect applied to an asset (for example, Long Exposure).
|
|
147
|
+
// This MUST stay in sync with PFMetadataPlaybackVariation (PhotosFormats/PFMetadataDefine.h)
|
|
148
|
+
typedef NS_ENUM(NSInteger, PHAssetPlaybackVariation) {
|
|
149
|
+
PHAssetPlaybackVariationNone = 0, // Default Live Photo presentation.
|
|
150
|
+
PHAssetPlaybackVariationAutoloop = 1, // Loop variation.
|
|
151
|
+
PHAssetPlaybackVariationMirror = 2, // Bounce variation.
|
|
152
|
+
PHAssetPlaybackVariationLongExposure = 3, // Long Exposure variation.
|
|
153
|
+
} API_AVAILABLE(macos(10.15), ios(11), tvos(11)) NS_SWIFT_NAME(PHAsset.PlaybackVariation);
|
|
154
|
+
|
|
155
|
+
typedef NS_ENUM(NSInteger, PHAssetMediaType) {
|
|
156
|
+
PHAssetMediaTypeUnknown = 0,
|
|
157
|
+
PHAssetMediaTypeImage = 1,
|
|
158
|
+
PHAssetMediaTypeVideo = 2,
|
|
159
|
+
PHAssetMediaTypeAudio = 3,
|
|
160
|
+
};
|
|
161
|
+
|
|
162
|
+
typedef NS_OPTIONS(NSUInteger, PHAssetMediaSubtype) {
|
|
163
|
+
PHAssetMediaSubtypeNone = 0,
|
|
164
|
+
|
|
165
|
+
// Photo subtypes
|
|
166
|
+
PHAssetMediaSubtypePhotoPanorama = (1UL << 0),
|
|
167
|
+
PHAssetMediaSubtypePhotoHDR = (1UL << 1),
|
|
168
|
+
PHAssetMediaSubtypePhotoScreenshot API_AVAILABLE(ios(9)) = (1UL << 2),
|
|
169
|
+
PHAssetMediaSubtypePhotoLive API_AVAILABLE(ios(9.1)) = (1UL << 3),
|
|
170
|
+
PHAssetMediaSubtypePhotoDepthEffect API_AVAILABLE(macos(10.12.2), ios(10.2), tvos(10.1)) = (1UL << 4),
|
|
171
|
+
PHAssetMediaSubtypePhotoAnimation API_AVAILABLE(macos(10.15), ios(11), tvos(11), visionos(1)) = (1UL << 6), /// The media subtype is a photo animation such as a GIF, animated PNGs, etc.
|
|
172
|
+
PHAssetMediaSubtypeSpatialMedia API_AVAILABLE(macos(13), ios(16), tvos(16)) = (1UL << 10),
|
|
173
|
+
|
|
174
|
+
// Video subtypes
|
|
175
|
+
PHAssetMediaSubtypeVideoStreamed = (1UL << 16),
|
|
176
|
+
PHAssetMediaSubtypeVideoHighFrameRate = (1UL << 17),
|
|
177
|
+
PHAssetMediaSubtypeVideoTimelapse = (1UL << 18),
|
|
178
|
+
PHAssetMediaSubtypeVideoScreenRecording API_AVAILABLE(macos(10.15), ios(13), tvos(13)) = (1UL << 19),
|
|
179
|
+
PHAssetMediaSubtypeVideoCinematic API_AVAILABLE(macos(12), ios(15), tvos(15)) = (1UL << 21),
|
|
180
|
+
};
|
|
181
|
+
|
|
182
|
+
|
|
183
|
+
typedef NS_OPTIONS(NSUInteger, PHAssetBurstSelectionType) {
|
|
184
|
+
PHAssetBurstSelectionTypeNone = 0,
|
|
185
|
+
PHAssetBurstSelectionTypeAutoPick = (1UL << 0),
|
|
186
|
+
PHAssetBurstSelectionTypeUserPick = (1UL << 1),
|
|
187
|
+
};
|
|
188
|
+
|
|
189
|
+
/// This value determines which original resource is used for unadjusted asset derivatives and as the unadjusted resource provided/used for content adjustments.
|
|
190
|
+
///
|
|
191
|
+
/// This choice is only meaningful for assets that have a RAW alternate, such as
|
|
192
|
+
/// RAW+JPEG assets. For all other assets, the asset has a single original resource
|
|
193
|
+
/// and the value is always ``PHOriginalResourceChoiceCompressed``.
|
|
194
|
+
|
|
195
|
+
typedef NS_ENUM(NSInteger, PHOriginalResourceChoice) {
|
|
196
|
+
/// The compressed original resource, such as a JPEG or HEIC, is used.
|
|
197
|
+
PHOriginalResourceChoiceCompressed = 0,
|
|
198
|
+
/// The RAW original resource is used.
|
|
199
|
+
PHOriginalResourceChoiceRaw = 1,
|
|
200
|
+
|
|
201
|
+
} NS_SWIFT_NAME(PHAsset.OriginalResourceChoice)
|
|
202
|
+
API_AVAILABLE(macos(27), ios(27), tvos(27), visionos(27));
|
|
203
|
+
|
|
204
|
+
|
|
205
|
+
typedef NS_OPTIONS(NSUInteger, PHAssetSourceType) {
|
|
206
|
+
PHAssetSourceTypeNone = 0,
|
|
207
|
+
PHAssetSourceTypeUserLibrary = (1UL << 0),
|
|
208
|
+
PHAssetSourceTypeCloudShared = (1UL << 1),
|
|
209
|
+
PHAssetSourceTypeiTunesSynced = (1UL << 2),
|
|
210
|
+
|
|
211
|
+
} API_AVAILABLE(ios(9));
|
|
212
|
+
|
|
213
|
+
|
|
214
|
+
typedef NS_ENUM(NSInteger, PHAssetAdjustmentsState) {
|
|
215
|
+
PHAssetAdjustmentsStateNone = 0, // Asset has no adjustments applied
|
|
216
|
+
|
|
217
|
+
|
|
218
|
+
|
|
219
|
+
PHAssetAdjustmentsStateUserAdjusted = 2, // Asset has a user adjustment applied
|
|
220
|
+
PHAssetAdjustmentsStateCameraAutoAdjusted = 3, // Asset has a automatic Camera adjustment applied, no user adjustments
|
|
221
|
+
} NS_SWIFT_NAME(PHAsset.AdjustmentsState) API_AVAILABLE(macos(15), ios(18), tvos(18), visionos(2));
|
|
222
|
+
|
|
223
|
+
#pragma mark - PHAssetResourceType
|
|
224
|
+
|
|
225
|
+
/// Identifies a specific type of resource associated with a photo or video asset.
|
|
226
|
+
///
|
|
227
|
+
/// The set of resource types may expand in future OS releases. Additionally, assets synced from a device running
|
|
228
|
+
/// a newer OS may contain resource types that are not defined in the SDK version your app was built with.
|
|
229
|
+
///
|
|
230
|
+
/// When switching over resource type values, always include an `@unknown default` case that handles
|
|
231
|
+
/// unrecognized types gracefully — for example, by skipping the resource or preserving it as opaque data.
|
|
232
|
+
/// Do not use `fatalError` or other trapping assertions for unknown values.
|
|
233
|
+
///
|
|
234
|
+
/// If your app performs backup and restore of photo library assets, preserve all resources including those with
|
|
235
|
+
/// unrecognized types to maintain full fidelity when restoring to a device that may understand those types.
|
|
236
|
+
typedef NS_ENUM(NSInteger, PHAssetResourceType) {
|
|
237
|
+
PHAssetResourceTypePhoto = 1,
|
|
238
|
+
PHAssetResourceTypeVideo = 2,
|
|
239
|
+
PHAssetResourceTypeAudio = 3,
|
|
240
|
+
PHAssetResourceTypeAlternatePhoto = 4,
|
|
241
|
+
PHAssetResourceTypeFullSizePhoto = 5,
|
|
242
|
+
PHAssetResourceTypeFullSizeVideo = 6,
|
|
243
|
+
PHAssetResourceTypeAdjustmentData = 7,
|
|
244
|
+
PHAssetResourceTypeAdjustmentBasePhoto = 8,
|
|
245
|
+
PHAssetResourceTypePairedVideo API_AVAILABLE(ios(9.1)) = 9,
|
|
246
|
+
PHAssetResourceTypeFullSizePairedVideo API_AVAILABLE(macos(10.15), ios(10)) = 10,
|
|
247
|
+
PHAssetResourceTypeAdjustmentBasePairedVideo API_AVAILABLE(macos(10.15), ios(10)) = 11,
|
|
248
|
+
PHAssetResourceTypeAdjustmentBaseVideo API_AVAILABLE(macos(10.15), ios(13)) = 12,
|
|
249
|
+
|
|
250
|
+
PHAssetResourceTypePhotoProxy API_AVAILABLE(macos(14), ios(17))= 19,
|
|
251
|
+
|
|
252
|
+
|
|
253
|
+
|
|
254
|
+
|
|
255
|
+
|
|
256
|
+
} API_AVAILABLE(ios(9));
|
|
257
|
+
|
|
258
|
+
|
|
259
|
+
#pragma mark - PHAssetResourceUploadJob types
|
|
260
|
+
|
|
261
|
+
/// The states of an upload job.
|
|
262
|
+
typedef NS_ENUM(NSInteger, PHAssetResourceUploadJobState) {
|
|
263
|
+
/// The job has been registered.
|
|
264
|
+
PHAssetResourceUploadJobStateRegistered = 1,
|
|
265
|
+
/// A request has been made to send the asset resource to the destination, but has not yet been fulfilled.
|
|
266
|
+
PHAssetResourceUploadJobStatePending = 2,
|
|
267
|
+
/// The job has failed to send over.
|
|
268
|
+
PHAssetResourceUploadJobStateFailed = 3,
|
|
269
|
+
/// The job has sent over successfully.
|
|
270
|
+
PHAssetResourceUploadJobStateSucceeded = 4,
|
|
271
|
+
/// The job has been cancelled.
|
|
272
|
+
PHAssetResourceUploadJobStateCancelled API_AVAILABLE(ios(26.4)) = 5,
|
|
273
|
+
|
|
274
|
+
} NS_SWIFT_NAME(PHAssetResourceUploadJob.State) API_AVAILABLE(ios(26.1), macCatalyst(27.0), macos(27.0)) API_UNAVAILABLE(tvos, visionos, watchos);
|
|
275
|
+
|
|
276
|
+
|
|
277
|
+
/// The types of an upload job
|
|
278
|
+
typedef NS_ENUM(int16_t, PHAssetResourceUploadJobType) {
|
|
279
|
+
/// An upload job type (will download the resource from iCloud if required. then upload)
|
|
280
|
+
PHAssetResourceUploadJobTypeUpload = 0,
|
|
281
|
+
/// A download job type (will download the resource from iCloud if required)
|
|
282
|
+
PHAssetResourceUploadJobTypeDownloadOnly = 1,
|
|
283
|
+
} NS_SWIFT_NAME(PHAssetResourceUploadJob.Type) API_AVAILABLE(ios(26.4), macCatalyst(27.0), macos(27.0)) API_UNAVAILABLE(tvos, visionos, watchos);
|
|
284
|
+
|
|
285
|
+
/// An action to perform on an upload job.
|
|
286
|
+
///
|
|
287
|
+
/// Determine the available jobs for an action by calling the ``PHAssetResourceUploadJob/fetchJobsWithAction:options:`` method.
|
|
288
|
+
typedef NS_ENUM(NSInteger, PHAssetResourceUploadJobAction) {
|
|
289
|
+
|
|
290
|
+
/// A job that requires acknowledgement.
|
|
291
|
+
///
|
|
292
|
+
/// An acknowledgeable job has a ``PHAssetResourceUploadJob/state`` of `succeeded` or `failed`
|
|
293
|
+
/// and hasn't been acknowledged.
|
|
294
|
+
///
|
|
295
|
+
/// Call ``PHAssetResourceUploadJobChangeRequest/acknowledge`` to acknowledge a job
|
|
296
|
+
/// and free queue capacity for new uploads.
|
|
297
|
+
PHAssetResourceUploadJobActionAcknowledge = 1,
|
|
298
|
+
|
|
299
|
+
/// A job to retry processing.
|
|
300
|
+
///
|
|
301
|
+
/// A retryable job has a ``PHAssetResourceUploadJob/state`` of `failed` and hasn't previously been retried.
|
|
302
|
+
///
|
|
303
|
+
/// Call ``PHAssetResourceUploadJobChangeRequest/retryWithDestination:`` to retry the job.
|
|
304
|
+
PHAssetResourceUploadJobActionRetry = 2,
|
|
305
|
+
|
|
306
|
+
/// A job to process.
|
|
307
|
+
///
|
|
308
|
+
/// A processable job has a ``PHAssetResourceUploadJob/state`` of `registered` or `pending`.
|
|
309
|
+
PHAssetResourceUploadJobActionProcess API_AVAILABLE(ios(26.5)) = 3,
|
|
310
|
+
} NS_SWIFT_NAME(PHAssetResourceUploadJob.Action) API_AVAILABLE(ios(26.1), macCatalyst(27.0), macos(27.0)) API_UNAVAILABLE(tvos, visionos, watchos);
|
|
311
|
+
|
|
312
|
+
/// Describes a rating for an asset.
|
|
313
|
+
typedef NS_ENUM(NSInteger, PHAssetRating) {
|
|
314
|
+
PHAssetRatingUnset = 0,
|
|
315
|
+
PHAssetRatingOne,
|
|
316
|
+
PHAssetRatingTwo,
|
|
317
|
+
PHAssetRatingThree,
|
|
318
|
+
PHAssetRatingFour,
|
|
319
|
+
PHAssetRatingFive
|
|
320
|
+
} NS_SWIFT_NAME(PHAsset.Rating) API_AVAILABLE(macos(27), ios(27), tvos(27), visionos(27));
|
|
321
|
+
|
|
322
|
+
#pragma mark - PHObjectTypes
|
|
323
|
+
|
|
324
|
+
typedef NS_ENUM(NSInteger, PHObjectType) {
|
|
325
|
+
PHObjectTypeAsset = 1,
|
|
326
|
+
PHObjectTypeAssetCollection = 2,
|
|
327
|
+
PHObjectTypeCollectionList = 3,
|
|
328
|
+
} API_AVAILABLE(macos(13), ios(16), tvos(16));
|
|
329
|
+
|
|
330
|
+
API_AVAILABLE_END
|
|
331
|
+
|
|
332
|
+
#endif
|
package/sdk/ios/System/Library/Frameworks/PhotosUI.framework/Headers/PHContentEditingController.h
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
//
|
|
2
|
+
// PHContentEditingController.h
|
|
3
|
+
// PhotosUI
|
|
4
|
+
//
|
|
5
|
+
// Copyright (c) 2014 Apple Inc. All rights reserved.
|
|
6
|
+
//
|
|
7
|
+
|
|
8
|
+
#import <Foundation/Foundation.h>
|
|
9
|
+
|
|
10
|
+
#if TARGET_OS_IPHONE
|
|
11
|
+
#import <UIKit/UIImage.h>
|
|
12
|
+
#elif TARGET_OS_OSX
|
|
13
|
+
@class NSImage;
|
|
14
|
+
#endif
|
|
15
|
+
|
|
16
|
+
NS_ASSUME_NONNULL_BEGIN
|
|
17
|
+
API_AVAILABLE_BEGIN(macos(10.11), ios(8), macCatalyst(14))
|
|
18
|
+
|
|
19
|
+
@class PHAdjustmentData, PHContentEditingInput, PHContentEditingOutput;
|
|
20
|
+
|
|
21
|
+
// Protocol to which the principal view controller of the extension must conform.
|
|
22
|
+
NS_SWIFT_UI_ACTOR
|
|
23
|
+
@protocol PHContentEditingController <NSObject>
|
|
24
|
+
@required
|
|
25
|
+
|
|
26
|
+
// Query whether the receiver can handle (i.e. can decode and render) the given adjustment data.
|
|
27
|
+
- (BOOL)canHandleAdjustmentData:(PHAdjustmentData *)adjustmentData;
|
|
28
|
+
|
|
29
|
+
// Provides the input for the editing session. The placeholder image represents the current version of the asset (with adjustments baked in), and can be used as UI placeholder, in case rendering the adjustments from the input cannot be done in a timely fashion.
|
|
30
|
+
#if TARGET_OS_IPHONE
|
|
31
|
+
- (void)startContentEditingWithInput:(PHContentEditingInput *)contentEditingInput placeholderImage:(UIImage *)placeholderImage;
|
|
32
|
+
#elif TARGET_OS_OSX
|
|
33
|
+
- (void)startContentEditingWithInput:(PHContentEditingInput *)contentEditingInput placeholderImage:(NSImage *)placeholderImage;
|
|
34
|
+
#endif
|
|
35
|
+
|
|
36
|
+
// Called when the user finishes the editing session. The receiver should prevent the user from editing the asset further. Also, it should create the editing output and call the completion handler. The completion handler returns after the output has been consumed, so it is safe to perform clean up after it returns. The completion handler can (and should best) be called on a background queue.
|
|
37
|
+
- (void)finishContentEditingWithCompletionHandler:(void (^)(PHContentEditingOutput * _Nullable))completionHandler;
|
|
38
|
+
|
|
39
|
+
// Called if the user cancels the editing session. (Can be called while the receiver is producing the editing output.)
|
|
40
|
+
- (void)cancelContentEditing;
|
|
41
|
+
|
|
42
|
+
// Returns whether the user should be prompted when canceling the editing session.
|
|
43
|
+
@property (readonly, nonatomic) BOOL shouldShowCancelConfirmation;
|
|
44
|
+
|
|
45
|
+
@end
|
|
46
|
+
|
|
47
|
+
API_AVAILABLE_END
|
|
48
|
+
NS_ASSUME_NONNULL_END
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
//
|
|
2
|
+
// PHLivePhotoView.h
|
|
3
|
+
// PhotosUI
|
|
4
|
+
//
|
|
5
|
+
// Copyright © 2015 Apple Inc. All rights reserved.
|
|
6
|
+
//
|
|
7
|
+
|
|
8
|
+
#import <TargetConditionals.h>
|
|
9
|
+
|
|
10
|
+
#if TARGET_OS_IPHONE
|
|
11
|
+
#import <Photos/Photos.h>
|
|
12
|
+
#import <UIKit/UIKit.h>
|
|
13
|
+
#elif TARGET_OS_OSX
|
|
14
|
+
#import <AppKit/AppKit.h>
|
|
15
|
+
#import <Photos/PHLivePhoto.h>
|
|
16
|
+
#endif
|
|
17
|
+
|
|
18
|
+
NS_ASSUME_NONNULL_BEGIN
|
|
19
|
+
#if TARGET_OS_IPHONE
|
|
20
|
+
API_AVAILABLE_BEGIN(ios(9.1), tvos(10))
|
|
21
|
+
#elif TARGET_OS_OSX
|
|
22
|
+
API_AVAILABLE_BEGIN(macos(10.12))
|
|
23
|
+
#endif
|
|
24
|
+
|
|
25
|
+
@protocol PHLivePhotoViewDelegate;
|
|
26
|
+
|
|
27
|
+
#if TARGET_OS_IPHONE
|
|
28
|
+
typedef NS_OPTIONS(NSUInteger, PHLivePhotoBadgeOptions) {
|
|
29
|
+
PHLivePhotoBadgeOptionsOverContent = 1 << 0, ///< Include treatments so this image can be shown directly over the content of the Live Photo
|
|
30
|
+
PHLivePhotoBadgeOptionsLiveOff = 1 << 1, ///< To indicate that the Live Photo aspect is turned off and it will be treated as a still (e.g. for sharing)
|
|
31
|
+
} NS_SWIFT_SENDABLE;
|
|
32
|
+
#endif
|
|
33
|
+
|
|
34
|
+
typedef NS_ENUM(NSInteger, PHLivePhotoViewPlaybackStyle) {
|
|
35
|
+
PHLivePhotoViewPlaybackStyleUndefined = 0,
|
|
36
|
+
PHLivePhotoViewPlaybackStyleFull,
|
|
37
|
+
PHLivePhotoViewPlaybackStyleHint,
|
|
38
|
+
} NS_SWIFT_SENDABLE;
|
|
39
|
+
|
|
40
|
+
#if TARGET_OS_OSX
|
|
41
|
+
typedef NS_ENUM(NSInteger, PHLivePhotoViewContentMode) {
|
|
42
|
+
PHLivePhotoViewContentModeAspectFit,
|
|
43
|
+
PHLivePhotoViewContentModeAspectFill,
|
|
44
|
+
} NS_SWIFT_SENDABLE;
|
|
45
|
+
#endif
|
|
46
|
+
|
|
47
|
+
OS_EXPORT
|
|
48
|
+
#if TARGET_OS_IPHONE
|
|
49
|
+
@interface PHLivePhotoView : UIView
|
|
50
|
+
#elif TARGET_OS_OSX
|
|
51
|
+
@interface PHLivePhotoView : NSView
|
|
52
|
+
#endif
|
|
53
|
+
|
|
54
|
+
#if TARGET_OS_IPHONE
|
|
55
|
+
/// System badge images representing Live Photo content
|
|
56
|
+
+ (UIImage *)livePhotoBadgeImageWithOptions:(PHLivePhotoBadgeOptions)badgeOptions;
|
|
57
|
+
#endif
|
|
58
|
+
|
|
59
|
+
@property (readwrite, nonatomic, weak, nullable) id<PHLivePhotoViewDelegate> delegate;
|
|
60
|
+
|
|
61
|
+
/// Live photo displayed in the receiver.
|
|
62
|
+
@property (readwrite, nonatomic, strong, nullable) PHLivePhoto *livePhoto;
|
|
63
|
+
|
|
64
|
+
#if TARGET_OS_OSX
|
|
65
|
+
/// The mode in which the receiver will display its content. Defaults to PHLivePhotoViewContentModeAspectFit.
|
|
66
|
+
@property (readwrite, nonatomic, assign) PHLivePhotoViewContentMode contentMode;
|
|
67
|
+
#endif
|
|
68
|
+
|
|
69
|
+
/// The rectangle, in the unit coordinate space, that defines the portion of the Live Photo contents that should be displayed. In this coordinate system, the point `{0.0,0.0}` refers to the upper left corner of the Live Photo, and `{1.0,1.0}` refers to the bottom right corner.
|
|
70
|
+
@property (nonatomic) CGRect contentsRect API_AVAILABLE(macos(14), ios(17), tvos(17));
|
|
71
|
+
|
|
72
|
+
#if TARGET_OS_OSX
|
|
73
|
+
/// The audio volume during playback
|
|
74
|
+
@property (readwrite, nonatomic, assign) float audioVolume;
|
|
75
|
+
#endif
|
|
76
|
+
|
|
77
|
+
/// Indicates whether the audio of the Live Photo is muted.
|
|
78
|
+
@property (readwrite, nonatomic, assign, getter=isMuted) BOOL muted;
|
|
79
|
+
|
|
80
|
+
#if TARGET_OS_IPHONE
|
|
81
|
+
/// Gesture used to trigger playback. By default, added to the receiver. Can be moved to a different view.
|
|
82
|
+
@property (readonly, nonatomic, strong) UIGestureRecognizer *playbackGestureRecognizer;
|
|
83
|
+
#endif
|
|
84
|
+
|
|
85
|
+
/// The following methods allow the client to manually trigger playback. If the live photo is changed during playback, it will be immediately interrupted.
|
|
86
|
+
- (void)startPlaybackWithStyle:(PHLivePhotoViewPlaybackStyle)playbackStyle;
|
|
87
|
+
- (void)stopPlayback;
|
|
88
|
+
|
|
89
|
+
#if TARGET_OS_OSX
|
|
90
|
+
/// Stops live photo playback. If animated is NO, the photo is immediately displayed.
|
|
91
|
+
- (void)stopPlaybackAnimated:(BOOL)animated;
|
|
92
|
+
|
|
93
|
+
/// Directly access the livePhotoBadge in cases where it should be added to a different place in the view hierarchy and not the live photo view. This can be useful when the live photo view is added to a scroll view.
|
|
94
|
+
@property (readonly, nonatomic, strong, nullable) NSView *livePhotoBadgeView;
|
|
95
|
+
#endif
|
|
96
|
+
@end
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
OS_EXPORT
|
|
100
|
+
NS_SWIFT_UI_ACTOR
|
|
101
|
+
@protocol PHLivePhotoViewDelegate <NSObject>
|
|
102
|
+
@optional
|
|
103
|
+
|
|
104
|
+
- (BOOL)livePhotoView:(PHLivePhotoView *)livePhotoView canBeginPlaybackWithStyle:(PHLivePhotoViewPlaybackStyle)playbackStyle;
|
|
105
|
+
|
|
106
|
+
- (void)livePhotoView:(PHLivePhotoView *)livePhotoView willBeginPlaybackWithStyle:(PHLivePhotoViewPlaybackStyle)playbackStyle;
|
|
107
|
+
|
|
108
|
+
- (void)livePhotoView:(PHLivePhotoView *)livePhotoView didEndPlaybackWithStyle:(PHLivePhotoViewPlaybackStyle)playbackStyle;
|
|
109
|
+
|
|
110
|
+
#if TARGET_OS_IPHONE // {
|
|
111
|
+
// This will be called before gestureRecognizer get touch info (point location), so we need to provide the touch to delegate to decide.
|
|
112
|
+
- (NSTimeInterval)livePhotoView:(PHLivePhotoView *)livePhotoView extraMinimumTouchDurationForTouch:(UITouch *)touch withStyle:(PHLivePhotoViewPlaybackStyle)playbackStyle;
|
|
113
|
+
#endif // }
|
|
114
|
+
@end
|
|
115
|
+
|
|
116
|
+
API_AVAILABLE_END
|
|
117
|
+
NS_ASSUME_NONNULL_END
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
//
|
|
2
|
+
// PHPhotoLibrary+PhotosUISupport.h
|
|
3
|
+
// PhotosUI
|
|
4
|
+
//
|
|
5
|
+
// Copyright © 2020 Apple Inc. All rights reserved.
|
|
6
|
+
//
|
|
7
|
+
|
|
8
|
+
#import <Photos/Photos.h>
|
|
9
|
+
|
|
10
|
+
#if TARGET_OS_IPHONE || TARGET_OS_MACCATALYST
|
|
11
|
+
@class UIWindowScene;
|
|
12
|
+
@class UIViewController;
|
|
13
|
+
#else
|
|
14
|
+
@class NSWindow;
|
|
15
|
+
#endif
|
|
16
|
+
|
|
17
|
+
NS_ASSUME_NONNULL_BEGIN
|
|
18
|
+
|
|
19
|
+
#if TARGET_OS_IPHONE || TARGET_OS_MACCATALYST
|
|
20
|
+
|
|
21
|
+
API_AVAILABLE_BEGIN(ios(14))
|
|
22
|
+
API_UNAVAILABLE_BEGIN(macos, tvos, watchos)
|
|
23
|
+
|
|
24
|
+
@interface PHPhotoLibrary (PhotosUISupport_LimitedLibraryPicker)
|
|
25
|
+
|
|
26
|
+
#pragma mark - Limited library picker
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
@abstract Prompt the user to update their limited library selection by presenting the limited library image picker when the user has opted into limited library access mode (see \c PHAuthorizationStatusLimited )
|
|
30
|
+
@param controller The view controller that is used to present the limited library picker.
|
|
31
|
+
@discussion Use this API when the user has enabled limited photo library access to present the limited library picker and give the user a way to update their selection. If the user has not enabled limited library access mode for this application, then this method will do nothing. This should be used when disabling the automatic limited library alert prompt (by adding \c PHPhotoLibraryPreventAutomaticLimitedAccessAlert = \c YES to the application's Info.plist).
|
|
32
|
+
|
|
33
|
+
Any changes applied to the limited library selection by the user will trigger a \c PHPhotoLibraryChangeObserver update that can be used to observe the changes to the selection.
|
|
34
|
+
*/
|
|
35
|
+
- (void)presentLimitedLibraryPickerFromViewController:(UIViewController *)controller;
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
@abstract Prompt the user to update their limited library selection by presenting the limited library image picker when the user has opted into limited library access mode (see \c PHAuthorizationStatusLimited )
|
|
39
|
+
@param controller The view controller that is used to present the limited library picker.
|
|
40
|
+
@param completionHandler The block that will be called upon the user finishing their selection. Only newly selected assets will be provided to the block.
|
|
41
|
+
@discussion Use this API when the user has enabled limited photo library access to present the limited library picker and give the user a way to update their selection. If the user has not enabled limited library access mode for this application, then this method will do nothing. This should be used when disabling the automatic limited library alert prompt (by adding \c PHPhotoLibraryPreventAutomaticLimitedAccessAlert = \c YES to the application's Info.plist).
|
|
42
|
+
|
|
43
|
+
In addition to being provided the new asset local identifiers in the callback any changes applied to the limited library selection by the user will trigger a \c PHPhotoLibraryChangeObserver update that can be used to observe the changes to the selection.
|
|
44
|
+
*/
|
|
45
|
+
- (void)presentLimitedLibraryPickerFromViewController:(UIViewController *)controller completionHandler:(void(^)(NSArray<NSString *>*))completionHandler API_AVAILABLE(ios(15));
|
|
46
|
+
|
|
47
|
+
@end
|
|
48
|
+
|
|
49
|
+
API_UNAVAILABLE_END // (macos, tvos, watchos)
|
|
50
|
+
API_AVAILABLE_END // (ios(14))
|
|
51
|
+
|
|
52
|
+
#endif // TARGET_OS_IPHONE || TARGET_OS_MACCATALYST
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
NS_ASSUME_NONNULL_END
|