mrtk_developmentreleases/2.0.0releases/2.1.0releases/2.2.0

    Show / Hide Table of Contents

    Class BaseServiceManager

    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.

    Inheritance
    Object
    BaseServiceManager
    BoundarySystemManager
    CameraSystemManager
    DiagnosticsSystemManager
    InputSystemManager
    SpatialAwarenessSystemManager
    TeleportSystemManager
    Implements
    IMixedRealityServiceRegistrar
    MonoBehaviour
    Namespace: Microsoft.MixedReality.Toolkit.Experimental
    Assembly: cs.temp.dll.dll
    Syntax
    public class BaseServiceManager : MonoBehaviour, IMixedRealityServiceRegistrar, MonoBehaviour

    Fields

    registeredServices

    The collection of registered services.

    Declaration
    protected Dictionary<Type, IMixedRealityService> registeredServices
    Field Value
    Type Description
    Dictionary<Type, IMixedRealityService>

    registeredServices

    The collection of registered services.

    Declaration
    protected Dictionary<Type, IMixedRealityService> registeredServices
    Field Value
    Type Description
    Dictionary<Type, IMixedRealityService>

    Methods

    GetService<T>(String, Boolean)

    Declaration
    public T GetService<T>(string name = null, bool showLogs = true)
    
        where T : IMixedRealityService
    Parameters
    Type Name Description
    String name
    Boolean showLogs
    Returns
    Type Description
    T
    Type Parameters
    Name Description
    T

    GetService<T>(String, Boolean)

    Declaration
    public T GetService<T>(string name = null, bool showLogs = true)
    
        where T : IMixedRealityService
    Parameters
    Type Name Description
    String name
    Boolean showLogs
    Returns
    Type Description
    T
    Type Parameters
    Name Description
    T

    GetServices<T>(String)

    Declaration
    public IReadOnlyList<T> GetServices<T>(string name = null)
    
        where T : IMixedRealityService
    Parameters
    Type Name Description
    String name
    Returns
    Type Description
    IReadOnlyList<T>
    Type Parameters
    Name Description
    T

    GetServices<T>(String)

    Declaration
    public IReadOnlyList<T> GetServices<T>(string name = null)
    
        where T : IMixedRealityService
    Parameters
    Type Name Description
    String name
    Returns
    Type Description
    IReadOnlyList<T>
    Type Parameters
    Name Description
    T

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

    Initialize a service.

    Declaration
    protected virtual void Initialize<T>(Type concreteType, SupportedPlatforms supportedPlatforms = null, params object[] args)
    
        where T : IMixedRealityService
    Parameters
    Type Name Description
    Type concreteType

    The concrete type of the service to initialize.

    SupportedPlatforms supportedPlatforms

    The platform(s) on which the service is supported.

    Object[] args

    Arguments to provide to the service class constructor.

    Type Parameters
    Name Description
    T

    The interface type for the service to be initialized.

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

    Initialize a service.

    Declaration
    protected virtual void Initialize<T>(Type concreteType, SupportedPlatforms supportedPlatforms = null, params object[] args)
    
        where T : IMixedRealityService
    Parameters
    Type Name Description
    Type concreteType

    The concrete type of the service to initialize.

    SupportedPlatforms supportedPlatforms

    The platform(s) on which the service is supported.

    Object[] args

    Arguments to provide to the service class constructor.

    Type Parameters
    Name Description
    T

    The interface type for the service to be initialized.

    IsServiceRegistered<T>(String)

    Declaration
    public bool IsServiceRegistered<T>(string name = null)
    
        where T : IMixedRealityService
    Parameters
    Type Name Description
    String name
    Returns
    Type Description
    Boolean
    Type Parameters
    Name Description
    T

    IsServiceRegistered<T>(String)

    Declaration
    public bool IsServiceRegistered<T>(string name = null)
    
        where T : IMixedRealityService
    Parameters
    Type Name Description
    String name
    Returns
    Type Description
    Boolean
    Type Parameters
    Name Description
    T

    OnDestroy()

    Declaration
    protected virtual void OnDestroy()

    OnDestroy()

    Declaration
    protected virtual void OnDestroy()

    OnDisable()

    Declaration
    protected virtual void OnDisable()

    OnDisable()

    Declaration
    protected virtual void OnDisable()

    OnEnable()

    Declaration
    protected virtual void OnEnable()

    OnEnable()

    Declaration
    protected virtual void OnEnable()

    RegisterService<T>(T)

    Declaration
    public bool RegisterService<T>(T serviceInstance)
    
        where T : IMixedRealityService
    Parameters
    Type Name Description
    T serviceInstance
    Returns
    Type Description
    Boolean
    Type Parameters
    Name Description
    T

    RegisterService<T>(T)

    Declaration
    public bool RegisterService<T>(T serviceInstance)
    
        where T : IMixedRealityService
    Parameters
    Type Name Description
    T serviceInstance
    Returns
    Type Description
    Boolean
    Type Parameters
    Name Description
    T

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

    Declaration
    public bool RegisterService<T>(Type concreteType, SupportedPlatforms supportedPlatforms = null, params object[] args)
    
        where T : IMixedRealityService
    Parameters
    Type Name Description
    Type concreteType
    SupportedPlatforms supportedPlatforms
    Object[] args
    Returns
    Type Description
    Boolean
    Type Parameters
    Name Description
    T

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

    Declaration
    public bool RegisterService<T>(Type concreteType, SupportedPlatforms supportedPlatforms = null, params object[] args)
    
        where T : IMixedRealityService
    Parameters
    Type Name Description
    Type concreteType
    SupportedPlatforms supportedPlatforms
    Object[] args
    Returns
    Type Description
    Boolean
    Type Parameters
    Name Description
    T

    Uninitialize<T>()

    Uninitialize a service.

    Declaration
    protected virtual void Uninitialize<T>()
    
        where T : IMixedRealityService
    Type Parameters
    Name Description
    T

    The interface type for the service to uninitialize.

    Uninitialize<T>()

    Uninitialize a service.

    Declaration
    protected virtual void Uninitialize<T>()
    
        where T : IMixedRealityService
    Type Parameters
    Name Description
    T

    The interface type for the service to uninitialize.

    UnregisterService<T>(T)

    Declaration
    public bool UnregisterService<T>(T serviceInstance)
    
        where T : IMixedRealityService
    Parameters
    Type Name Description
    T serviceInstance
    Returns
    Type Description
    Boolean
    Type Parameters
    Name Description
    T

    UnregisterService<T>(T)

    Declaration
    public bool UnregisterService<T>(T serviceInstance)
    
        where T : IMixedRealityService
    Parameters
    Type Name Description
    T serviceInstance
    Returns
    Type Description
    Boolean
    Type Parameters
    Name Description
    T

    UnregisterService<T>(String)

    Declaration
    public bool UnregisterService<T>(string name = null)
    
        where T : IMixedRealityService
    Parameters
    Type Name Description
    String name
    Returns
    Type Description
    Boolean
    Type Parameters
    Name Description
    T

    UnregisterService<T>(String)

    Declaration
    public bool UnregisterService<T>(string name = null)
    
        where T : IMixedRealityService
    Parameters
    Type Name Description
    String name
    Returns
    Type Description
    Boolean
    Type Parameters
    Name Description
    T

    Update()

    Declaration
    protected virtual void Update()

    Update()

    Declaration
    protected virtual void Update()

    Implements

    IMixedRealityServiceRegistrar
    MonoBehaviour
    In This Article
    • Fields
      • registeredServices
      • registeredServices
    • Methods
      • GetService<T>(String, Boolean)
      • GetService<T>(String, Boolean)
      • GetServices<T>(String)
      • GetServices<T>(String)
      • Initialize<T>(Type, SupportedPlatforms, Object[])
      • Initialize<T>(Type, SupportedPlatforms, Object[])
      • IsServiceRegistered<T>(String)
      • IsServiceRegistered<T>(String)
      • OnDestroy()
      • OnDestroy()
      • OnDisable()
      • OnDisable()
      • OnEnable()
      • OnEnable()
      • RegisterService<T>(T)
      • RegisterService<T>(T)
      • RegisterService<T>(Type, SupportedPlatforms, Object[])
      • RegisterService<T>(Type, SupportedPlatforms, Object[])
      • Uninitialize<T>()
      • Uninitialize<T>()
      • UnregisterService<T>(T)
      • UnregisterService<T>(T)
      • UnregisterService<T>(String)
      • UnregisterService<T>(String)
      • Update()
      • Update()
    • Implements
    Back to top Generated by DocFX