ReadonlyenabledWhether P2P is currently enabled.
Optional ReadonlygroupThe current group owner information, if any.
Event handler for when P2P is disabled.
Event handler for when P2P is enabled.
Event handler for peer list updates.
Event handler for status changes.
The addEventListener() method of the EventTarget interface sets up a function that will be called whenever the specified event is delivered to the target.
Optionaloptions: boolean | AddEventListenerOptionsConnects to a P2P peer.
The MAC address of the peer.
The WPS method to use.
OptionalgoIntent: numberThe group owner intent value (0-15).
Disconnects from a P2P peer.
The MAC address of the peer.
The dispatchEvent() method of the EventTarget sends an Event to the object, (synchronously) invoking the affected event listeners in the appropriate order.
Retrieves the list of discovered peers.
The removeEventListener() method of the EventTarget interface removes an event listener previously registered with EventTarget.addEventListener() from the target.
Optionaloptions: boolean | EventListenerOptionsSets the device name for P2P discovery.
The new device name.
Confirms or rejects a pairing request.
True to accept, false to reject.
Optionalpin: stringThe PIN code if required.
Enables or disables scanning for P2P peers.
True to enable, false to disable.
Manages Wi-Fi Direct (P2P) connections. Available only if "Navigator::HasWifiManagerSupport" is true.