[]Struct jni_android_sys::android::telephony::PhoneStateListener

#[repr(transparent)]
pub struct 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]

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

onServiceStateChanged

Required features: "android-telephony-ServiceState"

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

Deprecated

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

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

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

onCellLocationChanged

Required features: "android-telephony-CellLocation"

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

onCallStateChanged

Required features: "java-lang-String"

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

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

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

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

onSignalStrengthsChanged

Required features: "android-telephony-SignalStrength"

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

onCellInfoChanged

Required features: "java-util-List"

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

pub const LISTEN_CALL_FORWARDING_INDICATOR: i32[src]

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]

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]

Deprecated

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]

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 PhoneStateListener

impl AsValidJObjectAndEnv for PhoneStateListener

impl Deref for PhoneStateListener

type Target = Object

The resulting type after dereferencing.

impl JniType for PhoneStateListener

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.