# Class WifiPlatform

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

public class WifiPlatform extends java.lang.Object

Platform-supplied implementation of the WiFi APIs.

Application code talks to the static facade in `WiFi`; that facade fetches the active platform via `Display.getInstance().getWifiPlatform()` and dispatches each call here. Codename One platform ports (Android / iOS / JavaSE / future) supply a subclass; the no-op default returned by `CodenameOneImplementation` keeps stub builds compiling.

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

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `WifiPlatform()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `connect(String ssid, String password, WiFiSecurity security, WiFiConnectCallback callback)`
  `void`
  `disconnect(String ssid)`
  `String`
  `getBSSID()`
  `String`
  `getCurrentSSID()`
  `String`
  `getGateway()`
  `String`
  `getIp()`
  `boolean`
  `isInfoSupported()`
  `boolean`
  `isManagementSupported()`
  `void`
  `scan(WiFiScanCallback callback)`

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

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

- ## Constructor Details

  - ### WifiPlatform

    public WifiPlatform()

- ## Method Details

  - ### isInfoSupported

    public boolean isInfoSupported()

  - ### isManagementSupported

    public boolean isManagementSupported()

  - ### getCurrentSSID

    public String getCurrentSSID()

  - ### getBSSID

    public String getBSSID()

  - ### getGateway

    public String getGateway()

  - ### getIp

    public String getIp()

  - ### scan

    public void scan(WiFiScanCallback callback)

  - ### connect

    public void connect(String ssid, String password, WiFiSecurity security, WiFiConnectCallback callback)

  - ### disconnect

    public void disconnect(String ssid)