[−]Struct jni_android_sys::android::net::wifi::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]
&'env self
) -> Result<Option<Local<'env, List>>, Local<'env, Throwable>>
Required features: "java-util-List"
pub fn addNetwork<'env>(
&'env self,
arg0: impl Into<Option<&'env WifiConfiguration>>
) -> Result<i32, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env WifiConfiguration>>
) -> Result<i32, Local<'env, Throwable>>
Required features: "android-net-wifi-WifiConfiguration"
pub fn updateNetwork<'env>(
&'env self,
arg0: impl Into<Option<&'env WifiConfiguration>>
) -> Result<i32, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env WifiConfiguration>>
) -> Result<i32, Local<'env, Throwable>>
Required features: "android-net-wifi-WifiConfiguration"
pub fn addOrUpdatePasspointConfiguration<'env>(
&'env self,
arg0: impl Into<Option<&'env PasspointConfiguration>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env PasspointConfiguration>>
) -> Result<(), Local<'env, Throwable>>
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]
&'env self,
arg0: impl Into<Option<&'env String>>
) -> Result<(), Local<'env, Throwable>>
Required features: "java-lang-String"
pub fn getPasspointConfigurations<'env>(
&'env self
) -> Result<Option<Local<'env, List>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, List>>, Local<'env, Throwable>>
Required features: "java-util-List"
pub fn removeNetwork<'env>(
&'env self,
arg0: i32
) -> Result<bool, Local<'env, Throwable>>
[src]
&'env self,
arg0: i32
) -> Result<bool, Local<'env, Throwable>>
pub fn enableNetwork<'env>(
&'env self,
arg0: i32,
arg1: bool
) -> Result<bool, Local<'env, Throwable>>
[src]
&'env self,
arg0: i32,
arg1: bool
) -> Result<bool, Local<'env, Throwable>>
pub fn disableNetwork<'env>(
&'env self,
arg0: i32
) -> Result<bool, Local<'env, Throwable>>
[src]
&'env self,
arg0: i32
) -> Result<bool, Local<'env, Throwable>>
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]
pub fn is5GHzBandSupported<'env>(
&'env self
) -> Result<bool, Local<'env, Throwable>>
[src]
&'env self
) -> Result<bool, Local<'env, Throwable>>
pub fn isP2pSupported<'env>(&'env self) -> Result<bool, Local<'env, Throwable>>
[src]
pub fn isDeviceToApRttSupported<'env>(
&'env self
) -> Result<bool, Local<'env, Throwable>>
[src]
&'env self
) -> Result<bool, Local<'env, Throwable>>
pub fn isPreferredNetworkOffloadSupported<'env>(
&'env self
) -> Result<bool, Local<'env, Throwable>>
[src]
&'env self
) -> Result<bool, Local<'env, Throwable>>
pub fn isTdlsSupported<'env>(&'env self) -> Result<bool, Local<'env, Throwable>>
[src]
pub fn isEnhancedPowerReportingSupported<'env>(
&'env self
) -> Result<bool, Local<'env, Throwable>>
[src]
&'env self
) -> Result<bool, Local<'env, Throwable>>
pub fn startScan<'env>(&'env self) -> Result<bool, Local<'env, Throwable>>
[src]
pub fn getConnectionInfo<'env>(
&'env self
) -> Result<Option<Local<'env, WifiInfo>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, WifiInfo>>, Local<'env, Throwable>>
Required features: "android-net-wifi-WifiInfo"
pub fn getScanResults<'env>(
&'env self
) -> Result<Option<Local<'env, List>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, List>>, Local<'env, Throwable>>
Required features: "java-util-List"
pub fn isScanAlwaysAvailable<'env>(
&'env self
) -> Result<bool, Local<'env, Throwable>>
[src]
&'env self
) -> Result<bool, Local<'env, Throwable>>
pub fn saveConfiguration<'env>(
&'env self
) -> Result<bool, Local<'env, Throwable>>
[src]
&'env self
) -> Result<bool, Local<'env, Throwable>>
pub fn getDhcpInfo<'env>(
&'env self
) -> Result<Option<Local<'env, DhcpInfo>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, DhcpInfo>>, Local<'env, Throwable>>
Required features: "android-net-DhcpInfo"
pub fn setWifiEnabled<'env>(
&'env self,
arg0: bool
) -> Result<bool, Local<'env, Throwable>>
[src]
&'env self,
arg0: bool
) -> Result<bool, Local<'env, Throwable>>
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]
__jni_env: &'env Env,
arg0: i32,
arg1: i32
) -> Result<i32, Local<'env, Throwable>>
pub fn compareSignalLevel<'env>(
__jni_env: &'env Env,
arg0: i32,
arg1: i32
) -> Result<i32, Local<'env, Throwable>>
[src]
__jni_env: &'env Env,
arg0: i32,
arg1: i32
) -> Result<i32, Local<'env, Throwable>>
pub fn startLocalOnlyHotspot<'env>(
&'env self,
arg0: impl Into<Option<&'env WifiManager_LocalOnlyHotspotCallback>>,
arg1: impl Into<Option<&'env Handler>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env WifiManager_LocalOnlyHotspotCallback>>,
arg1: impl Into<Option<&'env Handler>>
) -> Result<(), Local<'env, Throwable>>
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]
&'env self,
arg0: impl Into<Option<&'env InetAddress>>,
arg1: bool
) -> Result<(), Local<'env, Throwable>>
Required features: "java-net-InetAddress"
pub fn setTdlsEnabledWithMacAddress<'env>(
&'env self,
arg0: impl Into<Option<&'env String>>,
arg1: bool
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env String>>,
arg1: bool
) -> Result<(), Local<'env, Throwable>>
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]
&'env self,
arg0: impl Into<Option<&'env WpsInfo>>,
arg1: impl Into<Option<&'env WifiManager_WpsCallback>>
) -> Result<(), Local<'env, Throwable>>
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]
&'env self,
arg0: impl Into<Option<&'env WifiManager_WpsCallback>>
) -> Result<(), Local<'env, Throwable>>
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]
&'env self,
arg0: i32,
arg1: impl Into<Option<&'env String>>
) -> Result<Option<Local<'env, WifiManager_WifiLock>>, Local<'env, Throwable>>
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]
&'env self,
arg0: impl Into<Option<&'env String>>
) -> Result<Option<Local<'env, WifiManager_WifiLock>>, Local<'env, Throwable>>
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]
&'env self,
arg0: impl Into<Option<&'env String>>
) -> Result<Option<Local<'env, WifiManager_MulticastLock>>, Local<'env, Throwable>>
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]
public static final ACTION_REQUEST_SCAN_ALWAYS_AVAILABLE
pub const ERROR_AUTHENTICATING: i32
[src]
public static final ERROR_AUTHENTICATING
pub const EXTRA_BSSID: &'static str
[src]
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]
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]
public static final EXTRA_SUPPLICANT_CONNECTED
pub const EXTRA_SUPPLICANT_ERROR: &'static str
[src]
public static final EXTRA_SUPPLICANT_ERROR
pub const EXTRA_WIFI_INFO: &'static str
[src]
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]
public static final SUPPLICANT_CONNECTION_CHANGE_ACTION
pub const SUPPLICANT_STATE_CHANGED_ACTION: &'static str
[src]
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]
public static final WPS_AUTH_FAILURE
pub const WPS_OVERLAP_ERROR: i32
[src]
public static final WPS_OVERLAP_ERROR
pub const WPS_TIMED_OUT: i32
[src]
public static final WPS_TIMED_OUT
pub const WPS_TKIP_ONLY_PROHIBITED: i32
[src]
public static final WPS_TKIP_ONLY_PROHIBITED
pub const WPS_WEP_PROHIBITED: i32
[src]
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]
&'env self
) -> Result<Option<Local<'env, Class>>, Local<'env, Throwable>>
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]
&'env self,
arg0: impl Into<Option<&'env Object>>
) -> Result<bool, Local<'env, Throwable>>
Required features: "java-lang-Object"
pub fn toString<'env>(
&'env self
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
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]
&'env self,
arg0: i64
) -> Result<(), Local<'env, Throwable>>
pub fn wait_long_int<'env>(
&'env self,
arg0: i64,
arg1: i32
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: i64,
arg1: i32
) -> Result<(), Local<'env, Throwable>>
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
impl JniType for WifiManager
fn static_with_jni_type<R>(callback: impl FnOnce(&str) -> R) -> R
Auto Trait Implementations
impl RefUnwindSafe for WifiManager
impl !Send for WifiManager
impl !Sync for WifiManager
impl Unpin for WifiManager
impl UnwindSafe for WifiManager
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,