Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[NearbyInteraction] Bump to support Xcode 14.1 (#16338)
- Loading branch information
1 parent
9a7740b
commit 093b5d2
Showing
3 changed files
with
50 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
// | ||
// NICompat.cs | ||
// | ||
// Copyright (C) Microsoft Corporation. All rights reserved. | ||
// | ||
|
||
using System; | ||
using System.ComponentModel; | ||
using System.Threading.Tasks; | ||
using Foundation; | ||
using CoreFoundation; | ||
using ObjCRuntime; | ||
|
||
#if __MACCATALYST__ || !IOS | ||
using ARSession = Foundation.NSObject; | ||
#else | ||
using ARKit; | ||
#endif | ||
|
||
#if NET | ||
using Vector3 = global::System.Numerics.Vector3; | ||
using MatrixFloat4x4 = global::CoreGraphics.NMatrix4; | ||
#else | ||
using NativeHandle = System.IntPtr; | ||
using Vector3 = global::OpenTK.Vector3; | ||
using MatrixFloat4x4 = global::OpenTK.NMatrix4; | ||
#endif | ||
|
||
#nullable enable | ||
namespace NearbyInteraction { | ||
|
||
#if WATCH | ||
public partial class NISession { | ||
|
||
#if !NET | ||
[Obsolete ("This method was removed and will always throw a InvalidOperationException.")] | ||
#endif | ||
public virtual void SetARSession (ARSession session) => throw new InvalidOperationException (Constants.ApiRemovedGeneral); | ||
|
||
#if !NET | ||
[Obsolete ("This method was removed and will always throw a InvalidOperationException.")] | ||
#endif | ||
public virtual MatrixFloat4x4 GetWorldTransform (NINearbyObject @object) => throw new InvalidOperationException (Constants.ApiRemovedGeneral); | ||
|
||
} | ||
#endif | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This comment was marked as outdated.
Sorry, something went wrong.
This comment was marked as outdated.
Sorry, something went wrong.
This comment was marked as outdated.
Sorry, something went wrong.
This comment was marked as outdated.
Sorry, something went wrong.