Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ARKit] Update framework to Xcode 12 beta 5.
- Loading branch information
1 parent
236936c
commit ee3777e
Showing
5 changed files
with
75 additions
and
7 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,24 @@ | ||
using System; | ||
using System.ComponentModel; | ||
using System.Runtime.InteropServices; | ||
|
||
using Foundation; | ||
using ObjCRuntime; | ||
|
||
namespace ARKit { | ||
public partial class ARSkeleton { | ||
|
||
[iOS (14,0)] | ||
[DllImport (Constants.ARKitLibrary)] | ||
static extern IntPtr /* NSString */ ARSkeletonJointNameForRecognizedPointKey (/* NSString */ IntPtr recognizedPointKey); | ||
|
||
[EditorBrowsable (EditorBrowsableState.Advanced)] | ||
[iOS (14,0)] | ||
public static NSString CreateJointName (NSString recognizedPointKey) { | ||
if (recognizedPointKey == null) | ||
throw new ArgumentNullException (nameof (recognizedPointKey)); | ||
var newNamePtr = ARSkeletonJointNameForRecognizedPointKey (recognizedPointKey.Handle); | ||
return (newNamePtr == IntPtr.Zero) ? null : new NSString (newNamePtr); | ||
} | ||
} | ||
} |
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 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,24 @@ | ||
#if __IOS__ | ||
|
||
using System; | ||
using System.Runtime.InteropServices; | ||
using System.Threading.Tasks; | ||
using ARKit; | ||
using Foundation; | ||
using NUnit.Framework; | ||
using ObjCRuntime; | ||
|
||
namespace monotouchtest.ARKit { | ||
[TestFixture] | ||
[Preserve (AllMembers = true)] | ||
public class ARSkeletonTest { | ||
[Test] | ||
public void UnknonwPointTest () | ||
{ | ||
using (var notKnownPoint = new NSString ("nariz")) | ||
Assert.IsNull (ARSkeleton.CreateJointName (notKnownPoint)); | ||
} | ||
|
||
} | ||
} | ||
#endif |
This file was deleted.
Oops, something went wrong.