Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
56 changes: 56 additions & 0 deletions runtime/bindings-generator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1929,6 +1929,20 @@ static IEnumerable<FunctionData> GetFunctionData ()
}
);

data.Add (
new FunctionData {
Comment = " // CGPoint func (NVector3, nfloat, CGSize)",
Prefix = "simd__",
Variants = Variants.All,
ReturnType = Types.CGPoint,
Parameters = new ParameterData [] {
new ParameterData { TypeData = Types.NVector3 },
new ParameterData { TypeData = Types.NFloat },
new ParameterData { TypeData = Types.CGSize },
},
}
);

data.Add (
new FunctionData {
Comment = " // Matrix4 func (/* UIInterfaceOrientation */ nint)",
Expand Down Expand Up @@ -2201,6 +2215,21 @@ static IEnumerable<FunctionData> GetFunctionData ()
}
);

data.Add (
new FunctionData {
Comment = " // NMatrix4 func (nfloat, CGSize, nfloat, nfloat)",
Prefix = "simd__",
Variants = Variants.All,
ReturnType = Types.NMatrix4,
Parameters = new ParameterData [] {
new ParameterData { TypeData = Types.NFloat },
new ParameterData { TypeData = Types.CGSize },
new ParameterData { TypeData = Types.NFloat },
new ParameterData { TypeData = Types.NFloat },
},
}
);

data.Add (
new FunctionData {
Comment = " // NMatrix4 func (double)",
Expand All @@ -2213,6 +2242,18 @@ static IEnumerable<FunctionData> GetFunctionData ()
}
);

data.Add (
new FunctionData {
Comment = " // NMatrix4 func (nfloat)",
Prefix = "simd__",
Variants = Variants.All,
ReturnType = Types.NMatrix4,
Parameters = new ParameterData [] {
new ParameterData { TypeData = Types.NFloat },
},
}
);

data.Add (
new FunctionData {
Comment = " // NMatrix4 func (nint)",
Expand Down Expand Up @@ -2459,6 +2500,21 @@ static IEnumerable<FunctionData> GetFunctionData ()
}
);

data.Add (
new FunctionData {
Comment = " // NVector3 func (CGPoint, NMatrix4, nfloat, CGSize)",
Prefix = "simd__",
Variants = Variants.All,
ReturnType = Types.NVector3,
Parameters = new ParameterData [] {
new ParameterData { TypeData = Types.CGPoint },
new ParameterData { TypeData = Types.NMatrix4 },
new ParameterData { TypeData = Types.NFloat },
new ParameterData { TypeData = Types.CGSize },
},
}
);

data.Add (
new FunctionData {
Comment = " // NVector3 func (CGPoint, NMatrix4)",
Expand Down
2 changes: 2 additions & 0 deletions src/AVFoundation/Enums.cs
Original file line number Diff line number Diff line change
Expand Up @@ -382,6 +382,8 @@ public enum AVError : long {
FollowExternalSyncFailed = -11894,
ExternalSyncDeviceFrequencyHigherThanSpecified = -11895,
ExternalSyncDeviceFrequencyLowerThanSpecified = -11896,
/// <summary>Indicates that there is insufficient storage space to replenish Pro Video Storage.</summary>
NotEnoughSpaceForProVideoStorageReplenishment = -11897,
}

/// <summary>An enumeration whose values specify the behavior of the player when it finishes playing.</summary>
Expand Down
7 changes: 0 additions & 7 deletions src/AVKit/Enums.cs
Original file line number Diff line number Diff line change
Expand Up @@ -63,13 +63,6 @@ public enum AVRoutePickerViewButtonState : long {
ActiveHighlighted,
}

[NoTV, Mac (26, 4), iOS (26, 4), MacCatalyst (26, 4)]
[Native]
public enum AVLegibleMediaOptionsMenuType : long {
Default = 0,
CaptionAppearance,
}

[NoTV, Mac (26, 4), iOS (26, 4), MacCatalyst (26, 4)]
[Native]
public enum AVLegibleMediaOptionsMenuStateChangeReason : long {
Expand Down
2 changes: 2 additions & 0 deletions src/AudioUnit/AUEnums.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1032,6 +1032,8 @@ public enum AudioUnitParameterType // UInt32 in AudioUnitParameterInfo
Reverb2DecayTimeAtNyquist = 5,
/// <summary>To be added.</summary>
Reverb2RandomizeReflections = 6,
/// <summary>Controls whether the reverb unit uses legacy processing behavior.</summary>
Reverb2LegacyMode = 7,
#endif

// RoundTripAAC
Expand Down
3 changes: 3 additions & 0 deletions src/CoreLocation/CLEnums.cs
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,9 @@ public enum CLActivityType : long {
/// <summary>To be added.</summary>
[MacCatalyst (13, 1)]
Airborne,
/// <summary>Indicates navigation for vehicular activities on the water.</summary>
[Mac (27, 0), iOS (27, 0), MacCatalyst (27, 0), TV (27, 0)]
Maritime = 6,
}

[Native]
Expand Down
4 changes: 4 additions & 0 deletions src/appkit.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22515,6 +22515,10 @@ NSTextContentType ContentType {
[Mac (26, 0)]
[Export ("resolvesNaturalAlignmentWithBaseWritingDirection")]
bool ResolvesNaturalAlignmentWithBaseWritingDirection { get; set; }

[Mac (26, 0)]
[Export ("borderShape", ArgumentSemantic.Assign)]
NSControlBorderShape BorderShape { get; set; }
}

[NoMacCatalyst]
Expand Down
42 changes: 42 additions & 0 deletions src/arkit.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
using System.Numerics;

using AVFoundation;
using CoreAnimation;
using CoreFoundation;
using CoreGraphics;
using CoreMedia;
Expand Down Expand Up @@ -425,28 +426,52 @@ Matrix4 ProjectionMatrix {
get;
}

[Deprecated (PlatformName.iOS, 27, 0, message: "Use 'Project' with a view rotation angle instead.")]
[Export ("projectPoint:orientation:viewportSize:")]
[MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")]
CGPoint Project (Vector3 point, UIInterfaceOrientation orientation, CGSize viewportSize);

[iOS (27, 0)]
[Export ("projectPoint:viewRotationAngle:viewportSize:")]
[MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")]
CGPoint Project (Vector3 point, nfloat viewRotationAngle, CGSize viewportSize);

[Deprecated (PlatformName.iOS, 27, 0, message: "Use 'Unproject' with a view rotation angle instead.")]
[MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")]
[Export ("unprojectPoint:ontoPlaneWithTransform:orientation:viewportSize:")]
Vector3 Unproject (CGPoint point, Matrix4 planeTransform, UIInterfaceOrientation orientation, CGSize viewportSize);

[iOS (27, 0)]
[MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")]
[Export ("unprojectPoint:ontoPlaneWithTransform:viewRotationAngle:viewportSize:")]
Vector3 Unproject (CGPoint point, Matrix4 planeTransform, nfloat viewRotationAngle, CGSize viewportSize);

/// <param name="orientation">The camera orientation.</param>
/// <param name="viewportSize">The viewport size, in points.</param>
/// <param name="zNear">The distance to the near Z-clipping plane.</param>
/// <param name="zFar">The distance to the far Z-clipping plane..</param>
/// <summary>The projection matrix used to render 3D content so that it will match the real-world imagery.</summary>
/// <returns>To be added.</returns>
/// <remarks>To be added.</remarks>
[Deprecated (PlatformName.iOS, 27, 0, message: "Use 'GetProjectionMatrix' with a view rotation angle instead.")]
[Export ("projectionMatrixForOrientation:viewportSize:zNear:zFar:")]
[MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")]
Matrix4 GetProjectionMatrix (UIInterfaceOrientation orientation, CGSize viewportSize, nfloat zNear, nfloat zFar);

[iOS (27, 0)]
[Export ("projectionMatrixForViewRotationAngle:viewportSize:zNear:zFar:")]
[MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")]
Matrix4 GetProjectionMatrix (nfloat viewRotationAngle, CGSize viewportSize, nfloat zNear, nfloat zFar);

[Deprecated (PlatformName.iOS, 27, 0, message: "Use 'GetViewMatrix' with a view rotation angle instead.")]
[Export ("viewMatrixForOrientation:")]
[MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")]
Matrix4 GetViewMatrix (UIInterfaceOrientation orientation);

[iOS (27, 0)]
[Export ("viewMatrixForViewRotationAngle:")]
[MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")]
Matrix4 GetViewMatrix (nfloat viewRotationAngle);
}

/// <summary>A frame in an augmented-reality session.</summary>
Expand Down Expand Up @@ -507,9 +532,14 @@ interface ARFrame : NSCopying {
[Export ("raycastQueryFromPoint:allowingTarget:alignment:")]
ARRaycastQuery CreateRaycastQuery (CGPoint point, ARRaycastTarget target, ARRaycastTargetAlignment alignment);

[Deprecated (PlatformName.iOS, 27, 0, message: "Use 'GetDisplayTransform' with a view rotation angle instead.")]
[Export ("displayTransformForOrientation:viewportSize:")]
CGAffineTransform GetDisplayTransform (UIInterfaceOrientation orientation, CGSize viewportSize);

[iOS (27, 0)]
[Export ("displayTransformForViewRotationAngle:viewportSize:")]
CGAffineTransform GetDisplayTransform (nfloat viewRotationAngle, CGSize viewportSize);

[iOS (14, 0)]
[NullAllowed, Export ("geoTrackingStatus", ArgumentSemantic.Strong)]
ARGeoTrackingStatus GeoTrackingStatus { get; }
Expand Down Expand Up @@ -1025,6 +1055,14 @@ interface ARSession {
[Async]
[Export ("captureHighResolutionFrameUsingPhotoSettings:completion:")]
void CaptureHighResolutionFrame ([NullAllowed] AVCapturePhotoSettings photoSettings, ARSessionCaptureHighResolutionFrame completion);

[iOS (27, 0)]
[NullAllowed, Export ("viewLayer", ArgumentSemantic.Weak)]
CALayer ViewLayer { get; set; }

[iOS (27, 0)]
[Export ("viewRotationAngle")]
nfloat ViewRotationAngle { get; }
}

delegate void ARSessionCaptureHighResolutionFrame ([NullAllowed] ARFrame frame, [NullAllowed] NSError error);
Expand Down Expand Up @@ -1081,6 +1119,10 @@ interface ARSessionObserver {
[iOS (14, 0)]
[Export ("session:didChangeGeoTrackingStatus:")]
void DidChangeGeoTrackingStatus (ARSession session, ARGeoTrackingStatus geoTrackingStatus);

[iOS (27, 0)]
[Export ("session:didChangeViewRotationAngle:")]
void DidChangeViewRotationAngle (ARSession session, nfloat viewRotationAngle);
}

interface IARSessionDelegate { }
Expand Down
4 changes: 4 additions & 0 deletions src/automaticassessmentconfiguration.cs
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,10 @@ interface AEAssessmentConfiguration : NSCopying {
[Export ("allowsAccessibilityBackgroundSounds")]
bool AllowsAccessibilityBackgroundSounds { get; set; }

[NoiOS, MacCatalyst (27, 0), Mac (27, 0)]
[Export ("allowsAccessibilityFullKeyboardAccess")]
bool AllowsAccessibilityFullKeyboardAccess { get; set; }

[NoiOS, MacCatalyst (27, 0), Mac (27, 0)]
[Export ("allowsAccessibilityHoverText")]
bool AllowsAccessibilityHoverText { get; set; }
Expand Down
8 changes: 6 additions & 2 deletions src/browserenginekit.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1025,9 +1025,13 @@ interface BEMediaEnvironment {
[Export ("createXPCRepresentation")]
OS_xpc_object CreateXpcRepresentation ();

[Deprecated (PlatformName.iOS, 27, 0, message: "Use 'BEProcessCapability.Activate' instead.")]
[Deprecated (PlatformName.MacCatalyst, 27, 0, message: "Use 'BEProcessCapability.Activate' instead.")]
[Export ("activateWithError:")]
bool Activate ([NullAllowed] out NSError error);

[Deprecated (PlatformName.iOS, 27, 0, message: "Use 'BEProcessCapability.Suspend' instead.")]
[Deprecated (PlatformName.MacCatalyst, 27, 0, message: "Use 'BEProcessCapability.Suspend' instead.")]
[Export ("suspendWithError:")]
bool Suspend ([NullAllowed] out NSError error);

Expand Down Expand Up @@ -1065,11 +1069,11 @@ interface BEProcessCapability {
[Export ("requestWithError:")]
IBEProcessCapabilityGrant Request ([NullAllowed] out NSError error);

[Mac (27, 0), iOS (27, 0), MacCatalyst (27, 0)]
[NoMac, iOS (27, 0), MacCatalyst (27, 0)]
[Export ("activateWithError:")]
bool Activate ([NullAllowed] out NSError error);

[Mac (27, 0), iOS (27, 0), MacCatalyst (27, 0)]
[NoMac, iOS (27, 0), MacCatalyst (27, 0)]
[Export ("suspendWithError:")]
bool Suspend ([NullAllowed] out NSError error);
}
Expand Down
16 changes: 14 additions & 2 deletions src/carplay.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1592,6 +1592,10 @@ interface CPNavigationAlert : NSSecureCoding {
[Static]
[Export ("maximumAvatarImageSize")]
CGSize MaximumAvatarImageSize { get; }

[NoMacCatalyst, iOS (27, 0)]
[Export ("showsCloseButton")]
bool ShowsCloseButton { get; set; }
}

/// <summary>A session that may involve planning, updating, and executing a trip.</summary>
Expand Down Expand Up @@ -3648,7 +3652,7 @@ interface CPMapPanelButtonConfiguration {
[Export ("initWithPrimaryAction:secondaryButton:travelEstimates:")]
NativeHandle Constructor (CPTextButton primaryAction, [NullAllowed] CPButton secondaryButton, CPTravelEstimates travelEstimates);

[Export ("travelEstimates", ArgumentSemantic.Copy)]
[NullAllowed, Export ("travelEstimates", ArgumentSemantic.Copy)]
CPTravelEstimates TravelEstimates { get; set; }

[NullAllowed, Export ("secondaryButton", ArgumentSemantic.Copy)]
Expand Down Expand Up @@ -3679,7 +3683,7 @@ interface CPMapPanel {
string Title { get; }

[Export ("sections", ArgumentSemantic.Copy)]
CPMapPanelSection [] Sections { get; }
CPMapPanelSection [] Sections { get; set; }

[NullAllowed, Export ("buttonConfiguration", ArgumentSemantic.Strong)]
CPMapPanelButtonConfiguration ButtonConfiguration { get; }
Expand Down Expand Up @@ -3767,6 +3771,14 @@ interface CPRouteDetail : NSCopying, NSSecureCoding {
[Export ("routeDetailWithWarning:")]
CPRouteDetail CreateWarning (string warning);

[Static]
[Export ("routeDetailWithInfo:")]
CPRouteDetail CreateInfo (string info);

[Static]
[Export ("routeDetailWithParking:")]
CPRouteDetail CreateParking (string parking);

[Static]
[Export ("routeDetailWithSymbolName:value:")]
CPRouteDetail CreateCustom (string symbolName, string value);
Expand Down
3 changes: 3 additions & 0 deletions src/corelocation.cs
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,9 @@ public enum CLLiveUpdateConfiguration : long {
OtherNavigation,
Fitness,
Airborne,
/// <summary>Configures location updates for vehicular maritime navigation.</summary>
[Mac (27, 0), iOS (27, 0), MacCatalyst (27, 0), TV (27, 0)]
Maritime = 5,
}


Expand Down
Loading
Loading