[]Struct jni_android_sys::android::content::res::TypedArray

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

public class TypedArray

Required feature: "android-content-res-TypedArray"

Methods

impl TypedArray

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

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

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

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

getResources

Required features: "android-content-res-Resources"

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

getText

Required features: "java-lang-CharSequence"

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

getString

Required features: "java-lang-String"

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

getNonResourceString

Required features: "java-lang-String"

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

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

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

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

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

getColorStateList

Required features: "android-content-res-ColorStateList"

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

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

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

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

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

getLayoutDimension

Required features: "java-lang-String"

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

pub fn getFraction<'env>(
    &'env self,
    arg0: i32,
    arg1: i32,
    arg2: i32,
    arg3: f32
) -> Result<f32, Local<'env, Throwable>>
[src]

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

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

getDrawable

Required features: "android-graphics-drawable-Drawable"

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

getFont

Required features: "android-graphics-Typeface"

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

getTextArray

Required features: "java-lang-CharSequence"

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

getValue

Required features: "android-util-TypedValue"

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

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

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

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

peekValue

Required features: "android-util-TypedValue"

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

getPositionDescription

Required features: "java-lang-String"

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

pub fn getChangingConfigurations<'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"

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 TypedArray

impl AsValidJObjectAndEnv for TypedArray

impl Deref for TypedArray

type Target = Object

The resulting type after dereferencing.

impl JniType for TypedArray

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.