DiscoverySession.InitiateBootstrappingRequest Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| Name | Description |
|---|---|
| InitiateBootstrappingRequest(PeerHandle, AwarePairingBootstrappingMethods) |
Defined as per Wi-Fi Aware specifications version 4. |
| InitiateBootstrappingRequest(PeerHandle, AwarePairingBootstrappingMethods, Byte[]) |
Defined as per Wi-Fi Aware specifications version 4. |
InitiateBootstrappingRequest(PeerHandle, AwarePairingBootstrappingMethods)
Defined as per Wi-Fi Aware specifications version 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
Parameters
- peerHandle
- PeerHandle
The peer's handle for the pairing request. Must be a result of an
DiscoverySessionCallback#onServiceDiscovered(ServiceDiscoveryInfo) or
DiscoverySessionCallback#onMessageReceived(PeerHandle, byte[]) events.
one of the AwarePairingConfig#PAIRING_BOOTSTRAPPING_ values, should match one
of the methods received from ServiceDiscoveryInfo#getPairingConfig()AwarePairingConfig#getBootstrappingMethods()
- Attributes
Remarks
Initiate a Wi-Fi Aware bootstrapping setup request to create a pairing with the target peer. The Aware bootstrapping request should be done in the context of a discovery session - after a publish/subscribe DiscoverySessionCallback#onServiceDiscovered(ServiceDiscoveryInfo) event is received. The peer will check if the method can be fulfilled by AwarePairingConfig.Builder#setBootstrappingMethods(int) When the Aware Bootstrapping setup finished, both side will receive DiscoverySessionCallback#onBootstrappingSucceeded(PeerHandle, int)
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.
Applies to
InitiateBootstrappingRequest(PeerHandle, AwarePairingBootstrappingMethods, Byte[])
Defined as per Wi-Fi Aware specifications version 4.
[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
Parameters
- peerHandle
- PeerHandle
The peer's handle for the pairing request. Must be a result of an
DiscoverySessionCallback#onServiceDiscovered(ServiceDiscoveryInfo) or
DiscoverySessionCallback#onMessageReceived(PeerHandle, byte[]) events.
one of the AwarePairingConfig#PAIRING_BOOTSTRAPPING_ values, should match one
of the methods received from ServiceDiscoveryInfo#getPairingConfig()AwarePairingConfig#getBootstrappingMethods()
- message
- Byte[]
An arbitrary byte array which can be sent as service info in Service
Descriptor Extension attribute (SDEA) - see Wi-Fi Aware specification 9.5.4.2
for more details. Recommnaded to use
WifiAwareManager#createTxtRecordTlvBuffer(Map) to create key-value
message in DNS-SD format.
- Attributes
Remarks
Defined as per Wi-Fi Aware specifications version 4.0 Section 7.6.4.1. Initiate a Wi-Fi Aware bootstrapping setup request to create a pairing with the target peer. The Aware bootstrapping request should be done in the context of a discovery session - after a publish/subscribe DiscoverySessionCallback.onServiceDiscovered(ServiceDiscoveryInfo) event is received. The peer will check if the method can be fulfilled by AwarePairingConfig.Builder.setBootstrappingMethods(int) When the Aware Bootstrapping setup finished, both side will receive DiscoverySessionCallback.onBootstrappingSucceeded(PeerHandle,int)
Android reference for android.net.wifi.aware.DiscoverySession.initiateBootstrappingRequest.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.