Skip to main content
Version: 3.1

struct Cinfo

(Niantic.Lightship.AR.XRSubsystems.XRPersistentAnchorSubsystemDescriptor.Cinfo)

Overview

Constructor info used to register a descriptor.

	struct Cinfo: IEquatable< Cinfo > {
// properties

string id;
Type providerType;
Type subsystemTypeOverride;
bool supportsTrackableAttachments;

// methods

override int GetHashCode();
override bool Equals(object obj);
bool Equals(Cinfo other);
static bool operator == (Cinfo lhs, Cinfo rhs);
static bool operator != (Cinfo lhs, Cinfo rhs);
};

Detailed Documentation

Constructor info used to register a descriptor.

Properties

id

string id

The string identifier for this subsystem.

providerType

Type providerType

Specifies the provider implementation type to use for instantiation.

The provider implementation type to use for instantiation.

subsystemTypeOverride

Type subsystemTypeOverride

Specifies the XRPersistentAnchorSubsystem-derived type that forwards casted calls to its provider.

The type of the subsystem to use for instantiation. If null, XRPersistentAnchorSubsystem will be instantiated.

supportsTrackableAttachments

bool supportsTrackableAttachments

true if the subsystem supports attachments, i.e., the ability to attach an anchor to a trackable.

Methods

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.

Equals

override bool Equals(object obj)

Tests for equality.

    Parameters:

    obj - The object to compare against.

    Returns:

    True if obj is of type Cinfo and Equals(Cinfo) also returns true; otherwise false.

Equals

bool Equals(Cinfo other)

Tests for equality.

    Parameters:

    other - The other Cinfo to compare against.

    Returns:

    True if every field in other is equal to this Cinfo, otherwise false.

operator==

static bool operator == (Cinfo lhs, Cinfo rhs)

Tests for equality. Same as Equals(Cinfo).

    Parameters:

    lhs - The left-hand side of the comparison.

    rhs - The right-hand side of the comparison.

    Returns:

    True if lhs is equal to rhs, otherwise false.

operator!=

static bool operator != (Cinfo lhs, Cinfo rhs)

Tests for inequality. Same as ! Equals(Cinfo).

    Parameters:

    lhs - The left-hand side of the comparison.

    rhs - The right-hand side of the comparison.

    Returns:

    True if lhs is not equal to rhs, otherwise false.