編集

次の方法で共有


BaseService Class

Definition

The base service implements IMixedRealityService and provides default properties for all services.

public ref class BaseService abstract : IDisposable, Microsoft::MixedReality::Toolkit::IMixedRealityService
public ref class BaseService abstract : IDisposable, Microsoft::MixedReality::Toolkit::IMixedRealityService, Microsoft::MixedReality::Toolkit::IMixedRealityServiceState
public abstract class BaseService : IDisposable, Microsoft.MixedReality.Toolkit.IMixedRealityService
public abstract class BaseService : IDisposable, Microsoft.MixedReality.Toolkit.IMixedRealityService, Microsoft.MixedReality.Toolkit.IMixedRealityServiceState
type BaseService = class
    interface IMixedRealityService
    interface IDisposable
type BaseService = class
    interface IMixedRealityService
    interface IDisposable
    interface IMixedRealityServiceState
Public MustInherit Class BaseService
Implements IDisposable, IMixedRealityService
Public MustInherit Class BaseService
Implements IDisposable, IMixedRealityService, IMixedRealityServiceState
Inheritance
BaseService
Derived
Implements

Constructors

BaseService()

Fields

DefaultPriority
disposed

Value indicating if the object has completed disposal.

Properties

ConfigurationProfile

The configuration profile for the service.

IsEnabled

Indicates whether or not the service is currently enabled.

IsInitialized

Indicates whether or not the service has been initialized.

IsMarkedDestroyed

Indicates whether or not the Destroy method been called on this service.

Name

Optional Priority attribute if multiple services of the same type are required, enables targeting a service for action.

Priority

Optional Priority to reorder registered managers based on their respective priority, reduces the risk of race conditions by prioritizing the order in which managers are evaluated.

Methods

Destroy()

Optional Destroy function to perform cleanup of the service before the Mixed Reality Toolkit is destroyed.

Disable()

Optional Disable function to pause the service.

Dispose()

Cleanup resources used by this object.

Dispose(Boolean)

Cleanup resources used by the object

Enable()

Optional Enable function to enable / re-enable the service.

Finalize()

Finalizer

Initialize()

The initialize function is used to setup the service once created. This method is called once all services have been registered in the Mixed Reality Toolkit.

LateUpdate()

Optional LateUpdate function to that is called after Update has been called on all services.

Reset()

Optional Reset function to perform that will Reset the service, for example, whenever there is a profile change.

Update()

Optional Update function to perform per-frame updates of the service.

Applies to