[]Struct jni_android_sys::android::net::wifi::WifiManager

#[repr(transparent)]
pub struct WifiManager(_);

public class WifiManager

Required feature: "android-net-wifi-WifiManager"

Methods

impl WifiManager

pub fn getConfiguredNetworks<'env>(
    &'env self
) -> Result<Option<Local<'env, List>>, Local<'env, Throwable>>
[src]

getConfiguredNetworks

Required features: "java-util-List"

pub fn addNetwork<'env>(
    &'env self,
    arg0: impl Into<Option<&'env WifiConfiguration>>
) -> Result<i32, Local<'env, Throwable>>
[src]

addNetwork

Required features: "android-net-wifi-WifiConfiguration"

pub fn updateNetwork<'env>(
    &'env self,
    arg0: impl Into<Option<&'env WifiConfiguration>>
) -> Result<i32, Local<'env, Throwable>>
[src]

updateNetwork

Required features: "android-net-wifi-WifiConfiguration"

pub fn addOrUpdatePasspointConfiguration<'env>(
    &'env self,
    arg0: impl Into<Option<&'env PasspointConfiguration>>
) -> Result<(), Local<'env, Throwable>>
[src]

addOrUpdatePasspointConfiguration

Required features: "android-net-wifi-hotspot2-PasspointConfiguration"

pub fn removePasspointConfiguration<'env>(
    &'env self,
    arg0: impl Into<Option<&'env String>>
) -> Result<(), Local<'env, Throwable>>
[src]

removePasspointConfiguration

Required features: "java-lang-String"

pub fn getPasspointConfigurations<'env>(
    &'env self
) -> Result<Option<Local<'env, List>>, Local<'env, Throwable>>
[src]

getPasspointConfigurations

Required features: "java-util-List"

pub fn removeNetwork<'env>(
    &'env self,
    arg0: i32
) -> Result<bool, Local<'env, Throwable>>
[src]

pub fn enableNetwork<'env>(
    &'env self,
    arg0: i32,
    arg1: bool
) -> Result<bool, Local<'env, Throwable>>
[src]

pub fn disableNetwork<'env>(
    &'env self,
    arg0: i32
) -> Result<bool, Local<'env, Throwable>>
[src]

pub fn disconnect<'env>(&'env self) -> Result<bool, Local<'env, Throwable>>[src]

pub fn reconnect<'env>(&'env self) -> Result<bool, Local<'env, Throwable>>[src]

pub fn reassociate<'env>(&'env self) -> Result<bool, Local<'env, Throwable>>[src]

pub fn pingSupplicant<'env>(&'env self) -> Result<bool, Local<'env, Throwable>>[src]

Deprecated

pub fn is5GHzBandSupported<'env>(
    &'env self
) -> Result<bool, Local<'env, Throwable>>
[src]

pub fn isP2pSupported<'env>(&'env self) -> Result<bool, Local<'env, Throwable>>[src]

pub fn isDeviceToApRttSupported<'env>(
    &'env self
) -> Result<bool, Local<'env, Throwable>>
[src]

pub fn isPreferredNetworkOffloadSupported<'env>(
    &'env self
) -> Result<bool, Local<'env, Throwable>>
[src]

pub fn isTdlsSupported<'env>(&'env self) -> Result<bool, Local<'env, Throwable>>[src]

pub fn isEnhancedPowerReportingSupported<'env>(
    &'env self
) -> Result<bool, Local<'env, Throwable>>
[src]

pub fn startScan<'env>(&'env self) -> Result<bool, Local<'env, Throwable>>[src]

Deprecated

pub fn getConnectionInfo<'env>(
    &'env self
) -> Result<Option<Local<'env, WifiInfo>>, Local<'env, Throwable>>
[src]

getConnectionInfo

Required features: "android-net-wifi-WifiInfo"

pub fn getScanResults<'env>(
    &'env self
) -> Result<Option<Local<'env, List>>, Local<'env, Throwable>>
[src]

getScanResults

Required features: "java-util-List"

pub fn isScanAlwaysAvailable<'env>(
    &'env self
) -> Result<bool, Local<'env, Throwable>>
[src]

pub fn saveConfiguration<'env>(
    &'env self
) -> Result<bool, Local<'env, Throwable>>
[src]

Deprecated

pub fn getDhcpInfo<'env>(
    &'env self
) -> Result<Option<Local<'env, DhcpInfo>>, Local<'env, Throwable>>
[src]

getDhcpInfo

Required features: "android-net-DhcpInfo"

pub fn setWifiEnabled<'env>(
    &'env self,
    arg0: bool
) -> Result<bool, Local<'env, Throwable>>
[src]

pub fn getWifiState<'env>(&'env self) -> Result<i32, Local<'env, Throwable>>[src]

pub fn isWifiEnabled<'env>(&'env self) -> Result<bool, Local<'env, Throwable>>[src]

pub fn calculateSignalLevel<'env>(
    __jni_env: &'env Env,
    arg0: i32,
    arg1: i32
) -> Result<i32, Local<'env, Throwable>>
[src]

pub fn compareSignalLevel<'env>(
    __jni_env: &'env Env,
    arg0: i32,
    arg1: i32
) -> Result<i32, Local<'env, Throwable>>
[src]

pub fn startLocalOnlyHotspot<'env>(
    &'env self,
    arg0: impl Into<Option<&'env WifiManager_LocalOnlyHotspotCallback>>,
    arg1: impl Into<Option<&'env Handler>>
) -> Result<(), Local<'env, Throwable>>
[src]

startLocalOnlyHotspot

Required features: "android-net-wifi-WifiManager_LocalOnlyHotspotCallback", "android-os-Handler"

pub fn setTdlsEnabled<'env>(
    &'env self,
    arg0: impl Into<Option<&'env InetAddress>>,
    arg1: bool
) -> Result<(), Local<'env, Throwable>>
[src]

setTdlsEnabled

Required features: "java-net-InetAddress"

pub fn setTdlsEnabledWithMacAddress<'env>(
    &'env self,
    arg0: impl Into<Option<&'env String>>,
    arg1: bool
) -> Result<(), Local<'env, Throwable>>
[src]

setTdlsEnabledWithMacAddress

Required features: "java-lang-String"

pub fn startWps<'env>(
    &'env self,
    arg0: impl Into<Option<&'env WpsInfo>>,
    arg1: impl Into<Option<&'env WifiManager_WpsCallback>>
) -> Result<(), Local<'env, Throwable>>
[src]

Deprecated

startWps

Required features: "android-net-wifi-WifiManager_WpsCallback", "android-net-wifi-WpsInfo"

pub fn cancelWps<'env>(
    &'env self,
    arg0: impl Into<Option<&'env WifiManager_WpsCallback>>
) -> Result<(), Local<'env, Throwable>>
[src]

Deprecated

cancelWps

Required features: "android-net-wifi-WifiManager_WpsCallback"

pub fn createWifiLock_int_String<'env>(
    &'env self,
    arg0: i32,
    arg1: impl Into<Option<&'env String>>
) -> Result<Option<Local<'env, WifiManager_WifiLock>>, Local<'env, Throwable>>
[src]

createWifiLock

Required features: "android-net-wifi-WifiManager_WifiLock", "java-lang-String"

pub fn createWifiLock_String<'env>(
    &'env self,
    arg0: impl Into<Option<&'env String>>
) -> Result<Option<Local<'env, WifiManager_WifiLock>>, Local<'env, Throwable>>
[src]

createWifiLock

Required features: "android-net-wifi-WifiManager_WifiLock", "java-lang-String"

pub fn createMulticastLock<'env>(
    &'env self,
    arg0: impl Into<Option<&'env String>>
) -> Result<Option<Local<'env, WifiManager_MulticastLock>>, Local<'env, Throwable>>
[src]

createMulticastLock

Required features: "android-net-wifi-WifiManager_MulticastLock", "java-lang-String"

pub const ACTION_PICK_WIFI_NETWORK: &'static str[src]

public static final ACTION_PICK_WIFI_NETWORK

pub const ACTION_REQUEST_SCAN_ALWAYS_AVAILABLE: &'static str[src]

pub const ERROR_AUTHENTICATING: i32[src]

Deprecated

public static final ERROR_AUTHENTICATING

pub const EXTRA_BSSID: &'static str[src]

Deprecated

public static final EXTRA_BSSID

pub const EXTRA_NETWORK_INFO: &'static str[src]

public static final EXTRA_NETWORK_INFO

pub const EXTRA_NEW_RSSI: &'static str[src]

public static final EXTRA_NEW_RSSI

pub const EXTRA_NEW_STATE: &'static str[src]

Deprecated

public static final EXTRA_NEW_STATE

pub const EXTRA_PREVIOUS_WIFI_STATE: &'static str[src]

public static final EXTRA_PREVIOUS_WIFI_STATE

pub const EXTRA_RESULTS_UPDATED: &'static str[src]

public static final EXTRA_RESULTS_UPDATED

pub const EXTRA_SUPPLICANT_CONNECTED: &'static str[src]

Deprecated

public static final EXTRA_SUPPLICANT_CONNECTED

pub const EXTRA_SUPPLICANT_ERROR: &'static str[src]

Deprecated

public static final EXTRA_SUPPLICANT_ERROR

pub const EXTRA_WIFI_INFO: &'static str[src]

Deprecated

public static final EXTRA_WIFI_INFO

pub const EXTRA_WIFI_STATE: &'static str[src]

public static final EXTRA_WIFI_STATE

pub const NETWORK_IDS_CHANGED_ACTION: &'static str[src]

public static final NETWORK_IDS_CHANGED_ACTION

pub const NETWORK_STATE_CHANGED_ACTION: &'static str[src]

public static final NETWORK_STATE_CHANGED_ACTION

pub const RSSI_CHANGED_ACTION: &'static str[src]

public static final RSSI_CHANGED_ACTION

pub const SCAN_RESULTS_AVAILABLE_ACTION: &'static str[src]

public static final SCAN_RESULTS_AVAILABLE_ACTION

pub const SUPPLICANT_CONNECTION_CHANGE_ACTION: &'static str[src]

Deprecated

pub const SUPPLICANT_STATE_CHANGED_ACTION: &'static str[src]

Deprecated

public static final SUPPLICANT_STATE_CHANGED_ACTION

pub const WIFI_MODE_FULL: i32[src]

public static final WIFI_MODE_FULL

pub const WIFI_MODE_FULL_HIGH_PERF: i32[src]

public static final WIFI_MODE_FULL_HIGH_PERF

pub const WIFI_MODE_SCAN_ONLY: i32[src]

public static final WIFI_MODE_SCAN_ONLY

pub const WIFI_STATE_CHANGED_ACTION: &'static str[src]

public static final WIFI_STATE_CHANGED_ACTION

pub const WIFI_STATE_DISABLED: i32[src]

public static final WIFI_STATE_DISABLED

pub const WIFI_STATE_DISABLING: i32[src]

public static final WIFI_STATE_DISABLING

pub const WIFI_STATE_ENABLED: i32[src]

public static final WIFI_STATE_ENABLED

pub const WIFI_STATE_ENABLING: i32[src]

public static final WIFI_STATE_ENABLING

pub const WIFI_STATE_UNKNOWN: i32[src]

public static final WIFI_STATE_UNKNOWN

pub const WPS_AUTH_FAILURE: i32[src]

Deprecated

public static final WPS_AUTH_FAILURE

pub const WPS_OVERLAP_ERROR: i32[src]

Deprecated

public static final WPS_OVERLAP_ERROR

pub const WPS_TIMED_OUT: i32[src]

Deprecated

public static final WPS_TIMED_OUT

pub const WPS_TKIP_ONLY_PROHIBITED: i32[src]

Deprecated

public static final WPS_TKIP_ONLY_PROHIBITED

pub const WPS_WEP_PROHIBITED: i32[src]

Deprecated

public static final WPS_WEP_PROHIBITED

Methods from Deref<Target = Object>

pub fn getClass<'env>(
    &'env self
) -> Result<Option<Local<'env, Class>>, Local<'env, Throwable>>
[src]

getClass

Required features: "java-lang-Class"

pub fn hashCode<'env>(&'env self) -> Result<i32, Local<'env, Throwable>>[src]

pub fn equals<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Object>>
) -> Result<bool, Local<'env, Throwable>>
[src]

equals

Required features: "java-lang-Object"

pub fn toString<'env>(
    &'env self
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
[src]

toString

Required features: "java-lang-String"

pub fn notify<'env>(&'env self) -> Result<(), Local<'env, Throwable>>[src]

pub fn notifyAll<'env>(&'env self) -> Result<(), Local<'env, Throwable>>[src]

pub fn wait_long<'env>(
    &'env self,
    arg0: i64
) -> Result<(), Local<'env, Throwable>>
[src]

pub fn wait_long_int<'env>(
    &'env self,
    arg0: i64,
    arg1: i32
) -> Result<(), Local<'env, Throwable>>
[src]

pub fn wait<'env>(&'env self) -> Result<(), Local<'env, Throwable>>[src]

Trait Implementations

impl AsJValue for WifiManager

impl AsValidJObjectAndEnv for WifiManager

impl Deref for WifiManager

type Target = Object

The resulting type after dereferencing.

impl JniType for WifiManager

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.