Skip to content
Merged
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
14 changes: 8 additions & 6 deletions src/arkit.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
// Copyright 2017 Microsoft Inc. All rights reserved.
//

#nullable enable

using System;
using System.ComponentModel;
using System.Numerics;
Expand Down Expand Up @@ -724,7 +726,7 @@ interface ARReferenceImage : NSCopying {
[iOS (13, 0)]
[Async]
[Export ("validateWithCompletionHandler:")]
void Validate (Action<NSError> completionHandler);
void Validate (Action<NSError?> completionHandler);

/// <param name="image">To be added.</param>
/// <param name="orientation">To be added.</param>
Expand Down Expand Up @@ -1010,7 +1012,7 @@ interface ARSession {
<remarks>To be added.</remarks>
""")]
[Export ("getCurrentWorldMapWithCompletionHandler:")]
void GetCurrentWorldMap (Action<ARWorldMap, NSError> completionHandler);
void GetCurrentWorldMap (Action<ARWorldMap?, NSError?> completionHandler);

[Async (XmlDocs = """
<param name="transform">The transform to the position and orientation of the region from which to create a reference object.</param>
Expand All @@ -1022,7 +1024,7 @@ interface ARSession {
""")]
[MarshalDirective (NativePrefix = "xamarin_simd__", Library = "__Internal")]
[Export ("createReferenceObjectWithTransform:center:extent:completionHandler:")]
void CreateReferenceObject (Matrix4 transform, Vector3 center, Vector3 extent, Action<ARReferenceObject, NSError> completionHandler);
void CreateReferenceObject (Matrix4 transform, Vector3 center, Vector3 extent, Action<ARReferenceObject?, NSError?> completionHandler);

[iOS (13, 0)]
[Export ("raycast:")]
Expand All @@ -1047,7 +1049,7 @@ interface ARSession {
[iOS (16, 0)]
[Async]
[Export ("captureHighResolutionFrameWithCompletion:")]
void CaptureHighResolutionFrame (Action<ARFrame, NSError> handler);
void CaptureHighResolutionFrame (Action<ARFrame?, NSError?> handler);
}

/// <summary>Interface defining methods that respond to events in an <see cref="ARKit.ARSession" />.</summary>
Expand Down Expand Up @@ -2696,12 +2698,12 @@ interface ARGeoTrackingConfiguration {
[Async]
[Static]
[Export ("checkAvailabilityWithCompletionHandler:")]
void CheckAvailability (Action<bool, NSError> completionHandler);
void CheckAvailability (Action<bool, NSError?> completionHandler);

[Async]
[Static]
[Export ("checkAvailabilityAtCoordinate:completionHandler:")]
void CheckAvailability (CLLocationCoordinate2D coordinate, Action<bool, NSError> completionHandler);
void CheckAvailability (CLLocationCoordinate2D coordinate, Action<bool, NSError?> completionHandler);

[Static]
[Export ("new")]
Expand Down
Loading