struct ARObjectDetectionsUpdatedEventArgs
(Niantic.Lightship.AR.ObjectDetection.ARObjectDetectionsUpdatedEventArgs)
Overview
A structure for information about the latest object detections that have been surfaced. This is used to communicate information in the ARObjectDetectionManager.ObjectDetectionsUpdated event.
struct ARObjectDetectionsUpdatedEventArgs: IEquatable< ARObjectDetectionsUpdatedEventArgs > {
// fields
IReadOnlyList<XRDetectedObject> Results;
// methods
override bool Equals(object obj);
bool Equals(ARObjectDetectionsUpdatedEventArgs other);
override int GetHashCode();
};
Detailed Documentation
A structure for information about the latest object detections that have been surfaced. This is used to communicate information in the ARObjectDetectionManager.ObjectDetectionsUpdated event.
This is an experimental API. Experimental features are subject to breaking changes, not officially supported, and may be deprecated without notice.
Fields
Results
IReadOnlyList<XRDetectedObject> Results
The list of objects detected in the latest input camera frame.
This is an experimental API. Experimental features are subject to breaking changes, not officially supported, and may be deprecated without notice.
Methods
Equals
override bool Equals(object obj)
Tests for equality.
Parameters:
obj
- The object
to compare against.
Returns:
True
if obj is of type ARObjectDetectionsUpdatedEventArgs and Equals(ARObjectDetectionsUpdatedEventArgs) also returns true
; otherwise false
.
Equals
bool Equals(ARObjectDetectionsUpdatedEventArgs other)
Tests for equality.
Parameters:
other
- The other ARObjectDetectionsUpdatedEventArgs to compare against.
Returns:
True
if every field in other is equal to this ARObjectDetectionsUpdatedEventArgs, otherwise false.
GetHashCode
override int GetHashCode()
Generates a hash suitable for use with containers like HashSet
and Dictionary
.
Returns:
A hash code generated from this object's fields.