System.Bluetooth.TBluetoothLEManager

提供: RAD Studio API Documentation
移動先: 案内検索

System.TInterfacedObjectSystem.TObjectTBluetoothLEManager

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 接続における主要コンポーネントです。マネージャは、リモート デバイスの検出やリモート デバイスのサービスの公開を行うことができるほか、TBluetoothLEAdapterCurrentAdapter)や TBluetoothLEDeviceLastDiscoveredDevices)など、追加の機能を提供するその他のクラスのインスタンスにアクセスする手段にもなります。

アプリケーションで必要な TBluetoothLEManager は 1 つだけなので、TBluetoothLEManager のインスタンスを手動で作成する必要はありません。代わりに、Current を呼び出して TBluetoothLEManager のグローバル インスタンスを取得し、TBluetoothLEManagerシングルトンとして使用することができます。

TBluetoothLEManager には、クラスレベルのメソッド、プロパティ、イベントがいくつか用意されています。たとえば、GetKnownServiceName を使用すると、サービス識別子を指定して既知の Bluetooth LE サービスの表示名を取得することができます。

メモ: iOS アプリケーションをバックグラウンドで実行して特定の Bluetooth イベントを管理する必要がある場合、Info.plist ファイルでキー UIBackgroundModesProject に必要な値を設定しなければなりません。詳細は、「iOS におけるバックグラウンド実行のサポート」を参照してください。

関連項目