Language

DiscoverySession.InitiateBootstrappingRequest メソッド

定義

オーバーロード

Name 説明
InitiateBootstrappingRequest(PeerHandle, AwarePairingBootstrappingMethods)

Wi-Fi 対応仕様バージョン 4 に従って定義されます。

InitiateBootstrappingRequest(PeerHandle, AwarePairingBootstrappingMethods, Byte[])

Wi-Fi 対応仕様バージョン 4.0 セクション 7.6.4.1 に従って定義されます。

InitiateBootstrappingRequest(PeerHandle, AwarePairingBootstrappingMethods)

Wi-Fi 対応仕様バージョン 4 に従って定義されます。

[Android.Runtime.Register("initiateBootstrappingRequest", "(Landroid/net/wifi/aware/PeerHandle;I)V", "GetInitiateBootstrappingRequest_Landroid_net_wifi_aware_PeerHandle_IHandler", ApiSince=34)]
public virtual void InitiateBootstrappingRequest(Android.Net.Wifi.Aware.PeerHandle peerHandle, Android.Net.Wifi.Aware.AwarePairingBootstrappingMethods method);
[<Android.Runtime.Register("initiateBootstrappingRequest", "(Landroid/net/wifi/aware/PeerHandle;I)V", "GetInitiateBootstrappingRequest_Landroid_net_wifi_aware_PeerHandle_IHandler", ApiSince=34)>]
abstract member InitiateBootstrappingRequest : Android.Net.Wifi.Aware.PeerHandle * Android.Net.Wifi.Aware.AwarePairingBootstrappingMethods -> unit
override this.InitiateBootstrappingRequest : Android.Net.Wifi.Aware.PeerHandle * Android.Net.Wifi.Aware.AwarePairingBootstrappingMethods -> unit

パラメーター

peerHandle
PeerHandle

ペアリング要求のピアのハンドル。 DiscoverySessionCallback#onServiceDiscovered(ServiceDiscoveryInfo)イベントまたはDiscoverySessionCallback#onMessageReceived(PeerHandle, byte[])イベントの結果である必要があります。

method
AwarePairingBootstrappingMethods

AwarePairingBootstrappingMethods値のいずれかと一致する必要があります。PairingConfigBootstrappingMethods

属性

注釈

ターゲット ピアとのペアリングを作成するために、Wi-Fi 対応ブートストラップ セットアップ要求を開始します。 検出セッションのコンテキストで、発行/サブスクライブ DiscoverySessionCallback#onServiceDiscovered(ServiceDiscoveryInfo) イベントを受信した後で、対応するブートストラップ要求を実行する必要があります。 ピアは、Aware Bootstrapping のセットアップが完了したときに、 AwarePairingConfig.Builder#setBootstrappingMethods(int) によってメソッドを満たすことができるかどうかを確認します。 DiscoverySessionCallback#onBootstrappingSucceeded(PeerHandle, int)

Javaドキュメント。

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

適用対象

InitiateBootstrappingRequest(PeerHandle, AwarePairingBootstrappingMethods, Byte[])

Wi-Fi 対応仕様バージョン 4.0 セクション 7.6.4.1 に従って定義されます。

[Android.Runtime.Register("initiateBootstrappingRequest", "(Landroid/net/wifi/aware/PeerHandle;I[B)V", "GetInitiateBootstrappingRequest_Landroid_net_wifi_aware_PeerHandle_IarrayBHandler", ApiSince=37)]
public virtual void InitiateBootstrappingRequest(Android.Net.Wifi.Aware.PeerHandle peerHandle, Android.Net.Wifi.Aware.AwarePairingBootstrappingMethods method, byte[] message);
[<Android.Runtime.Register("initiateBootstrappingRequest", "(Landroid/net/wifi/aware/PeerHandle;I[B)V", "GetInitiateBootstrappingRequest_Landroid_net_wifi_aware_PeerHandle_IarrayBHandler", ApiSince=37)>]
abstract member InitiateBootstrappingRequest : Android.Net.Wifi.Aware.PeerHandle * Android.Net.Wifi.Aware.AwarePairingBootstrappingMethods * byte[] -> unit
override this.InitiateBootstrappingRequest : Android.Net.Wifi.Aware.PeerHandle * Android.Net.Wifi.Aware.AwarePairingBootstrappingMethods * byte[] -> unit

パラメーター

peerHandle
PeerHandle

ペアリング要求のピアのハンドル。 OnServiceDiscovered(ServiceDiscoveryInfo)、OnServiceDiscoveredWithinRange(ServiceDiscoveryInfo, Int32)、またはOnMessageReceived(PeerHandle, Byte[])のハンドルを使用します。

method
AwarePairingBootstrappingMethods

AwarePairingBootstrappingMethods値のいずれかと一致する必要があります。PairingConfigBootstrappingMethods

message
Byte[]

サービス記述子拡張属性 (SDEA) でサービス情報として送信できる任意のバイト配列 - 詳細については、Wi-Fi Aware 仕様 9.5.4.2 を参照してください。 CreateTxtRecordTlvBuffer(IDictionary<String,String>)を使用して、DNS-SD 形式のキー値メッセージを作成することをお勧めします。

属性

注釈

Wi-Fi 対応仕様バージョン 4.0 セクション 7.6.4.1 に従って定義されます。 検出セッションでピアのブートストラップ要求を開始します。 ピアは、 SetBootstrappingMethods(AwarePairingBootstrappingMethods)によって構成された要求されたメソッドをサポートしているかどうかを確認します。 ブートストラップが成功すると、両方のピアが OnBootstrappingSucceeded(PeerHandle, AwarePairingBootstrappingMethods, Byte[])を受け取ります。

android.net.wifi.aware.DiscoverySession.initiateBootstrappingRequestの Android リファレンス。

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

適用対象