Skip to content

Commit 39de334

Browse files
authored
[Photos] Update to Xcode 26 beta 1-5. (#23571)
1 parent 6377d06 commit 39de334

File tree

6 files changed

+40
-40
lines changed

6 files changed

+40
-40
lines changed

src/Photos/Enums.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,8 @@ public enum PHAssetCollectionSubtype : long {
236236
SmartAlbumCinematic = 218,
237237
[TV (18, 0), Mac (15, 0), iOS (18, 0), MacCatalyst (18, 0)]
238238
SmartAlbumSpatial = 219,
239+
[iOS (14, 0), MacCatalyst (14, 0), TV (14, 0)]
240+
SmartAlbumScreenRecordings = 220,
239241

240242
/// <summary>A bitmask of all possible subtypes.</summary>
241243
Any = Int64.MaxValue,
@@ -300,6 +302,8 @@ public enum PHAssetMediaSubtype : ulong {
300302
VideoHighFrameRate = (1 << 17),
301303
/// <summary>A timelapse video.</summary>
302304
VideoTimelapse = (1 << 18),
305+
[iOS (13, 0), MacCatalyst (13, 1), TV (13, 0)]
306+
VideoScreenRecording = (1 << 19),
303307
VideoCinematic = (1 << 21),
304308
}
305309

src/photos.cs

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,14 @@ interface PHAsset {
177177
[MacCatalyst (15, 0)]
178178
[Export ("hasAdjustments")]
179179
bool HasAdjustments { get; }
180+
181+
[TV (26, 0), Mac (26, 0), iOS (26, 0), MacCatalyst (26, 0)]
182+
[Export ("contentType", ArgumentSemantic.Copy)]
183+
UTType ContentType { get; }
184+
185+
[TV (26, 0), Mac (26, 0), iOS (26, 0), MacCatalyst (26, 0)]
186+
[Export ("addedDate", ArgumentSemantic.Strong)]
187+
NSDate AddedDate { get; }
180188
}
181189

182190
/// <summary>Used within a Photos change block to create, update, or delete <see cref="Photos.PHAsset" /> objects.</summary>
@@ -283,6 +291,10 @@ interface PHAssetResource {
283291
[Export ("assetLocalIdentifier")]
284292
string AssetLocalIdentifier { get; }
285293

294+
[Deprecated (PlatformName.iOS, 26, 0, message: "Use 'ContentType' instead.")]
295+
[Deprecated (PlatformName.MacOSX, 26, 0, message: "Use 'ContentType' instead.")]
296+
[Deprecated (PlatformName.TvOS, 26, 0, message: "Use 'ContentType' instead.")]
297+
[Deprecated (PlatformName.MacCatalyst, 26, 0, message: "Use 'ContentType' instead.")]
286298
[Export ("uniformTypeIdentifier")]
287299
string UniformTypeIdentifier { get; }
288300

@@ -307,6 +319,10 @@ interface PHAssetResource {
307319
[MacCatalyst (16, 0)]
308320
[Export ("pixelHeight")]
309321
nint PixelHeight { get; }
322+
323+
[TV (26, 0), Mac (26, 0), iOS (26, 0), MacCatalyst (26, 0)]
324+
[Export ("contentType", ArgumentSemantic.Copy)]
325+
UTType ContentType { get; }
310326
}
311327

312328
/// <summary>Options when creating assets from data resources.</summary>
@@ -318,11 +334,19 @@ interface PHAssetResourceCreationOptions : NSCopying {
318334
[NullAllowed, Export ("originalFilename")]
319335
string OriginalFilename { get; set; }
320336

337+
[Deprecated (PlatformName.iOS, 26, 0, message: "Use 'ContentType' instead.")]
338+
[Deprecated (PlatformName.MacOSX, 26, 0, message: "Use 'ContentType' instead.")]
339+
[Deprecated (PlatformName.TvOS, 26, 0, message: "Use 'ContentType' instead.")]
340+
[Deprecated (PlatformName.MacCatalyst, 26, 0, message: "Use 'ContentType' instead.")]
321341
[NullAllowed, Export ("uniformTypeIdentifier")]
322342
string UniformTypeIdentifier { get; set; }
323343

324344
[Export ("shouldMoveFile")]
325345
bool ShouldMoveFile { get; set; }
346+
347+
[TV (26, 0), Mac (26, 0), iOS (26, 0), MacCatalyst (26, 0)]
348+
[NullAllowed, Export ("contentType", ArgumentSemantic.Copy)]
349+
UTType ContentType { get; set; }
326350
}
327351

328352
/// <summary>Options used when requesting to edit an <see cref="Photos.PHAsset" />.</summary>
@@ -854,6 +878,10 @@ interface PHContentEditingInput {
854878
[NullAllowed]
855879
CLLocation Location { get; }
856880

881+
[Deprecated (PlatformName.iOS, 26, 0, message: "Use 'ContentType' instead.")]
882+
[Deprecated (PlatformName.MacOSX, 26, 0, message: "Use 'ContentType' instead.")]
883+
[Deprecated (PlatformName.TvOS, 26, 0, message: "Use 'ContentType' instead.")]
884+
[Deprecated (PlatformName.MacCatalyst, 26, 0, message: "Use 'ContentType' instead.")]
857885
[Export ("uniformTypeIdentifier")]
858886
[NullAllowed]
859887
string UniformTypeIdentifier { get; }
@@ -896,6 +924,10 @@ interface PHContentEditingInput {
896924
[MacCatalyst (13, 1)]
897925
[Export ("playbackStyle", ArgumentSemantic.Assign)]
898926
PHAssetPlaybackStyle PlaybackStyle { get; }
927+
928+
[TV (26, 0), Mac (26, 0), iOS (26, 0), MacCatalyst (26, 0)]
929+
[NullAllowed, Export ("contentType", ArgumentSemantic.Copy)]
930+
UTType ContentType { get; }
899931
}
900932

901933
/// <summary>Describes the result of editing a <see cref="Photos.PHAsset" />.</summary>
@@ -1233,6 +1265,10 @@ interface PHImageManager {
12331265
[BaseType (typeof (PHImageManager))]
12341266
interface PHCachingImageManager {
12351267

1268+
[Deprecated (PlatformName.iOS, 26, 0, message: "Do not use; this property will be removed in a future release.")]
1269+
[Deprecated (PlatformName.MacOSX, 26, 0, message: "Do not use; this property will be removed in a future release.")]
1270+
[Deprecated (PlatformName.TvOS, 26, 0, message: "Do not use; this property will be removed in a future release.")]
1271+
[Deprecated (PlatformName.MacCatalyst, 26, 0, message: "Do not use; this property will be removed in a future release.")]
12361272
[Export ("allowsCachingHighQualityImages", ArgumentSemantic.Assign)]
12371273
bool AllowsCachingHighQualityImages { get; set; }
12381274

tests/xtro-sharpie/api-annotations-dotnet/MacCatalyst-Photos.todo

Lines changed: 0 additions & 10 deletions
This file was deleted.

tests/xtro-sharpie/api-annotations-dotnet/iOS-Photos.todo

Lines changed: 0 additions & 10 deletions
This file was deleted.

tests/xtro-sharpie/api-annotations-dotnet/macOS-Photos.todo

Lines changed: 0 additions & 10 deletions
This file was deleted.

tests/xtro-sharpie/api-annotations-dotnet/tvOS-Photos.todo

Lines changed: 0 additions & 10 deletions
This file was deleted.

0 commit comments

Comments
 (0)