編集

次の方法で共有


BaseServiceManager.Initialize<T> Method

Definition

Initialize a service.

protected virtual void Initialize<T> (Type concreteType, Microsoft.MixedReality.Toolkit.Utilities.SupportedPlatforms supportedPlatforms = Microsoft.MixedReality.Toolkit.Utilities.SupportedPlatforms.Android | Microsoft.MixedReality.Toolkit.Utilities.SupportedPlatforms.IOS | Microsoft.MixedReality.Toolkit.Utilities.SupportedPlatforms.LinuxEditor | Microsoft.MixedReality.Toolkit.Utilities.SupportedPlatforms.LinuxStandalone | Microsoft.MixedReality.Toolkit.Utilities.SupportedPlatforms.Lumin | Microsoft.MixedReality.Toolkit.Utilities.SupportedPlatforms.MacEditor | Microsoft.MixedReality.Toolkit.Utilities.SupportedPlatforms.MacStandalone | Microsoft.MixedReality.Toolkit.Utilities.SupportedPlatforms.Web | Microsoft.MixedReality.Toolkit.Utilities.SupportedPlatforms.WindowsEditor | Microsoft.MixedReality.Toolkit.Utilities.SupportedPlatforms.WindowsStandalone | Microsoft.MixedReality.Toolkit.Utilities.SupportedPlatforms.WindowsUniversal, params object[] args) where T : Microsoft.MixedReality.Toolkit.IMixedRealityService;
abstract member Initialize : Type * Microsoft.MixedReality.Toolkit.Utilities.SupportedPlatforms * obj[] -> unit (requires 'T :> Microsoft.MixedReality.Toolkit.IMixedRealityService)
override this.Initialize : Type * Microsoft.MixedReality.Toolkit.Utilities.SupportedPlatforms * obj[] -> unit (requires 'T :> Microsoft.MixedReality.Toolkit.IMixedRealityService)
Protected Overridable Sub Initialize(Of T As IMixedRealityService) (concreteType As Type, Optional supportedPlatforms As SupportedPlatforms = Microsoft.MixedReality.Toolkit.Utilities.SupportedPlatforms.Android | Microsoft.MixedReality.Toolkit.Utilities.SupportedPlatforms.IOS | Microsoft.MixedReality.Toolkit.Utilities.SupportedPlatforms.LinuxEditor | Microsoft.MixedReality.Toolkit.Utilities.SupportedPlatforms.LinuxStandalone | Microsoft.MixedReality.Toolkit.Utilities.SupportedPlatforms.Lumin | Microsoft.MixedReality.Toolkit.Utilities.SupportedPlatforms.MacEditor | Microsoft.MixedReality.Toolkit.Utilities.SupportedPlatforms.MacStandalone | Microsoft.MixedReality.Toolkit.Utilities.SupportedPlatforms.Web | Microsoft.MixedReality.Toolkit.Utilities.SupportedPlatforms.WindowsEditor | Microsoft.MixedReality.Toolkit.Utilities.SupportedPlatforms.WindowsStandalone | Microsoft.MixedReality.Toolkit.Utilities.SupportedPlatforms.WindowsUniversal, ParamArray args As Object())

Type Parameters

T

The interface type for the service to be initialized.

Parameters

concreteType
Type

The concrete type of the service to initialize.

supportedPlatforms
SupportedPlatforms

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

args
Object[]

Arguments to provide to the service class constructor.

Applies to