# Class WifiDirectPlatform

java.lang.Object
com.codename1.io.wifi.WifiDirectPlatform

public class WifiDirectPlatform extends java.lang.Object

Platform-supplied implementation of the WiFi-Direct API. Application code talks to the static facade in `WiFiDirect`; that facade fetches the active platform via `Display.getInstance().getWifiDirectPlatform()` and dispatches each call here.

This is part of the framework's service-provider interface and not intended for application use.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `WifiDirectPlatform()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `connect(WiFiDirectPeer peer, WiFiConnectCallback callback)`
  `void`
  `disconnect()`
  `boolean`
  `isSupported()`
  `void`
  `startDiscovery(WiFiDirectListener listener)`
  `void`
  `stopDiscovery()`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### WifiDirectPlatform

    public WifiDirectPlatform()

- ## Method Details

  - ### isSupported

    public boolean isSupported()

  - ### startDiscovery

    public void startDiscovery(WiFiDirectListener listener)

  - ### stopDiscovery

    public void stopDiscovery()

  - ### connect

    public void connect(WiFiDirectPeer peer, WiFiConnectCallback callback)

  - ### disconnect

    public void disconnect()