System.Bluetooth.TBluetoothLEAdvertiseData.DoAddServiceUUID

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

Delphi

function DoAddServiceUUID(const AServiceUUID: TBluetoothUUID): Boolean; virtual; abstract;

C++

virtual bool __fastcall DoAddServiceUUID(const GUID &AServiceUUID) = 0 ;

プロパティ

種類 可視性 ソース ユニット
function protected
System.Bluetooth.pas
System.Bluetooth.hpp
System.Bluetooth TBluetoothLEAdvertiseData


説明

メモ: これは、TBluetoothLEAdvertiseData のプラットフォーム固有のサブクラスで実装される抽象メソッドです。

アドバタイズされるサービス UUIDGATT サービスの指定 UUID を追加してみて、成功すれば True を、成功しなければ False を返します。

例外

例外 メッセージ シナリオ
EBluetoothLEAdvertiseDataException Android 5 (API 21) 以上が必要です
  • お使いのデバイスに搭載されている Android バージョンで Bluetooth LE アドバタイズがサポートされていません。

関連項目