System.Bluetooth.TBluetoothLEManager

Delphi
TBluetoothLEManager = class(TInterfacedObject)
C++
class PASCALIMPLEMENTATION TBluetoothLEManager : public System::TInterfacedObject
プロパティ
種類 | 可視性 | ソース | ユニット | 親 |
---|---|---|---|---|
class | public | System.Bluetooth.pas System.Bluetooth.hpp |
System.Bluetooth | System.Bluetooth |
説明
Bluetooth LE による通信の主要クラスです。
マネージャは Bluetooth LE 接続における主要コンポーネントです。マネージャは、リモート デバイスの検出やリモート デバイスのサービスの公開を行うことができるほか、TBluetoothLEAdapter(CurrentAdapter)や TBluetoothLEDevice(LastDiscoveredDevices)など、追加の機能を提供するその他のクラスのインスタンスにアクセスする手段にもなります。
アプリケーションで必要な TBluetoothLEManager は 1 つだけなので、TBluetoothLEManager のインスタンスを手動で作成する必要はありません。代わりに、Current を呼び出して TBluetoothLEManager のグローバル インスタンスを取得し、TBluetoothLEManager をシングルトンとして使用することができます。
TBluetoothLEManager には、クラスレベルのメソッド、プロパティ、イベントがいくつか用意されています。たとえば、GetKnownServiceName を使用すると、サービス識別子を指定して既知の Bluetooth LE サービスの表示名を取得することができます。
メモ: iOS アプリケーションをバックグラウンドで実行して特定の Bluetooth イベントを管理する必要がある場合、Info.plist
ファイルでキー UIBackgroundModesProject
に必要な値を設定しなければなりません。詳細は、「iOS におけるバックグラウンド実行のサポート」を参照してください。
関連項目
- System.Bluetooth.TBluetoothLEManager.Current
- System.Bluetooth.TBluetoothLEManager.GetKnownServiceName
- System.Bluetooth.TBluetoothLEManager.OnIdentifyCustomUUID
- System.Bluetooth.TBluetoothLEManager.CancelDiscovery
- System.Bluetooth.TBluetoothLEManager.GetGattServer
- System.Bluetooth.TBluetoothLEManager.StartDiscovery