[]Struct jni_android_sys::android::telephony::SubscriptionManager

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

public class SubscriptionManager

Required feature: "android-telephony-SubscriptionManager"

Methods

impl SubscriptionManager

pub fn from<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env Context>>
) -> Result<Option<Local<'env, SubscriptionManager>>, Local<'env, Throwable>>
[src]

Deprecated

from

Required features: "android-content-Context", "android-telephony-SubscriptionManager"

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

addOnSubscriptionsChangedListener

Required features: "android-telephony-SubscriptionManager_OnSubscriptionsChangedListener"

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

removeOnSubscriptionsChangedListener

Required features: "android-telephony-SubscriptionManager_OnSubscriptionsChangedListener"

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

getActiveSubscriptionInfo

Required features: "android-telephony-SubscriptionInfo"

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

getActiveSubscriptionInfoForSimSlotIndex

Required features: "android-telephony-SubscriptionInfo"

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

getActiveSubscriptionInfoList

Required features: "java-util-List"

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

getAccessibleSubscriptionInfoList

Required features: "java-util-List"

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

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

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

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

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

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

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

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

getSubscriptionPlans

Required features: "java-util-List"

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

setSubscriptionPlans

Required features: "java-util-List"

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

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

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

canManageSubscription

Required features: "android-telephony-SubscriptionInfo"

pub const ACTION_DEFAULT_SMS_SUBSCRIPTION_CHANGED: &'static str[src]

pub const ACTION_DEFAULT_SUBSCRIPTION_CHANGED: &'static str[src]

pub const ACTION_MANAGE_SUBSCRIPTION_PLANS: &'static str[src]

pub const ACTION_REFRESH_SUBSCRIPTION_PLANS: &'static str[src]

pub const DATA_ROAMING_DISABLE: i32[src]

public static final DATA_ROAMING_DISABLE

pub const DATA_ROAMING_ENABLE: i32[src]

public static final DATA_ROAMING_ENABLE

pub const EXTRA_SUBSCRIPTION_INDEX: &'static str[src]

public static final EXTRA_SUBSCRIPTION_INDEX

pub const INVALID_SUBSCRIPTION_ID: i32[src]

public static final INVALID_SUBSCRIPTION_ID

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 SubscriptionManager

impl AsValidJObjectAndEnv for SubscriptionManager

impl Deref for SubscriptionManager

type Target = Object

The resulting type after dereferencing.

impl JniType for SubscriptionManager

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.