Upravit

Sdílet prostřednictvím


IMixedRealitySpatialAwarenessSystem.GetObservers Method

Definition

Overloads

GetObservers()
Obsolete.

Gets the collection of registered IMixedRealitySpatialAwarenessObserver data providers.

GetObservers<T>()
Obsolete.

Get the collection of registered observers of the specified type.

GetObservers()

Caution

GetObservers will be removed in a future release. Cast to IMixedRealityDataProviderAccess and call GetDataProviders instead

Gets the collection of registered IMixedRealitySpatialAwarenessObserver data providers.

public:
 System::Collections::Generic::IReadOnlyList<Microsoft::MixedReality::Toolkit::SpatialAwareness::IMixedRealitySpatialAwarenessObserver ^> ^ GetObservers();
[System.Obsolete("GetObservers will be removed in a future release. Cast to IMixedRealityDataProviderAccess and call GetDataProviders instead")]
public System.Collections.Generic.IReadOnlyList<Microsoft.MixedReality.Toolkit.SpatialAwareness.IMixedRealitySpatialAwarenessObserver> GetObservers ();
[<System.Obsolete("GetObservers will be removed in a future release. Cast to IMixedRealityDataProviderAccess and call GetDataProviders instead")>]
abstract member 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.

Attributes

Applies to

GetObservers<T>()

Caution

GetObservers<T> will be removed in a future release. Cast to IMixedRealityDataProviderAccess and call GetDataProviders<T> instead

Get the collection of registered observers of the specified type.

public:
generic <typename T>
 where T : Microsoft::MixedReality::Toolkit::SpatialAwareness::IMixedRealitySpatialAwarenessObserver System::Collections::Generic::IReadOnlyList<T> ^ GetObservers();
[System.Obsolete("GetObservers<T> will be removed in a future release. Cast to IMixedRealityDataProviderAccess and call GetDataProviders<T> instead")]
public System.Collections.Generic.IReadOnlyList<T> GetObservers<T> () where T : Microsoft.MixedReality.Toolkit.SpatialAwareness.IMixedRealitySpatialAwarenessObserver;
[<System.Obsolete("GetObservers<T> will be removed in a future release. Cast to IMixedRealityDataProviderAccess and call GetDataProviders<T> instead")>]
abstract member 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.

Attributes

Applies to