iOS Guides | Samples

ARKit.ARReferenceObject Class

Digital representation of a 3D object to be detected in the real world.

See Also: ARReferenceObject

Syntax

[Foundation.Register("ARReferenceObject", true)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 12, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.MacOSX, ObjCRuntime.PlatformArchitecture.All, null)]
public class ARReferenceObject : NSObject, INSSecureCoding, IDisposable

Requirements

Namespace: ARKit
Assembly: Xamarin.iOS (in Xamarin.iOS.dll)
Assembly Versions: 0.0.0.0

The members of ARKit.ARReferenceObject are listed below.

See Also: NSObject

Public Constructors

A constructor that initializes the object from the data stored in the unarchiver object.
Creates a new object, loading the data from archiveUrl.

Protected Constructors

Constructor to call on derived classes to skip initialization and merely allocate the object.
A constructor used when creating managed representations of unmanaged objects; Called by the runtime.

Public Properties

[read-only]
static
ArchiveExtensionNSString. The file extension used for archived 3D objects.
[read-only]
CenterNVector3. Gets the centerpoint of the reference object.
[read-only]
override
ClassHandleIntPtr. The handle for this class.
[read-only]
ExtentNVector3. Gets the bounding box of the data, in meters.
NameString. Gets or sets a descriptive name for the reference object.
[read-only]
RawFeaturePointsARPointCloud. Gets the raw ARPointCloud for the object's geometry.
[read-only]
ScaleNVector3. Gets the scaling factor for the object's local coordinate space.

Public Methods

ApplyTransform(NMatrix4) : ARReferenceObject
Creates and returns a new reference object by applying the specified transform to this reference object.
EncodeTo(NSCoder)
Encodes the state of the object on the provided encoder
Export(NSUrl, UIImage, out NSError) : Boolean
Writes a representation of this reference object to the specified URL.
static
GetReferenceObjects(String, NSBundle) : Foundation.NSSet<ARReferenceObject>
Gets instances of all the ARReferenceObject in the specified resourceGroupName in the bundle.
Merge(ARReferenceObject, out NSError) : ARReferenceObject
Creates and returns a new reference object by merging this object with the provided object.