[]Struct jni_android_sys::android::os::BatteryManager

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

public class BatteryManager

Required feature: "android-os-BatteryManager"

Methods

impl BatteryManager

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

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

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

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

pub const ACTION_CHARGING: &'static str[src]

public static final ACTION_CHARGING

pub const ACTION_DISCHARGING: &'static str[src]

public static final ACTION_DISCHARGING

pub const BATTERY_HEALTH_COLD: i32[src]

public static final BATTERY_HEALTH_COLD

pub const BATTERY_HEALTH_DEAD: i32[src]

public static final BATTERY_HEALTH_DEAD

pub const BATTERY_HEALTH_GOOD: i32[src]

public static final BATTERY_HEALTH_GOOD

pub const BATTERY_HEALTH_OVERHEAT: i32[src]

public static final BATTERY_HEALTH_OVERHEAT

pub const BATTERY_HEALTH_OVER_VOLTAGE: i32[src]

public static final BATTERY_HEALTH_OVER_VOLTAGE

pub const BATTERY_HEALTH_UNKNOWN: i32[src]

public static final BATTERY_HEALTH_UNKNOWN

pub const BATTERY_HEALTH_UNSPECIFIED_FAILURE: i32[src]

pub const BATTERY_PLUGGED_AC: i32[src]

public static final BATTERY_PLUGGED_AC

pub const BATTERY_PLUGGED_USB: i32[src]

public static final BATTERY_PLUGGED_USB

pub const BATTERY_PLUGGED_WIRELESS: i32[src]

public static final BATTERY_PLUGGED_WIRELESS

pub const BATTERY_PROPERTY_CAPACITY: i32[src]

public static final BATTERY_PROPERTY_CAPACITY

pub const BATTERY_PROPERTY_CHARGE_COUNTER: i32[src]

public static final BATTERY_PROPERTY_CHARGE_COUNTER

pub const BATTERY_PROPERTY_CURRENT_AVERAGE: i32[src]

pub const BATTERY_PROPERTY_CURRENT_NOW: i32[src]

public static final BATTERY_PROPERTY_CURRENT_NOW

pub const BATTERY_PROPERTY_ENERGY_COUNTER: i32[src]

public static final BATTERY_PROPERTY_ENERGY_COUNTER

pub const BATTERY_PROPERTY_STATUS: i32[src]

public static final BATTERY_PROPERTY_STATUS

pub const BATTERY_STATUS_CHARGING: i32[src]

public static final BATTERY_STATUS_CHARGING

pub const BATTERY_STATUS_DISCHARGING: i32[src]

public static final BATTERY_STATUS_DISCHARGING

pub const BATTERY_STATUS_FULL: i32[src]

public static final BATTERY_STATUS_FULL

pub const BATTERY_STATUS_NOT_CHARGING: i32[src]

public static final BATTERY_STATUS_NOT_CHARGING

pub const BATTERY_STATUS_UNKNOWN: i32[src]

public static final BATTERY_STATUS_UNKNOWN

pub const EXTRA_BATTERY_LOW: &'static str[src]

public static final EXTRA_BATTERY_LOW

pub const EXTRA_HEALTH: &'static str[src]

public static final EXTRA_HEALTH

pub const EXTRA_ICON_SMALL: &'static str[src]

public static final EXTRA_ICON_SMALL

pub const EXTRA_LEVEL: &'static str[src]

public static final EXTRA_LEVEL

pub const EXTRA_PLUGGED: &'static str[src]

public static final EXTRA_PLUGGED

pub const EXTRA_PRESENT: &'static str[src]

public static final EXTRA_PRESENT

pub const EXTRA_SCALE: &'static str[src]

public static final EXTRA_SCALE

pub const EXTRA_STATUS: &'static str[src]

public static final EXTRA_STATUS

pub const EXTRA_TECHNOLOGY: &'static str[src]

public static final EXTRA_TECHNOLOGY

pub const EXTRA_TEMPERATURE: &'static str[src]

public static final EXTRA_TEMPERATURE

pub const EXTRA_VOLTAGE: &'static str[src]

public static final EXTRA_VOLTAGE

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 BatteryManager

impl AsValidJObjectAndEnv for BatteryManager

impl Deref for BatteryManager

type Target = Object

The resulting type after dereferencing.

impl JniType for BatteryManager

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.