Språk

InterfaceType Enum

Definition

Identifies station, hotspot, Wi-Fi Aware, and Wi-Fi Direct interfaces.

public enum InterfaceType
type InterfaceType = 
Inheritance
InterfaceType

Fields

Name Value Description
Sta 0

Wi-Fi interface of type STA (station/client Wi-Fi infrastructure device).

Android reference for android.net.wifi.WifiManager.WIFI_INTERFACE_TYPE_STA.

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.

Ap 1

Wi-Fi interface of type AP (access point Wi-Fi infrastructure device).

Android reference for android.net.wifi.WifiManager.WIFI_INTERFACE_TYPE_AP.

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.

Aware 2

Wi-Fi interface of type Wi-Fi Aware (aka NAN).

Android reference for android.net.wifi.WifiManager.WIFI_INTERFACE_TYPE_AWARE.

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.

Direct 3

Wi-Fi interface of type Wi-Fi Direct (aka P2P).

Android reference for android.net.wifi.WifiManager.WIFI_INTERFACE_TYPE_DIRECT.

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.

Remarks

These codes describe the interface reported by InterfaceType. Each code identifies one interface type.

Applies to