VibrationDevice クラス

定義

振動通知のみをサポートするデバイスへのアクセスを提供します。

public ref class VibrationDevice sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 262144)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class VibrationDevice final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 262144)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class VibrationDevice
Public NotInheritable Class VibrationDevice
継承
Object Platform::Object IInspectable VibrationDevice
属性

Windows の要件

デバイス ファミリ
Windows 10 Creators Update (10.0.15063.0 で導入)
API contract
Windows.Foundation.UniversalApiContract (v4.0 で導入)

プロパティ

Id

振動デバイスの識別子を取得します。

SimpleHapticsController

ハプティクス フィードバックの動作を指定する SimpleHapticsController オブジェクトへの参照を取得します。

メソッド

FindAllAsync()

検出されたすべての振動デバイスを非同期的に取得します。

FromIdAsync(String)

指定された振動デバイスを非同期的に取得します。

GetDefaultAsync()

既定の振動デバイスを非同期的に取得します。

GetDeviceSelector()

振動デバイスを列挙するために使用できるクラス選択文字列を返します。

RequestAccessAsync()

振動デバイスのアクセス状態を非同期的に取得します。

適用対象