MixedRealitySpatialAwarenessSystem.GetObservers Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
GetObservers() |
Gets the collection of registered IMixedRealitySpatialAwarenessObserver data providers. |
GetObservers<T>() |
Get the collection of registered observers of the specified type. |
GetObservers()
Gets the collection of registered IMixedRealitySpatialAwarenessObserver data providers.
public:
virtual System::Collections::Generic::IReadOnlyList<Microsoft::MixedReality::Toolkit::SpatialAwareness::IMixedRealitySpatialAwarenessObserver ^> ^ GetObservers();
public System.Collections.Generic.IReadOnlyList<Microsoft.MixedReality.Toolkit.SpatialAwareness.IMixedRealitySpatialAwarenessObserver> GetObservers ();
abstract member GetObservers : unit -> System.Collections.Generic.IReadOnlyList<Microsoft.MixedReality.Toolkit.SpatialAwareness.IMixedRealitySpatialAwarenessObserver>
override this.GetObservers : unit -> System.Collections.Generic.IReadOnlyList<Microsoft.MixedReality.Toolkit.SpatialAwareness.IMixedRealitySpatialAwarenessObserver>
Public Function GetObservers () As IReadOnlyList(Of IMixedRealitySpatialAwarenessObserver)
Returns
Read only copy of the list of registered observers.
Implements
Applies to
GetObservers<T>()
Get the collection of registered observers of the specified type.
public:
generic <typename T>
where T : Microsoft::MixedReality::Toolkit::SpatialAwareness::IMixedRealitySpatialAwarenessObserver virtual System::Collections::Generic::IReadOnlyList<T> ^ GetObservers();
public System.Collections.Generic.IReadOnlyList<T> GetObservers<T> () where T : Microsoft.MixedReality.Toolkit.SpatialAwareness.IMixedRealitySpatialAwarenessObserver;
abstract member GetObservers : unit -> System.Collections.Generic.IReadOnlyList<'T (requires 'T :> Microsoft.MixedReality.Toolkit.SpatialAwareness.IMixedRealitySpatialAwarenessObserver)> (requires 'T :> Microsoft.MixedReality.Toolkit.SpatialAwareness.IMixedRealitySpatialAwarenessObserver)
override this.GetObservers : unit -> System.Collections.Generic.IReadOnlyList<'T (requires 'T :> Microsoft.MixedReality.Toolkit.SpatialAwareness.IMixedRealitySpatialAwarenessObserver)> (requires 'T :> Microsoft.MixedReality.Toolkit.SpatialAwareness.IMixedRealitySpatialAwarenessObserver)
Public Function GetObservers(Of T As IMixedRealitySpatialAwarenessObserver) () As IReadOnlyList(Of T)
Type Parameters
- T
The desired spatial awareness observer type (ex: IMixedRealitySpatialAwarenessMeshObserver)
Returns
Readonly copy of the list of registered observers that implement the specified type.