[−]Struct jni_android_sys::android::telephony::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]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env Context>>
) -> Result<Option<Local<'env, SubscriptionManager>>, Local<'env, Throwable>>
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]
&'env self,
arg0: impl Into<Option<&'env SubscriptionManager_OnSubscriptionsChangedListener>>
) -> Result<(), Local<'env, Throwable>>
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]
&'env self,
arg0: impl Into<Option<&'env SubscriptionManager_OnSubscriptionsChangedListener>>
) -> Result<(), Local<'env, Throwable>>
removeOnSubscriptionsChangedListener
Required features: "android-telephony-SubscriptionManager_OnSubscriptionsChangedListener"
pub fn getActiveSubscriptionInfo<'env>(
&'env self,
arg0: i32
) -> Result<Option<Local<'env, SubscriptionInfo>>, Local<'env, Throwable>>
[src]
&'env self,
arg0: i32
) -> Result<Option<Local<'env, SubscriptionInfo>>, Local<'env, Throwable>>
Required features: "android-telephony-SubscriptionInfo"
pub fn getActiveSubscriptionInfoForSimSlotIndex<'env>(
&'env self,
arg0: i32
) -> Result<Option<Local<'env, SubscriptionInfo>>, Local<'env, Throwable>>
[src]
&'env self,
arg0: i32
) -> Result<Option<Local<'env, SubscriptionInfo>>, Local<'env, Throwable>>
getActiveSubscriptionInfoForSimSlotIndex
Required features: "android-telephony-SubscriptionInfo"
pub fn getActiveSubscriptionInfoList<'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 getAccessibleSubscriptionInfoList<'env>(
&'env self
) -> Result<Option<Local<'env, List>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, List>>, Local<'env, Throwable>>
getAccessibleSubscriptionInfoList
Required features: "java-util-List"
pub fn getActiveSubscriptionInfoCount<'env>(
&'env self
) -> Result<i32, Local<'env, Throwable>>
[src]
&'env self
) -> Result<i32, Local<'env, Throwable>>
pub fn getActiveSubscriptionInfoCountMax<'env>(
&'env self
) -> Result<i32, Local<'env, Throwable>>
[src]
&'env self
) -> Result<i32, Local<'env, Throwable>>
pub fn getDefaultSubscriptionId<'env>(
__jni_env: &'env Env
) -> Result<i32, Local<'env, Throwable>>
[src]
__jni_env: &'env Env
) -> Result<i32, Local<'env, Throwable>>
pub fn getDefaultVoiceSubscriptionId<'env>(
__jni_env: &'env Env
) -> Result<i32, Local<'env, Throwable>>
[src]
__jni_env: &'env Env
) -> Result<i32, Local<'env, Throwable>>
pub fn getDefaultSmsSubscriptionId<'env>(
__jni_env: &'env Env
) -> Result<i32, Local<'env, Throwable>>
[src]
__jni_env: &'env Env
) -> Result<i32, Local<'env, Throwable>>
pub fn getDefaultDataSubscriptionId<'env>(
__jni_env: &'env Env
) -> Result<i32, Local<'env, Throwable>>
[src]
__jni_env: &'env Env
) -> Result<i32, Local<'env, Throwable>>
pub fn isNetworkRoaming<'env>(
&'env self,
arg0: i32
) -> Result<bool, Local<'env, Throwable>>
[src]
&'env self,
arg0: i32
) -> Result<bool, Local<'env, Throwable>>
pub fn getSubscriptionPlans<'env>(
&'env self,
arg0: i32
) -> Result<Option<Local<'env, List>>, Local<'env, Throwable>>
[src]
&'env self,
arg0: i32
) -> Result<Option<Local<'env, List>>, Local<'env, Throwable>>
Required features: "java-util-List"
pub fn setSubscriptionPlans<'env>(
&'env self,
arg0: i32,
arg1: impl Into<Option<&'env List>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: i32,
arg1: impl Into<Option<&'env List>>
) -> Result<(), Local<'env, Throwable>>
Required features: "java-util-List"
pub fn setSubscriptionOverrideUnmetered<'env>(
&'env self,
arg0: i32,
arg1: bool,
arg2: i64
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: i32,
arg1: bool,
arg2: i64
) -> Result<(), Local<'env, Throwable>>
pub fn setSubscriptionOverrideCongested<'env>(
&'env self,
arg0: i32,
arg1: bool,
arg2: i64
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: i32,
arg1: bool,
arg2: i64
) -> Result<(), Local<'env, Throwable>>
pub fn canManageSubscription<'env>(
&'env self,
arg0: impl Into<Option<&'env SubscriptionInfo>>
) -> Result<bool, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env SubscriptionInfo>>
) -> Result<bool, Local<'env, Throwable>>
Required features: "android-telephony-SubscriptionInfo"
pub const ACTION_DEFAULT_SMS_SUBSCRIPTION_CHANGED: &'static str
[src]
public static final ACTION_DEFAULT_SMS_SUBSCRIPTION_CHANGED
pub const ACTION_DEFAULT_SUBSCRIPTION_CHANGED: &'static str
[src]
public static final ACTION_DEFAULT_SUBSCRIPTION_CHANGED
pub const ACTION_MANAGE_SUBSCRIPTION_PLANS: &'static str
[src]
public static final ACTION_MANAGE_SUBSCRIPTION_PLANS
pub const ACTION_REFRESH_SUBSCRIPTION_PLANS: &'static str
[src]
public static final ACTION_REFRESH_SUBSCRIPTION_PLANS
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]
&'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 SubscriptionManager
impl AsValidJObjectAndEnv for SubscriptionManager
impl Deref for SubscriptionManager
impl JniType for SubscriptionManager
fn static_with_jni_type<R>(callback: impl FnOnce(&str) -> R) -> R
Auto Trait Implementations
impl RefUnwindSafe for SubscriptionManager
impl !Send for SubscriptionManager
impl !Sync for SubscriptionManager
impl Unpin for SubscriptionManager
impl UnwindSafe for SubscriptionManager
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>,