-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
- Loading branch information
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
// Copyright 2022 Niantic, Inc. All Rights Reserved. | ||
|
||
namespace Niantic.ARDK.AR | ||
{ | ||
/// Possible error values output by an AR session's didFailWithError callback. | ||
public enum ARError | ||
{ | ||
/// The ERConfiguration object passed to the Run() method is not supported by the current device. | ||
UnsupportedConfiguration = 100, | ||
|
||
/// A sensor required to run the session is not available. | ||
SensorUnavailable = 101, | ||
|
||
/// A sensor failed to provide the required input. | ||
SensorFailed = 102, | ||
|
||
/// The user has denied your app permission to use the device camera. | ||
CameraUnauthorized = 103, | ||
|
||
/// World tracking has encountered a fatal error. | ||
WorldTrackingFailed = 200, | ||
|
||
/// An invalid reference image was passed in the configuration. | ||
InvalidReferenceImage = 300, | ||
|
||
/// AR features are not available currently, check for availability using the | ||
/// ARCore Availability API. | ||
/// @note This is an Android-only value. | ||
AvailabilityFailure = 400, | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
// Copyright 2022 Niantic, Inc. All Rights Reserved. | ||
|
||
namespace Niantic.ARDK.AR | ||
{ | ||
// Maybe this could become a Flags enum about what to retain in the future. | ||
public enum ARFrameDisposalPolicy | ||
{ | ||
DisposeOldFrames, | ||
ReleaseImageAndTexturesOfOldFrames, | ||
KeepOldFrames | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
// Copyright 2022 Niantic, Inc. All Rights Reserved. | ||
|
||
using Niantic.ARDK.Utilities; | ||
|
||
namespace Niantic.ARDK.AR.ARSessionEventArgs | ||
{ | ||
public struct ARSessionDeinitializedArgs: | ||
IArdkEventArgs | ||
{ | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
// Copyright 2022 Niantic, Inc. All Rights Reserved. | ||
|
||
using Niantic.ARDK.Utilities; | ||
|
||
namespace Niantic.ARDK.AR.ARSessionEventArgs | ||
{ | ||
public struct ARSessionFailedArgs: | ||
IArdkEventArgs | ||
{ | ||
public readonly ARError Error; | ||
|
||
public ARSessionFailedArgs(ARError error) | ||
{ | ||
Error = error; | ||
} | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
// Copyright 2022 Niantic, Inc. All Rights Reserved. | ||
|
||
using Niantic.ARDK.Utilities; | ||
|
||
namespace Niantic.ARDK.AR.ARSessionEventArgs | ||
{ | ||
public struct ARSessionInterruptedArgs: | ||
IArdkEventArgs | ||
{ | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
// Copyright 2022 Niantic, Inc. All Rights Reserved. | ||
|
||
using Niantic.ARDK.Utilities; | ||
|
||
namespace Niantic.ARDK.AR.ARSessionEventArgs | ||
{ | ||
public struct ARSessionInterruptionEndedArgs: | ||
IArdkEventArgs | ||
{ | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
// Copyright 2022 Niantic, Inc. All Rights Reserved. | ||
|
||
using Niantic.ARDK.Utilities; | ||
|
||
namespace Niantic.ARDK.AR.ARSessionEventArgs | ||
{ | ||
public struct ARSessionPausedArgs: | ||
IArdkEventArgs | ||
{ | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
// Copyright 2022 Niantic, Inc. All Rights Reserved. | ||
|
||
using Niantic.ARDK.Utilities; | ||
|
||
namespace Niantic.ARDK.AR.ARSessionEventArgs | ||
{ | ||
public struct ARSessionRanArgs: | ||
IArdkEventArgs | ||
{ | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
// Copyright 2022 Niantic, Inc. All Rights Reserved. | ||
|
||
using System.Collections.ObjectModel; | ||
|
||
using Niantic.ARDK.AR.Anchors; | ||
using Niantic.ARDK.Utilities; | ||
|
||
namespace Niantic.ARDK.AR.ARSessionEventArgs | ||
{ | ||
public struct AnchorsArgs: | ||
IArdkEventArgs | ||
{ | ||
public AnchorsArgs(IARAnchor[] anchors): | ||
this() | ||
{ | ||
Anchors = new ReadOnlyCollection<IARAnchor>(anchors); | ||
} | ||
|
||
public ReadOnlyCollection<IARAnchor> Anchors { get; } | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
// Copyright 2022 Niantic, Inc. All Rights Reserved. | ||
|
||
using System.Collections.ObjectModel; | ||
|
||
using Niantic.ARDK.AR.Anchors; | ||
using Niantic.ARDK.Utilities; | ||
|
||
namespace Niantic.ARDK.AR.ARSessionEventArgs | ||
{ | ||
public struct AnchorsMergedArgs: | ||
IArdkEventArgs | ||
{ | ||
public AnchorsMergedArgs(IARAnchor parent, IARAnchor[] children): | ||
this() | ||
{ | ||
Parent = parent; | ||
Children = new ReadOnlyCollection<IARAnchor>(children); | ||
} | ||
|
||
public IARAnchor Parent { get; } | ||
public ReadOnlyCollection<IARAnchor> Children { get; } | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
// Copyright 2022 Niantic, Inc. All Rights Reserved. | ||
|
||
using Niantic.ARDK.Utilities; | ||
|
||
namespace Niantic.ARDK.AR.ARSessionEventArgs | ||
{ | ||
public struct AnyARSessionInitializedArgs: | ||
IArdkEventArgs | ||
{ | ||
public AnyARSessionInitializedArgs(IARSession session, bool isLocal): | ||
this() | ||
{ | ||
Session = session; | ||
_IsLocal = isLocal; | ||
} | ||
|
||
public IARSession Session { get; private set; } | ||
|
||
internal bool _IsLocal { get; } | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
// Copyright 2022 Niantic, Inc. All Rights Reserved. | ||
|
||
using Niantic.ARDK.AR.Camera; | ||
using Niantic.ARDK.Utilities; | ||
|
||
namespace Niantic.ARDK.AR.ARSessionEventArgs | ||
{ | ||
public struct CameraTrackingStateChangedArgs: | ||
IArdkEventArgs | ||
{ | ||
public CameraTrackingStateChangedArgs(IARCamera camera, TrackingState trackingState): | ||
this() | ||
{ | ||
Camera = camera; | ||
TrackingState = trackingState; | ||
} | ||
|
||
public IARCamera Camera { get; private set; } | ||
public TrackingState TrackingState { get; private set; } | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
// Copyright 2022 Niantic, Inc. All Rights Reserved. | ||
|
||
using Niantic.ARDK.AR.Frame; | ||
using Niantic.ARDK.Utilities; | ||
|
||
namespace Niantic.ARDK.AR.ARSessionEventArgs | ||
{ | ||
public struct FrameUpdatedArgs: | ||
IArdkEventArgs | ||
{ | ||
public FrameUpdatedArgs(IARFrame frame) | ||
: this() | ||
{ | ||
Frame = frame; | ||
} | ||
|
||
public IARFrame Frame { get; private set; } | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.