[arkit] Introduce runWithConfiguration: (#4521)

The comment: "'runWithConfiguration:' selector marked as unavailable in Xcode 9 beta 5"
was *wrongly* referencing 'NS_SWIFT_UNAVAILABLE("Use run(_:options:) instead")'. However that applies to swift and not objective-c, this selector is valid and lets users skip the options.

Note: tested with real-world ARKit app.

* Add None to ARSessionRunOptions
This commit is contained in:
Vincent Dondain 2018-07-30 08:25:57 -04:00 коммит произвёл Sebastien Pouliot
Родитель 3bb8f82e19
Коммит 53d7e23c46
2 изменённых файлов: 4 добавлений и 4 удалений

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

@ -100,6 +100,7 @@ namespace ARKit {
[Flags]
[Native]
public enum ARSessionRunOptions : ulong {
None = 0,
ResetTracking = 1 << 0,
RemoveExistingAnchors = 1 << 1,
}
@ -576,7 +577,9 @@ namespace ARKit {
[NullAllowed, Export ("configuration", ArgumentSemantic.Copy)]
ARConfiguration Configuration { get; }
// 'runWithConfiguration:' selector marked as unavailable in Xcode 9 beta 5. Use 'Run (ARConfiguration configuration, ARSessionRunOptions options)' instead.
[Export ("runWithConfiguration:")]
void Run (ARConfiguration configuration);
[Export ("runWithConfiguration:options:")]
void Run (ARConfiguration configuration, ARSessionRunOptions options);

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

@ -1,6 +1,3 @@
## NS_SWIFT_UNAVAILABLE("Use run(_:options:) instead")
!missing-selector! ARSession::runWithConfiguration: not bound
## No need for a Marshal Directive on those, they were bound manually
!wrong-simd-missing-marshaldirective! System.IntPtr ARKit.ARFaceGeometry::GetRawTextureCoordinates(): simd type: simd_float2
!wrong-simd-missing-marshaldirective! System.IntPtr ARKit.ARFaceGeometry::GetRawVertices(): simd type: simd_float3