편집

다음을 통해 공유


MixedRealitySpatialAwarenessSystem.GetObservers Method

Definition

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.

Implements

Applies to