[]Struct jni_android_sys::android::net::wifi::p2p::WifiP2pManager

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

public class WifiP2pManager

Required feature: "android-net-wifi-p2p-WifiP2pManager"

Methods

impl WifiP2pManager

pub fn initialize<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Context>>,
    arg1: impl Into<Option<&'env Looper>>,
    arg2: impl Into<Option<&'env WifiP2pManager_ChannelListener>>
) -> Result<Option<Local<'env, WifiP2pManager_Channel>>, Local<'env, Throwable>>
[src]

initialize

Required features: "android-content-Context", "android-net-wifi-p2p-WifiP2pManager_Channel", "android-net-wifi-p2p-WifiP2pManager_ChannelListener", "android-os-Looper"

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

discoverPeers

Required features: "android-net-wifi-p2p-WifiP2pManager_ActionListener", "android-net-wifi-p2p-WifiP2pManager_Channel"

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

stopPeerDiscovery

Required features: "android-net-wifi-p2p-WifiP2pManager_ActionListener", "android-net-wifi-p2p-WifiP2pManager_Channel"

pub fn connect<'env>(
    &'env self,
    arg0: impl Into<Option<&'env WifiP2pManager_Channel>>,
    arg1: impl Into<Option<&'env WifiP2pConfig>>,
    arg2: impl Into<Option<&'env WifiP2pManager_ActionListener>>
) -> Result<(), Local<'env, Throwable>>
[src]

connect

Required features: "android-net-wifi-p2p-WifiP2pConfig", "android-net-wifi-p2p-WifiP2pManager_ActionListener", "android-net-wifi-p2p-WifiP2pManager_Channel"

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

cancelConnect

Required features: "android-net-wifi-p2p-WifiP2pManager_ActionListener", "android-net-wifi-p2p-WifiP2pManager_Channel"

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

createGroup

Required features: "android-net-wifi-p2p-WifiP2pManager_ActionListener", "android-net-wifi-p2p-WifiP2pManager_Channel"

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

removeGroup

Required features: "android-net-wifi-p2p-WifiP2pManager_ActionListener", "android-net-wifi-p2p-WifiP2pManager_Channel"

pub fn addLocalService<'env>(
    &'env self,
    arg0: impl Into<Option<&'env WifiP2pManager_Channel>>,
    arg1: impl Into<Option<&'env WifiP2pServiceInfo>>,
    arg2: impl Into<Option<&'env WifiP2pManager_ActionListener>>
) -> Result<(), Local<'env, Throwable>>
[src]

addLocalService

Required features: "android-net-wifi-p2p-WifiP2pManager_ActionListener", "android-net-wifi-p2p-WifiP2pManager_Channel", "android-net-wifi-p2p-nsd-WifiP2pServiceInfo"

pub fn removeLocalService<'env>(
    &'env self,
    arg0: impl Into<Option<&'env WifiP2pManager_Channel>>,
    arg1: impl Into<Option<&'env WifiP2pServiceInfo>>,
    arg2: impl Into<Option<&'env WifiP2pManager_ActionListener>>
) -> Result<(), Local<'env, Throwable>>
[src]

removeLocalService

Required features: "android-net-wifi-p2p-WifiP2pManager_ActionListener", "android-net-wifi-p2p-WifiP2pManager_Channel", "android-net-wifi-p2p-nsd-WifiP2pServiceInfo"

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

clearLocalServices

Required features: "android-net-wifi-p2p-WifiP2pManager_ActionListener", "android-net-wifi-p2p-WifiP2pManager_Channel"

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

setServiceResponseListener

Required features: "android-net-wifi-p2p-WifiP2pManager_Channel", "android-net-wifi-p2p-WifiP2pManager_ServiceResponseListener"

pub fn setDnsSdResponseListeners<'env>(
    &'env self,
    arg0: impl Into<Option<&'env WifiP2pManager_Channel>>,
    arg1: impl Into<Option<&'env WifiP2pManager_DnsSdServiceResponseListener>>,
    arg2: impl Into<Option<&'env WifiP2pManager_DnsSdTxtRecordListener>>
) -> Result<(), Local<'env, Throwable>>
[src]

setDnsSdResponseListeners

Required features: "android-net-wifi-p2p-WifiP2pManager_Channel", "android-net-wifi-p2p-WifiP2pManager_DnsSdServiceResponseListener", "android-net-wifi-p2p-WifiP2pManager_DnsSdTxtRecordListener"

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

setUpnpServiceResponseListener

Required features: "android-net-wifi-p2p-WifiP2pManager_Channel", "android-net-wifi-p2p-WifiP2pManager_UpnpServiceResponseListener"

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

discoverServices

Required features: "android-net-wifi-p2p-WifiP2pManager_ActionListener", "android-net-wifi-p2p-WifiP2pManager_Channel"

pub fn addServiceRequest<'env>(
    &'env self,
    arg0: impl Into<Option<&'env WifiP2pManager_Channel>>,
    arg1: impl Into<Option<&'env WifiP2pServiceRequest>>,
    arg2: impl Into<Option<&'env WifiP2pManager_ActionListener>>
) -> Result<(), Local<'env, Throwable>>
[src]

addServiceRequest

Required features: "android-net-wifi-p2p-WifiP2pManager_ActionListener", "android-net-wifi-p2p-WifiP2pManager_Channel", "android-net-wifi-p2p-nsd-WifiP2pServiceRequest"

pub fn removeServiceRequest<'env>(
    &'env self,
    arg0: impl Into<Option<&'env WifiP2pManager_Channel>>,
    arg1: impl Into<Option<&'env WifiP2pServiceRequest>>,
    arg2: impl Into<Option<&'env WifiP2pManager_ActionListener>>
) -> Result<(), Local<'env, Throwable>>
[src]

removeServiceRequest

Required features: "android-net-wifi-p2p-WifiP2pManager_ActionListener", "android-net-wifi-p2p-WifiP2pManager_Channel", "android-net-wifi-p2p-nsd-WifiP2pServiceRequest"

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

clearServiceRequests

Required features: "android-net-wifi-p2p-WifiP2pManager_ActionListener", "android-net-wifi-p2p-WifiP2pManager_Channel"

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

requestPeers

Required features: "android-net-wifi-p2p-WifiP2pManager_Channel", "android-net-wifi-p2p-WifiP2pManager_PeerListListener"

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

requestConnectionInfo

Required features: "android-net-wifi-p2p-WifiP2pManager_Channel", "android-net-wifi-p2p-WifiP2pManager_ConnectionInfoListener"

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

requestGroupInfo

Required features: "android-net-wifi-p2p-WifiP2pManager_Channel", "android-net-wifi-p2p-WifiP2pManager_GroupInfoListener"

pub const BUSY: i32[src]

public static final BUSY

pub const ERROR: i32[src]

public static final ERROR

pub const EXTRA_DISCOVERY_STATE: &'static str[src]

public static final EXTRA_DISCOVERY_STATE

pub const EXTRA_NETWORK_INFO: &'static str[src]

public static final EXTRA_NETWORK_INFO

pub const EXTRA_P2P_DEVICE_LIST: &'static str[src]

public static final EXTRA_P2P_DEVICE_LIST

pub const EXTRA_WIFI_P2P_DEVICE: &'static str[src]

public static final EXTRA_WIFI_P2P_DEVICE

pub const EXTRA_WIFI_P2P_GROUP: &'static str[src]

public static final EXTRA_WIFI_P2P_GROUP

pub const EXTRA_WIFI_P2P_INFO: &'static str[src]

public static final EXTRA_WIFI_P2P_INFO

pub const EXTRA_WIFI_STATE: &'static str[src]

public static final EXTRA_WIFI_STATE

pub const NO_SERVICE_REQUESTS: i32[src]

public static final NO_SERVICE_REQUESTS

pub const P2P_UNSUPPORTED: i32[src]

public static final P2P_UNSUPPORTED

pub const WIFI_P2P_CONNECTION_CHANGED_ACTION: &'static str[src]

pub const WIFI_P2P_DISCOVERY_CHANGED_ACTION: &'static str[src]

pub const WIFI_P2P_DISCOVERY_STARTED: i32[src]

public static final WIFI_P2P_DISCOVERY_STARTED

pub const WIFI_P2P_DISCOVERY_STOPPED: i32[src]

public static final WIFI_P2P_DISCOVERY_STOPPED

pub const WIFI_P2P_PEERS_CHANGED_ACTION: &'static str[src]

public static final WIFI_P2P_PEERS_CHANGED_ACTION

pub const WIFI_P2P_STATE_CHANGED_ACTION: &'static str[src]

public static final WIFI_P2P_STATE_CHANGED_ACTION

pub const WIFI_P2P_STATE_DISABLED: i32[src]

public static final WIFI_P2P_STATE_DISABLED

pub const WIFI_P2P_STATE_ENABLED: i32[src]

public static final WIFI_P2P_STATE_ENABLED

pub const WIFI_P2P_THIS_DEVICE_CHANGED_ACTION: &'static str[src]

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 WifiP2pManager

impl AsValidJObjectAndEnv for WifiP2pManager

impl Deref for WifiP2pManager

type Target = Object

The resulting type after dereferencing.

impl JniType for WifiP2pManager

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.