Language

BluetoothGattServer クラス

定義

Bluetooth GATT プロファイル サーバー ロールのパブリック API。

[Android.Runtime.Register("android/bluetooth/BluetoothGattServer", DoNotGenerateAcw=true)]
public sealed class BluetoothGattServer : Java.Lang.Object, Android.Bluetooth.IBluetoothProfile, IDisposable
[<Android.Runtime.Register("android/bluetooth/BluetoothGattServer", DoNotGenerateAcw=true)>]
type BluetoothGattServer = class
    inherit Object
    interface IBluetoothProfile
    interface IJavaObject
    interface IDisposable
    interface IJavaPeerable
継承
BluetoothGattServer
属性
実装

注釈

Bluetooth GATT プロファイル サーバー ロールのパブリック API。

このクラスBluetooth GATT サーバーの役割機能が提供され、アプリケーションはスマート サービスと特性Bluetooth作成できます。

BluetoothGattServer は、IPC 経由で Bluetooth サービスを制御するためのプロキシ オブジェクトです。 BluetoothManager#openGattServerを使用して、このクラスのインスタンスを取得します。

Javaドキュメント。

このページの一部は、によって作成および共有され、に記載されている条件に従って使用される作業に基づく変更です。

プロパティ

Name 説明
Class

この Objectのランタイム クラスを返します。

(継承元 Object)
ConnectedDevices

サポートされていません - 引数として BluetoothManager#getConnectedDevices(int)BluetoothProfile#GATT を使用してください

Handle

基になる Android インスタンスへのハンドル。

(継承元 Object)
JniIdentityHashCode

相互運用ランタイムによってこのJava ピアに割り当てられた ID ハッシュ コードを取得します。

(継承元 Object)
JniManagedPeerState

Bluetooth GATT プロファイル サーバー ロールのパブリック API。

(継承元 JavaObject)
JniPeerMembers

Bluetooth GATT プロファイル サーバー ロールのパブリック API。

PeerReference

このJava ピアの JNI オブジェクト参照を取得します。

(継承元 Object)
Services

このデバイスによって提供される GATT サービスの一覧を返します。

ThresholdClass

この API は Android 用 Mono インフラストラクチャをサポートしており、コードから直接使用するためのものではありません。

(継承元 Object)
ThresholdType

この API は Android 用 Mono インフラストラクチャをサポートしており、コードから直接使用するためのものではありません。

(継承元 Object)

メソッド

Name 説明
AddService(BluetoothGattService)

ホストするサービスの一覧にサービスを追加します。

CancelConnection(BluetoothDevice)

確立された接続を切断するか、現在進行中の接続試行を取り消します。

ClearServices()

提供されているサービスの一覧からすべてのサービスを削除します。

Clone()

このオブジェクトのコピーを作成して返します。

(継承元 Object)
Close()

この GATT サーバー インスタンスを閉じます。

Connect(BluetoothDevice, Boolean)

Bluetooth GATT 対応デバイスへの接続を開始します。

Construct(JniObjectReference, JniObjectReferenceOptions)

Bluetooth GATT プロファイル サーバー ロールのパブリック API。

(継承元 JavaObject)
Dispose()

このJava ピアによって保持されているリソースを解放します。

(継承元 Object)
Dispose(Boolean)

このJava ピアによって保持されているリソースを解放します。

(継承元 Object)
DisposeUnlessReferenced()

Bluetooth GATT プロファイル サーバー ロールのパブリック API。

(継承元 JavaObject)
Equals(Object)

Bluetooth GATT プロファイル サーバー ロールのパブリック API。

(継承元 JavaObject)
Equals(Object)

他のオブジェクトがこのオブジェクトと "等しい" かどうかを示します。

(継承元 Object)
GetConnectionState(BluetoothDevice)

サポートされていません - 引数として BluetoothManager#getConnectedDevices(int)BluetoothProfile#GATT を使用してください

GetDevicesMatchingConnectionStates(ProfileState[])

サポートされていません - 最初の引数として BluetoothManager#getDevicesMatchingConnectionStates(int, int[]) でBluetoothProfile#GATTを使用してください

GetHashCode()

オブジェクトのハッシュ コード値を返します。

(継承元 Object)
GetService(UUID)

このデバイスによって提供されるサービスの一覧から BluetoothGattService を返します。

JavaFinalize()
古い.

オブジェクトへの参照がなくなったとガベージ コレクションによって判断されたときに、オブジェクトのガベージ コレクターによって呼び出されます。

(継承元 Object)
Notify()

このオブジェクトのモニターで待機している 1 つのスレッドを起動します。

(継承元 Object)
NotifyAll()

このオブジェクトのモニターで待機しているすべてのスレッドを起動します。

(継承元 Object)
NotifyCharacteristicChanged(BluetoothDevice, BluetoothGattCharacteristic, Boolean, Byte[])

ローカル特性が更新されたことを示す通知または通知を送信します。

NotifyCharacteristicChanged(BluetoothDevice, BluetoothGattCharacteristic, Boolean)

ローカル特性が更新されたことを示す通知または通知を送信します。

ReadPhy(BluetoothDevice)

接続の現在の送信機 PHY と受信側 PHY を読み取ります。

RemoveService(BluetoothGattService)

提供するサービスの一覧からサービスを削除します。

SendResponse(BluetoothDevice, Int32, GattStatus, Int32, Byte[])

Bluetooth GATT プロファイル サーバー ロールのパブリック API。

SendResponse(BluetoothDevice, Int32, ProfileState, Int32, Byte[])

リモート デバイスに読み取りまたは書き込み要求に応答を送信します。

SetHandle(IntPtr, JniHandleOwnership)

Handle プロパティを設定します。

(継承元 Object)
SetPeerReference(JniObjectReference, JniObjectReferenceOptions)

Bluetooth GATT プロファイル サーバー ロールのパブリック API。

(継承元 JavaObject)
SetPreferredPhy(BluetoothDevice, BluetoothPhy, BluetoothPhy, BluetoothPhyOption)

このアプリの優先接続 PHY を設定します。

ToArray<T>()

このJava配列ラッパーからマネージド配列を作成します。

(継承元 Object)
ToString()

オブジェクトの文字列形式を返します。

(継承元 Object)
UnregisterFromRuntime()

相互運用ランタイムからこのJava ピアの登録を解除します。

(継承元 Object)
Wait()

現在のスレッドが起動するまで待機します。通常は、 <em>notified</em> または <em>interrupted</em>。

(継承元 Object)
Wait(Int64, Int32)

現在のスレッドは、通常、 <em>notified</em> または <em>interrupted</em>、または一定のリアルタイムが経過するまで、起動されるまで待機します。

(継承元 Object)
Wait(Int64)

現在のスレッドは、通常、 <em>notified</em> または <em>interrupted</em>、または一定のリアルタイムが経過するまで、起動されるまで待機します。

(継承元 Object)

明示的なインターフェイスの実装

Name 説明
IJavaPeerable.Disposed()

Bluetooth GATT プロファイル サーバー ロールのパブリック API。

(継承元 JavaObject)
IJavaPeerable.Finalized()

Bluetooth GATT プロファイル サーバー ロールのパブリック API。

(継承元 JavaObject)
IJavaPeerable.JniObjectReferenceControlBlock

Bluetooth GATT プロファイル サーバー ロールのパブリック API。

(継承元 JavaObject)
IJavaPeerable.SetJniIdentityHashCode(Int32)

Bluetooth GATT プロファイル サーバー ロールのパブリック API。

(継承元 JavaObject)
IJavaPeerable.SetJniManagedPeerState(JniManagedPeerStates)

Bluetooth GATT プロファイル サーバー ロールのパブリック API。

(継承元 JavaObject)
IJavaPeerable.SetPeerReference(JniObjectReference)

Bluetooth GATT プロファイル サーバー ロールのパブリック API。

(継承元 JavaObject)
IJavaPeerable.UnregisterFromRuntime()

Bluetooth GATT プロファイル サーバー ロールのパブリック API。

拡張メソッド

Name 説明
GetJniTypeName(IJavaPeerable)

インスタンス selfの型の JNI 名を取得します。

JavaAs<TResult>(IJavaPeerable)

selfを強制的にTResult入力し、強制型がJava側で有効であることを確認します。

JavaCast<TResult>(IJavaObject)

Android ランタイムチェック型変換を実行します。

JavaCast<TResult>(IJavaObject)

Bluetooth GATT プロファイル サーバー ロールのパブリック API。

TryJavaCast<TResult>(IJavaPeerable, TResult)

selfを強制的にTResult入力し、強制型がJava側で有効であることを確認します。

適用対象