[]Struct jni_android_sys::android::view::InputDevice

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

public final class InputDevice

Required feature: "android-view-InputDevice"

Methods

impl InputDevice

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

getDevice

Required features: "android-view-InputDevice"

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

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

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

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

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

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

getDescriptor

Required features: "java-lang-String"

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

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

getName

Required features: "java-lang-String"

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

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

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

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

getKeyCharacterMap

Required features: "android-view-KeyCharacterMap"

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

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

getMotionRange

Required features: "android-view-InputDevice_MotionRange"

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

getMotionRange

Required features: "android-view-InputDevice_MotionRange"

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

getMotionRanges

Required features: "java-util-List"

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

getVibrator

Required features: "android-os-Vibrator"

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

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

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

writeToParcel

Required features: "android-os-Parcel"

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

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

toString

Required features: "java-lang-String"

pub fn CREATOR<'env>(env: &'env Env) -> Option<Local<'env, Parcelable_Creator>>[src]

get public static final CREATOR

Required feature: "android-os-Parcelable_Creator"

pub const KEYBOARD_TYPE_ALPHABETIC: i32[src]

public static final KEYBOARD_TYPE_ALPHABETIC

pub const KEYBOARD_TYPE_NONE: i32[src]

public static final KEYBOARD_TYPE_NONE

pub const KEYBOARD_TYPE_NON_ALPHABETIC: i32[src]

public static final KEYBOARD_TYPE_NON_ALPHABETIC

pub const MOTION_RANGE_ORIENTATION: i32[src]

Deprecated

public static final MOTION_RANGE_ORIENTATION

pub const MOTION_RANGE_PRESSURE: i32[src]

Deprecated

public static final MOTION_RANGE_PRESSURE

pub const MOTION_RANGE_SIZE: i32[src]

Deprecated

public static final MOTION_RANGE_SIZE

pub const MOTION_RANGE_TOOL_MAJOR: i32[src]

Deprecated

public static final MOTION_RANGE_TOOL_MAJOR

pub const MOTION_RANGE_TOOL_MINOR: i32[src]

Deprecated

public static final MOTION_RANGE_TOOL_MINOR

pub const MOTION_RANGE_TOUCH_MAJOR: i32[src]

Deprecated

public static final MOTION_RANGE_TOUCH_MAJOR

pub const MOTION_RANGE_TOUCH_MINOR: i32[src]

Deprecated

public static final MOTION_RANGE_TOUCH_MINOR

pub const MOTION_RANGE_X: i32[src]

Deprecated

public static final MOTION_RANGE_X

pub const MOTION_RANGE_Y: i32[src]

Deprecated

public static final MOTION_RANGE_Y

pub const SOURCE_ANY: i32[src]

public static final SOURCE_ANY

pub const SOURCE_BLUETOOTH_STYLUS: i32[src]

public static final SOURCE_BLUETOOTH_STYLUS

pub const SOURCE_CLASS_BUTTON: i32[src]

public static final SOURCE_CLASS_BUTTON

pub const SOURCE_CLASS_JOYSTICK: i32[src]

public static final SOURCE_CLASS_JOYSTICK

pub const SOURCE_CLASS_MASK: i32[src]

public static final SOURCE_CLASS_MASK

pub const SOURCE_CLASS_NONE: i32[src]

public static final SOURCE_CLASS_NONE

pub const SOURCE_CLASS_POINTER: i32[src]

public static final SOURCE_CLASS_POINTER

pub const SOURCE_CLASS_POSITION: i32[src]

public static final SOURCE_CLASS_POSITION

pub const SOURCE_CLASS_TRACKBALL: i32[src]

public static final SOURCE_CLASS_TRACKBALL

pub const SOURCE_DPAD: i32[src]

public static final SOURCE_DPAD

pub const SOURCE_GAMEPAD: i32[src]

public static final SOURCE_GAMEPAD

pub const SOURCE_HDMI: i32[src]

public static final SOURCE_HDMI

pub const SOURCE_JOYSTICK: i32[src]

public static final SOURCE_JOYSTICK

pub const SOURCE_KEYBOARD: i32[src]

public static final SOURCE_KEYBOARD

pub const SOURCE_MOUSE: i32[src]

public static final SOURCE_MOUSE

pub const SOURCE_MOUSE_RELATIVE: i32[src]

public static final SOURCE_MOUSE_RELATIVE

pub const SOURCE_ROTARY_ENCODER: i32[src]

public static final SOURCE_ROTARY_ENCODER

pub const SOURCE_STYLUS: i32[src]

public static final SOURCE_STYLUS

pub const SOURCE_TOUCHPAD: i32[src]

public static final SOURCE_TOUCHPAD

pub const SOURCE_TOUCHSCREEN: i32[src]

public static final SOURCE_TOUCHSCREEN

pub const SOURCE_TOUCH_NAVIGATION: i32[src]

public static final SOURCE_TOUCH_NAVIGATION

pub const SOURCE_TRACKBALL: i32[src]

public static final SOURCE_TRACKBALL

pub const SOURCE_UNKNOWN: i32[src]

public static final SOURCE_UNKNOWN

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 InputDevice

impl AsRef<Parcelable> for InputDevice

impl AsValidJObjectAndEnv for InputDevice

impl Deref for InputDevice

type Target = Object

The resulting type after dereferencing.

impl JniType for InputDevice

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.