[−]Struct jni_android_sys::android::hardware::SensorManager
public class SensorManager
Required feature: "android-hardware-SensorManager"
Methods
impl SensorManager
pub fn getSensors<'env>(&'env self) -> Result<i32, Local<'env, Throwable>>
[src]
pub fn getSensorList<'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 getDynamicSensorList<'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 getDefaultSensor_int<'env>(
&'env self,
arg0: i32
) -> Result<Option<Local<'env, Sensor>>, Local<'env, Throwable>>
[src]
&'env self,
arg0: i32
) -> Result<Option<Local<'env, Sensor>>, Local<'env, Throwable>>
Required features: "android-hardware-Sensor"
pub fn getDefaultSensor_int_boolean<'env>(
&'env self,
arg0: i32,
arg1: bool
) -> Result<Option<Local<'env, Sensor>>, Local<'env, Throwable>>
[src]
&'env self,
arg0: i32,
arg1: bool
) -> Result<Option<Local<'env, Sensor>>, Local<'env, Throwable>>
Required features: "android-hardware-Sensor"
pub fn registerListener_SensorListener_int<'env>(
&'env self,
arg0: impl Into<Option<&'env SensorListener>>,
arg1: i32
) -> Result<bool, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env SensorListener>>,
arg1: i32
) -> Result<bool, Local<'env, Throwable>>
Required features: "android-hardware-SensorListener"
pub fn registerListener_SensorListener_int_int<'env>(
&'env self,
arg0: impl Into<Option<&'env SensorListener>>,
arg1: i32,
arg2: i32
) -> Result<bool, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env SensorListener>>,
arg1: i32,
arg2: i32
) -> Result<bool, Local<'env, Throwable>>
Required features: "android-hardware-SensorListener"
pub fn unregisterListener_SensorListener<'env>(
&'env self,
arg0: impl Into<Option<&'env SensorListener>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env SensorListener>>
) -> Result<(), Local<'env, Throwable>>
Required features: "android-hardware-SensorListener"
pub fn unregisterListener_SensorListener_int<'env>(
&'env self,
arg0: impl Into<Option<&'env SensorListener>>,
arg1: i32
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env SensorListener>>,
arg1: i32
) -> Result<(), Local<'env, Throwable>>
Required features: "android-hardware-SensorListener"
pub fn unregisterListener_SensorEventListener_Sensor<'env>(
&'env self,
arg0: impl Into<Option<&'env SensorEventListener>>,
arg1: impl Into<Option<&'env Sensor>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env SensorEventListener>>,
arg1: impl Into<Option<&'env Sensor>>
) -> Result<(), Local<'env, Throwable>>
Required features: "android-hardware-Sensor", "android-hardware-SensorEventListener"
pub fn unregisterListener_SensorEventListener<'env>(
&'env self,
arg0: impl Into<Option<&'env SensorEventListener>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env SensorEventListener>>
) -> Result<(), Local<'env, Throwable>>
Required features: "android-hardware-SensorEventListener"
pub fn registerListener_SensorEventListener_Sensor_int<'env>(
&'env self,
arg0: impl Into<Option<&'env SensorEventListener>>,
arg1: impl Into<Option<&'env Sensor>>,
arg2: i32
) -> Result<bool, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env SensorEventListener>>,
arg1: impl Into<Option<&'env Sensor>>,
arg2: i32
) -> Result<bool, Local<'env, Throwable>>
Required features: "android-hardware-Sensor", "android-hardware-SensorEventListener"
pub fn registerListener_SensorEventListener_Sensor_int_int<'env>(
&'env self,
arg0: impl Into<Option<&'env SensorEventListener>>,
arg1: impl Into<Option<&'env Sensor>>,
arg2: i32,
arg3: i32
) -> Result<bool, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env SensorEventListener>>,
arg1: impl Into<Option<&'env Sensor>>,
arg2: i32,
arg3: i32
) -> Result<bool, Local<'env, Throwable>>
Required features: "android-hardware-Sensor", "android-hardware-SensorEventListener"
pub fn registerListener_SensorEventListener_Sensor_int_Handler<'env>(
&'env self,
arg0: impl Into<Option<&'env SensorEventListener>>,
arg1: impl Into<Option<&'env Sensor>>,
arg2: i32,
arg3: impl Into<Option<&'env Handler>>
) -> Result<bool, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env SensorEventListener>>,
arg1: impl Into<Option<&'env Sensor>>,
arg2: i32,
arg3: impl Into<Option<&'env Handler>>
) -> Result<bool, Local<'env, Throwable>>
Required features: "android-hardware-Sensor", "android-hardware-SensorEventListener", "android-os-Handler"
pub fn registerListener_SensorEventListener_Sensor_int_int_Handler<'env>(
&'env self,
arg0: impl Into<Option<&'env SensorEventListener>>,
arg1: impl Into<Option<&'env Sensor>>,
arg2: i32,
arg3: i32,
arg4: impl Into<Option<&'env Handler>>
) -> Result<bool, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env SensorEventListener>>,
arg1: impl Into<Option<&'env Sensor>>,
arg2: i32,
arg3: i32,
arg4: impl Into<Option<&'env Handler>>
) -> Result<bool, Local<'env, Throwable>>
Required features: "android-hardware-Sensor", "android-hardware-SensorEventListener", "android-os-Handler"
pub fn flush<'env>(
&'env self,
arg0: impl Into<Option<&'env SensorEventListener>>
) -> Result<bool, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env SensorEventListener>>
) -> Result<bool, Local<'env, Throwable>>
Required features: "android-hardware-SensorEventListener"
pub fn createDirectChannel_MemoryFile<'env>(
&'env self,
arg0: impl Into<Option<&'env MemoryFile>>
) -> Result<Option<Local<'env, SensorDirectChannel>>, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env MemoryFile>>
) -> Result<Option<Local<'env, SensorDirectChannel>>, Local<'env, Throwable>>
Required features: "android-hardware-SensorDirectChannel", "android-os-MemoryFile"
pub fn createDirectChannel_HardwareBuffer<'env>(
&'env self,
arg0: impl Into<Option<&'env HardwareBuffer>>
) -> Result<Option<Local<'env, SensorDirectChannel>>, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env HardwareBuffer>>
) -> Result<Option<Local<'env, SensorDirectChannel>>, Local<'env, Throwable>>
Required features: "android-hardware-HardwareBuffer", "android-hardware-SensorDirectChannel"
pub fn registerDynamicSensorCallback_DynamicSensorCallback<'env>(
&'env self,
arg0: impl Into<Option<&'env SensorManager_DynamicSensorCallback>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env SensorManager_DynamicSensorCallback>>
) -> Result<(), Local<'env, Throwable>>
Required features: "android-hardware-SensorManager_DynamicSensorCallback"
pub fn registerDynamicSensorCallback_DynamicSensorCallback_Handler<'env>(
&'env self,
arg0: impl Into<Option<&'env SensorManager_DynamicSensorCallback>>,
arg1: impl Into<Option<&'env Handler>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env SensorManager_DynamicSensorCallback>>,
arg1: impl Into<Option<&'env Handler>>
) -> Result<(), Local<'env, Throwable>>
Required features: "android-hardware-SensorManager_DynamicSensorCallback", "android-os-Handler"
pub fn unregisterDynamicSensorCallback<'env>(
&'env self,
arg0: impl Into<Option<&'env SensorManager_DynamicSensorCallback>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env SensorManager_DynamicSensorCallback>>
) -> Result<(), Local<'env, Throwable>>
unregisterDynamicSensorCallback
Required features: "android-hardware-SensorManager_DynamicSensorCallback"
pub fn isDynamicSensorDiscoverySupported<'env>(
&'env self
) -> Result<bool, Local<'env, Throwable>>
[src]
&'env self
) -> Result<bool, Local<'env, Throwable>>
pub fn getRotationMatrix<'env>(
__jni_env: &'env Env,
arg0: impl Into<Option<&'env FloatArray>>,
arg1: impl Into<Option<&'env FloatArray>>,
arg2: impl Into<Option<&'env FloatArray>>,
arg3: impl Into<Option<&'env FloatArray>>
) -> Result<bool, Local<'env, Throwable>>
[src]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env FloatArray>>,
arg1: impl Into<Option<&'env FloatArray>>,
arg2: impl Into<Option<&'env FloatArray>>,
arg3: impl Into<Option<&'env FloatArray>>
) -> Result<bool, Local<'env, Throwable>>
pub fn getInclination<'env>(
__jni_env: &'env Env,
arg0: impl Into<Option<&'env FloatArray>>
) -> Result<f32, Local<'env, Throwable>>
[src]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env FloatArray>>
) -> Result<f32, Local<'env, Throwable>>
pub fn remapCoordinateSystem<'env>(
__jni_env: &'env Env,
arg0: impl Into<Option<&'env FloatArray>>,
arg1: i32,
arg2: i32,
arg3: impl Into<Option<&'env FloatArray>>
) -> Result<bool, Local<'env, Throwable>>
[src]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env FloatArray>>,
arg1: i32,
arg2: i32,
arg3: impl Into<Option<&'env FloatArray>>
) -> Result<bool, Local<'env, Throwable>>
pub fn getOrientation<'env>(
__jni_env: &'env Env,
arg0: impl Into<Option<&'env FloatArray>>,
arg1: impl Into<Option<&'env FloatArray>>
) -> Result<Option<Local<'env, FloatArray>>, Local<'env, Throwable>>
[src]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env FloatArray>>,
arg1: impl Into<Option<&'env FloatArray>>
) -> Result<Option<Local<'env, FloatArray>>, Local<'env, Throwable>>
pub fn getAltitude<'env>(
__jni_env: &'env Env,
arg0: f32,
arg1: f32
) -> Result<f32, Local<'env, Throwable>>
[src]
__jni_env: &'env Env,
arg0: f32,
arg1: f32
) -> Result<f32, Local<'env, Throwable>>
pub fn getAngleChange<'env>(
__jni_env: &'env Env,
arg0: impl Into<Option<&'env FloatArray>>,
arg1: impl Into<Option<&'env FloatArray>>,
arg2: impl Into<Option<&'env FloatArray>>
) -> Result<(), Local<'env, Throwable>>
[src]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env FloatArray>>,
arg1: impl Into<Option<&'env FloatArray>>,
arg2: impl Into<Option<&'env FloatArray>>
) -> Result<(), Local<'env, Throwable>>
pub fn getRotationMatrixFromVector<'env>(
__jni_env: &'env Env,
arg0: impl Into<Option<&'env FloatArray>>,
arg1: impl Into<Option<&'env FloatArray>>
) -> Result<(), Local<'env, Throwable>>
[src]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env FloatArray>>,
arg1: impl Into<Option<&'env FloatArray>>
) -> Result<(), Local<'env, Throwable>>
pub fn getQuaternionFromVector<'env>(
__jni_env: &'env Env,
arg0: impl Into<Option<&'env FloatArray>>,
arg1: impl Into<Option<&'env FloatArray>>
) -> Result<(), Local<'env, Throwable>>
[src]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env FloatArray>>,
arg1: impl Into<Option<&'env FloatArray>>
) -> Result<(), Local<'env, Throwable>>
pub fn requestTriggerSensor<'env>(
&'env self,
arg0: impl Into<Option<&'env TriggerEventListener>>,
arg1: impl Into<Option<&'env Sensor>>
) -> Result<bool, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env TriggerEventListener>>,
arg1: impl Into<Option<&'env Sensor>>
) -> Result<bool, Local<'env, Throwable>>
Required features: "android-hardware-Sensor", "android-hardware-TriggerEventListener"
pub fn cancelTriggerSensor<'env>(
&'env self,
arg0: impl Into<Option<&'env TriggerEventListener>>,
arg1: impl Into<Option<&'env Sensor>>
) -> Result<bool, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env TriggerEventListener>>,
arg1: impl Into<Option<&'env Sensor>>
) -> Result<bool, Local<'env, Throwable>>
Required features: "android-hardware-Sensor", "android-hardware-TriggerEventListener"
pub const AXIS_MINUS_X: i32
[src]
public static final AXIS_MINUS_X
pub const AXIS_MINUS_Y: i32
[src]
public static final AXIS_MINUS_Y
pub const AXIS_MINUS_Z: i32
[src]
public static final AXIS_MINUS_Z
pub const AXIS_X: i32
[src]
public static final AXIS_X
pub const AXIS_Y: i32
[src]
public static final AXIS_Y
pub const AXIS_Z: i32
[src]
public static final AXIS_Z
pub const DATA_X: i32
[src]
public static final DATA_X
pub const DATA_Y: i32
[src]
public static final DATA_Y
pub const DATA_Z: i32
[src]
public static final DATA_Z
pub const GRAVITY_DEATH_STAR_I: f32
[src]
public static final GRAVITY_DEATH_STAR_I
pub const GRAVITY_EARTH: f32
[src]
public static final GRAVITY_EARTH
pub const GRAVITY_JUPITER: f32
[src]
public static final GRAVITY_JUPITER
pub const GRAVITY_MARS: f32
[src]
public static final GRAVITY_MARS
pub const GRAVITY_MERCURY: f32
[src]
public static final GRAVITY_MERCURY
pub const GRAVITY_MOON: f32
[src]
public static final GRAVITY_MOON
pub const GRAVITY_NEPTUNE: f32
[src]
public static final GRAVITY_NEPTUNE
pub const GRAVITY_PLUTO: f32
[src]
public static final GRAVITY_PLUTO
pub const GRAVITY_SATURN: f32
[src]
public static final GRAVITY_SATURN
pub const GRAVITY_SUN: f32
[src]
public static final GRAVITY_SUN
pub const GRAVITY_THE_ISLAND: f32
[src]
public static final GRAVITY_THE_ISLAND
pub const GRAVITY_URANUS: f32
[src]
public static final GRAVITY_URANUS
pub const GRAVITY_VENUS: f32
[src]
public static final GRAVITY_VENUS
pub const LIGHT_CLOUDY: f32
[src]
public static final LIGHT_CLOUDY
pub const LIGHT_FULLMOON: f32
[src]
public static final LIGHT_FULLMOON
pub const LIGHT_NO_MOON: f32
[src]
public static final LIGHT_NO_MOON
pub const LIGHT_OVERCAST: f32
[src]
public static final LIGHT_OVERCAST
pub const LIGHT_SHADE: f32
[src]
public static final LIGHT_SHADE
pub const LIGHT_SUNLIGHT: f32
[src]
public static final LIGHT_SUNLIGHT
pub const LIGHT_SUNLIGHT_MAX: f32
[src]
public static final LIGHT_SUNLIGHT_MAX
pub const LIGHT_SUNRISE: f32
[src]
public static final LIGHT_SUNRISE
pub const MAGNETIC_FIELD_EARTH_MAX: f32
[src]
public static final MAGNETIC_FIELD_EARTH_MAX
pub const MAGNETIC_FIELD_EARTH_MIN: f32
[src]
public static final MAGNETIC_FIELD_EARTH_MIN
pub const PRESSURE_STANDARD_ATMOSPHERE: f32
[src]
public static final PRESSURE_STANDARD_ATMOSPHERE
pub const RAW_DATA_INDEX: i32
[src]
public static final RAW_DATA_INDEX
pub const RAW_DATA_X: i32
[src]
public static final RAW_DATA_X
pub const RAW_DATA_Y: i32
[src]
public static final RAW_DATA_Y
pub const RAW_DATA_Z: i32
[src]
public static final RAW_DATA_Z
pub const SENSOR_ACCELEROMETER: i32
[src]
public static final SENSOR_ACCELEROMETER
pub const SENSOR_ALL: i32
[src]
public static final SENSOR_ALL
pub const SENSOR_DELAY_FASTEST: i32
[src]
public static final SENSOR_DELAY_FASTEST
pub const SENSOR_DELAY_GAME: i32
[src]
public static final SENSOR_DELAY_GAME
pub const SENSOR_DELAY_NORMAL: i32
[src]
public static final SENSOR_DELAY_NORMAL
pub const SENSOR_DELAY_UI: i32
[src]
public static final SENSOR_DELAY_UI
pub const SENSOR_LIGHT: i32
[src]
public static final SENSOR_LIGHT
pub const SENSOR_MAGNETIC_FIELD: i32
[src]
public static final SENSOR_MAGNETIC_FIELD
pub const SENSOR_MAX: i32
[src]
public static final SENSOR_MAX
pub const SENSOR_MIN: i32
[src]
public static final SENSOR_MIN
pub const SENSOR_ORIENTATION: i32
[src]
public static final SENSOR_ORIENTATION
pub const SENSOR_ORIENTATION_RAW: i32
[src]
public static final SENSOR_ORIENTATION_RAW
pub const SENSOR_PROXIMITY: i32
[src]
public static final SENSOR_PROXIMITY
pub const SENSOR_STATUS_ACCURACY_HIGH: i32
[src]
public static final SENSOR_STATUS_ACCURACY_HIGH
pub const SENSOR_STATUS_ACCURACY_LOW: i32
[src]
public static final SENSOR_STATUS_ACCURACY_LOW
pub const SENSOR_STATUS_ACCURACY_MEDIUM: i32
[src]
public static final SENSOR_STATUS_ACCURACY_MEDIUM
pub const SENSOR_STATUS_NO_CONTACT: i32
[src]
public static final SENSOR_STATUS_NO_CONTACT
pub const SENSOR_STATUS_UNRELIABLE: i32
[src]
public static final SENSOR_STATUS_UNRELIABLE
pub const SENSOR_TEMPERATURE: i32
[src]
public static final SENSOR_TEMPERATURE
pub const SENSOR_TRICORDER: i32
[src]
public static final SENSOR_TRICORDER
pub const STANDARD_GRAVITY: f32
[src]
public static final STANDARD_GRAVITY
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 SensorManager
impl AsValidJObjectAndEnv for SensorManager
impl Deref for SensorManager
impl JniType for SensorManager
fn static_with_jni_type<R>(callback: impl FnOnce(&str) -> R) -> R
Auto Trait Implementations
impl RefUnwindSafe for SensorManager
impl !Send for SensorManager
impl !Sync for SensorManager
impl Unpin for SensorManager
impl UnwindSafe for SensorManager
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>,