XRShareableAnchorSubsystemDescriptor

Indicates the capabilities supported by a provider of the XRShareableAnchorSubsystem.

Provider implementations must derive from XRShareableAnchorSubsystem.Provider and may override virtual class members.

Summary

Inheritance

Inherits from: SubsystemDescriptorWithProvider< XRShareableAnchorSubsystem, XRShareableAnchorSubsystem.Provider >

Properties

supportsAsyncCancellation
bool
Gets a value indicating whether the provider implementation supports cancelling async operations in progress using CancellationTokens.
supportsAttachGeospatialAnchor
bool
Gets a value indicating whether the provider implementation supports the ability to attach a geospatial anchor via XRShareableAnchorSubsystem.TryAttachGeospatialAnchor.
supportsAttachSurfaceAnchor
bool
Gets a value indicating whether the provider implementation supports the ability to attach a surface anchor via XRShareableAnchorSubsystem.TryAttachSurfaceAnchorAsync.
supportsEraseAnchor
bool
Gets a value indicating whether the provider implementation supports the ability to erase the persistent saved data associated with an anchor via XRShareableAnchorSubsystem.TryEraseAnchorAsync.
supportsGetSavedAnchorIds
bool
Gets a value indicating whether the provider implementation supports the ability to get all saved persistent GUIDs via XRShareableAnchorSubsystem.TryGetSavedAnchorIdsAsync.
supportsLoadAnchor
bool
Gets a value indicating whether the provider implementation supports the ability to load persistently saved anchors via XRShareableAnchorSubsystem.TryLoadAnchorAsync.
supportsSaveAnchor
bool
Gets a value indicating whether the provider implementation supports the ability to persistently save anchors via XRShareableAnchorSubsystem.TrySaveAnchorAsync.

Public static functions

Register(Cinfo cinfo)
void
Creates a new subsystem descriptor instance and registers it with the SubsystemManager.

Public functions

GetSupportedHosts()
Gets the supported hosts for shareable anchors.

Structs

Google.XR.Extensions.ARSubsystems.XRShareableAnchorSubsystemDescriptor.Cinfo

Contains the parameters necessary to construct a new XRShareableAnchorSubsystemDescriptor instance.

Properties

supportsAsyncCancellation

bool supportsAsyncCancellation

Gets a value indicating whether the provider implementation supports cancelling async operations in progress using CancellationTokens.

If false, XRShareableAnchorSubsystem APIs that take a CancellationToken as input will ignore the input cancellation token.

supportsAttachGeospatialAnchor

bool supportsAttachGeospatialAnchor

Gets a value indicating whether the provider implementation supports the ability to attach a geospatial anchor via XRShareableAnchorSubsystem.TryAttachGeospatialAnchor.

supportsAttachSurfaceAnchor

bool supportsAttachSurfaceAnchor

Gets a value indicating whether the provider implementation supports the ability to attach a surface anchor via XRShareableAnchorSubsystem.TryAttachSurfaceAnchorAsync.

supportsEraseAnchor

bool supportsEraseAnchor

Gets a value indicating whether the provider implementation supports the ability to erase the persistent saved data associated with an anchor via XRShareableAnchorSubsystem.TryEraseAnchorAsync.

supportsGetSavedAnchorIds

bool supportsGetSavedAnchorIds

Gets a value indicating whether the provider implementation supports the ability to get all saved persistent GUIDs via XRShareableAnchorSubsystem.TryGetSavedAnchorIdsAsync.

supportsLoadAnchor

bool supportsLoadAnchor

Gets a value indicating whether the provider implementation supports the ability to load persistently saved anchors via XRShareableAnchorSubsystem.TryLoadAnchorAsync.

supportsSaveAnchor

bool supportsSaveAnchor

Gets a value indicating whether the provider implementation supports the ability to persistently save anchors via XRShareableAnchorSubsystem.TrySaveAnchorAsync.

Public static functions

Register

void Register(
  Cinfo cinfo
)

Creates a new subsystem descriptor instance and registers it with the SubsystemManager.

Details
Parameters
cinfo
Construction info for the descriptor.

Public functions

GetSupportedHosts

XRShareableAnchorHosts GetSupportedHosts()

Gets the supported hosts for shareable anchors.

Details
Returns
The host types which are supported by the provider.