[−]Struct jni_android_sys::android::telephony::PhoneStateListener
public class PhoneStateListener
Required feature: "android-telephony-PhoneStateListener"
Methods
impl PhoneStateListener
pub fn new<'env>(
__jni_env: &'env Env
) -> Result<Local<'env, PhoneStateListener>, Local<'env, Throwable>>
[src]
__jni_env: &'env Env
) -> Result<Local<'env, PhoneStateListener>, Local<'env, Throwable>>
pub fn onServiceStateChanged<'env>(
&'env self,
arg0: impl Into<Option<&'env ServiceState>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env ServiceState>>
) -> Result<(), Local<'env, Throwable>>
Required features: "android-telephony-ServiceState"
pub fn onSignalStrengthChanged<'env>(
&'env self,
arg0: i32
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: i32
) -> Result<(), Local<'env, Throwable>>
pub fn onMessageWaitingIndicatorChanged<'env>(
&'env self,
arg0: bool
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: bool
) -> Result<(), Local<'env, Throwable>>
pub fn onCallForwardingIndicatorChanged<'env>(
&'env self,
arg0: bool
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: bool
) -> Result<(), Local<'env, Throwable>>
pub fn onCellLocationChanged<'env>(
&'env self,
arg0: impl Into<Option<&'env CellLocation>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env CellLocation>>
) -> Result<(), Local<'env, Throwable>>
Required features: "android-telephony-CellLocation"
pub fn onCallStateChanged<'env>(
&'env self,
arg0: i32,
arg1: impl Into<Option<&'env String>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: i32,
arg1: impl Into<Option<&'env String>>
) -> Result<(), Local<'env, Throwable>>
Required features: "java-lang-String"
pub fn onDataConnectionStateChanged_int<'env>(
&'env self,
arg0: i32
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: i32
) -> Result<(), Local<'env, Throwable>>
pub fn onDataConnectionStateChanged_int_int<'env>(
&'env self,
arg0: i32,
arg1: i32
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: i32,
arg1: i32
) -> Result<(), Local<'env, Throwable>>
pub fn onDataActivity<'env>(
&'env self,
arg0: i32
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: i32
) -> Result<(), Local<'env, Throwable>>
pub fn onSignalStrengthsChanged<'env>(
&'env self,
arg0: impl Into<Option<&'env SignalStrength>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env SignalStrength>>
) -> Result<(), Local<'env, Throwable>>
Required features: "android-telephony-SignalStrength"
pub fn onCellInfoChanged<'env>(
&'env self,
arg0: impl Into<Option<&'env List>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env List>>
) -> Result<(), Local<'env, Throwable>>
Required features: "java-util-List"
pub fn onUserMobileDataStateChanged<'env>(
&'env self,
arg0: bool
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: bool
) -> Result<(), Local<'env, Throwable>>
pub const LISTEN_CALL_FORWARDING_INDICATOR: i32
[src]
public static final LISTEN_CALL_FORWARDING_INDICATOR
pub const LISTEN_CALL_STATE: i32
[src]
public static final LISTEN_CALL_STATE
pub const LISTEN_CELL_INFO: i32
[src]
public static final LISTEN_CELL_INFO
pub const LISTEN_CELL_LOCATION: i32
[src]
public static final LISTEN_CELL_LOCATION
pub const LISTEN_DATA_ACTIVITY: i32
[src]
public static final LISTEN_DATA_ACTIVITY
pub const LISTEN_DATA_CONNECTION_STATE: i32
[src]
public static final LISTEN_DATA_CONNECTION_STATE
pub const LISTEN_MESSAGE_WAITING_INDICATOR: i32
[src]
public static final LISTEN_MESSAGE_WAITING_INDICATOR
pub const LISTEN_NONE: i32
[src]
public static final LISTEN_NONE
pub const LISTEN_SERVICE_STATE: i32
[src]
public static final LISTEN_SERVICE_STATE
pub const LISTEN_SIGNAL_STRENGTH: i32
[src]
public static final LISTEN_SIGNAL_STRENGTH
pub const LISTEN_SIGNAL_STRENGTHS: i32
[src]
public static final LISTEN_SIGNAL_STRENGTHS
pub const LISTEN_USER_MOBILE_DATA_STATE: i32
[src]
public static final LISTEN_USER_MOBILE_DATA_STATE
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 PhoneStateListener
impl AsValidJObjectAndEnv for PhoneStateListener
impl Deref for PhoneStateListener
impl JniType for PhoneStateListener
fn static_with_jni_type<R>(callback: impl FnOnce(&str) -> R) -> R
Auto Trait Implementations
impl RefUnwindSafe for PhoneStateListener
impl !Send for PhoneStateListener
impl !Sync for PhoneStateListener
impl Unpin for PhoneStateListener
impl UnwindSafe for PhoneStateListener
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>,