ObjectInstance Class

Declaration

struct winrt::Microsoft::Azure::ObjectAnchors::ObjectInstance

Description

Instance of a detected object returned by object observer.

Methods

Dispose

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

void Dispose();

TryGetCurrentState

Returns current instance state. Returns null if an instance is closed or lost during tracking.

winrt::Microsoft::Azure::ObjectAnchors::ObjectInstanceState TryGetCurrentState();

Returns

  • winrt::Microsoft::Azure::ObjectAnchors::ObjectInstanceState

Properties

Mode

Tracking mode.

winrt::Microsoft::Azure::ObjectAnchors::ObjectInstanceTrackingMode Mode();
void Mode(winrt::Microsoft::Azure::ObjectAnchors::ObjectInstanceTrackingMode const& value);

ModelId

Id of the object model associated with this instance.

winrt::guid ModelId();

Events

Changed

Event on the state change of an object instance.

event_token Changed(winrt::Microsoft::Azure::ObjectAnchors::ObjectInstanceChangedHandler const& handler);
void Changed(event_token const& token);