System.Bluetooth.TBluetoothManager
Delphi
TBluetoothManager = class
C++
class PASCALIMPLEMENTATION TBluetoothManager : public System::TObject
プロパティ
種類 | 可視性 | ソース | ユニット | 親 |
---|---|---|---|---|
class | public | System.Bluetooth.pas System.Bluetooth.hpp |
System.Bluetooth | System.Bluetooth |
説明
クラシック Bluetooth による通信の主要クラスです。
マネージャはクラシック Bluetooth 接続における主要コンポーネントです。マネージャはリモート デバイスを検出でき、アプリケーションの動作デバイスを検出可能にするように要求でき、リモート デバイスのサービスを公開でき、TBluetoothAdapter(CurrentAdapter)やTBluetoothDevice(LastDiscoveredDevices、GetPairedDevices)などの、さらなる機能を提供する他のクラスのインスタンスにアクセス可能にすることもできます。
アプリケーションで必要な TBluetoothManager は 1 つだけなので、TBluetoothManager のインスタンスを手動で作成する必要はありません。代わりに、Current を呼び出して TBluetoothManager のグローバル インスタンスを取得し、TBluetoothManager をシングルトンとして使用することができます。
TBluetoothManager には、クラスレベルのメソッド、プロパティ、イベントがいくつか用意されています。 たとえば、SocketTimeOut を使用して、クラシック Bluetooth によるデータ転送の所要時間の上限を定義したり、GetKnownServiceName を使用して、既知のクラシック Bluetooth サービスの識別子からそのサービスの表示名を取得することができます。
関連項目
- System.Bluetooth.TBluetoothLEManager
- System.Bluetooth.TBluetoothManager.Current
- System.Bluetooth.TBluetoothManager.SocketTimeOut
- System.Bluetooth.TBluetoothManager.GetKnownServiceName
- System.Bluetooth.TBluetoothManager.OnIdentifyCustomUUID
- System.Bluetooth.TBluetoothManager.CancelDiscovery
- System.Bluetooth.TBluetoothManager.CreateServerSocket
- System.Bluetooth.TBluetoothManager.GetPairedDevices
- System.Bluetooth.TBluetoothManager.StartDiscoverable
- System.Bluetooth.TBluetoothManager.StartDiscovery