System.Bluetooth.TBluetoothLEManager.GetGattServer
Delphi
function GetGattServer: TBluetoothGattServer;
C++
TBluetoothGattServer* __fastcall GetGattServer();
プロパティ
種類 | 可視性 | ソース | ユニット | 親 |
---|---|---|---|---|
function | public | System.Bluetooth.pas System.Bluetooth.hpp |
System.Bluetooth | TBluetoothLEManager |
説明
アプリケーションの動作プラットフォーム用の TBluetoothGattServer インスタンスのうち、リモート デバイスから問い合わせることができる Bluetooth LE サービスの公開に使用できるものを返します。
必ずしもすべてのプラットフォームで Bluetooth LE をサーバーとして使用できるわけではないので、SupportsGattServer の値を確認して、GetGattServer を呼び出せるかどうかを調べます。
プラットフォーム サポート
プラットフォーム | サポート対象 |
---|---|
Windows |
|
OS X |
10.9 以上 |
iOS |
6 以上 |
Android |
- メモ: サポートされていないプラットフォームで GetGattServer を呼び出すと、例外が発生します。