[ARKit] Adopt XAMCORE_4_0 changes in .NET. (#13886)

For ARKit this just means removing obsolete/deprecated API.
This commit is contained in:
Rolf Bjarne Kvinge 2022-01-27 10:45:50 +01:00 коммит произвёл GitHub
Родитель 2850a37aaf
Коммит 7e8650a931
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
3 изменённых файлов: 9 добавлений и 7 удалений

Просмотреть файл

@ -15,7 +15,7 @@ using Vector3 = global::OpenTK.NVector3;
namespace ARKit {
#if !XAMCORE_4_0 && IOS
#if !NET && IOS
public partial class ARFaceGeometry {
[Obsolete ("Use the 'GetVertices' method instead.")]

Просмотреть файл

@ -74,7 +74,7 @@ namespace ARKit {
InvalidReferenceObject = 301,
InvalidWorldMap = 302,
InvalidConfiguration = 303,
#if !XAMCORE_4_0
#if !NET
[Obsolete ("Please use the 'InvalidCollaborationData' value instead.")]
CollaborationDataUnavailable = InvalidCollaborationData,
#endif
@ -400,7 +400,7 @@ namespace ARKit {
get;
}
#if !XAMCORE_4_0
#if !NET
[Obsolete ("Use 'Project' instead.")]
[Wrap ("Project (point, orientation, viewportSize)", IsVirtual = true)]
CGPoint GetProjectPoint (Vector3 point, UIInterfaceOrientation orientation, CGSize viewportSize);
@ -973,7 +973,7 @@ namespace ARKit {
[Export ("isSupported")]
bool IsSupported { get; }
#if !XAMCORE_4_0
#if !NET
// even if static - it's abstract
[iOS (11,3)]
[Static]
@ -1450,7 +1450,7 @@ namespace ARKit {
[Export ("initWithAnchor:")]
NativeHandle Constructor (ARAnchor anchor);
#if !XAMCORE_4_0
#if !NET
[Obsolete ("Constructor marked as unavailable.")]
[Export ("init")]
NativeHandle Constructor ();
@ -1527,7 +1527,7 @@ namespace ARKit {
[BaseType (typeof(SCNGeometry))]
[DisableDefaultCtor]
interface ARSCNFaceGeometry {
#if !XAMCORE_4_0
#if !NET
[Obsolete ("Use the 'Create' static constructor instead.")]
[Static]
[Wrap ("Create (device)")]
@ -1540,7 +1540,7 @@ namespace ARKit {
[return: NullAllowed]
ARSCNFaceGeometry Create (IMTLDevice device);
#if !XAMCORE_4_0
#if !NET
[Obsolete ("Use the 'Create' static constructor instead.")]
[Static]
[Wrap ("Create (device, fillMesh)")]

Просмотреть файл

@ -22,12 +22,14 @@ namespace MonoTouchFixtures.ARKit {
TestRuntime.AssertSystemVersion (ApplePlatform.MacCatalyst, 14, 0, throwIfOtherPlatform: false);
}
#if !NET
[Test]
public void SupportedVideoFormats ()
{
var svf = ARConfiguration.SupportedVideoFormats;
Assert.That (svf, Is.Empty, "empty");
}
#endif
[Test]
public void GetSupportedVideoFormats_9_3 ()