Class WifiPlatform

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

public class WifiPlatform extends 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 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)