BaseServiceManager Class

Definition

Base class providing service registration and management functionality. This class can be used to implement a custom service management component for one or more services, similar to the MixedRealityToolkit object.

C++
public ref class BaseServiceManager : UnityEngine::MonoBehaviour, Microsoft::MixedReality::Toolkit::IMixedRealityServiceRegistrar
Inheritance
UnityEngine.MonoBehaviour
BaseServiceManager
Derived
Attributes
UnityEngine.AddComponentMenuAttribute
Implements

Constructors

Fields

registeredServices

The collection of registered services.

Methods

GetService<T>(String, Boolean)

Gets the instance of the registered service.

GetServices<T>(String)

Gets the collection of the registered service instances matching the requested type.

Initialize<T>(Type, SupportedPlatforms, Object[])

Initialize a service.

IsServiceRegistered<T>(String)

Checks to see if a service of the specified type has been registered.

OnDestroy()
OnDisable()
OnEnable()
RegisterService<T>(T)

Registers a service of the specified type.

RegisterService<T>(Type, SupportedPlatforms, Object[])

Registers a service of the specified type.

Uninitialize<T>()

Uninitialize a service.

UnregisterService<T>(String)

Unregisters a service of the specified type.

UnregisterService<T>(T)

Unregisters a service.

Update()

Applies to

Product Versions
MRTK2 Unity 2018 2.5.0, 2.5.1, 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0
MRTK2 Unity 2019 2.5.0, 2.5.1, 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0, 2.8.0
MRTK2 Unity 2020 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0, 2.8.0