[]Struct jni_android_sys::android::graphics::drawable::Icon

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

public final class Icon

Required feature: "android-graphics-drawable-Icon"

Methods

impl Icon

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

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

getResPackage

Required features: "java-lang-String"

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

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

getUri

Required features: "android-net-Uri"

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

loadDrawableAsync

Required features: "android-content-Context", "android-os-Message"

pub fn loadDrawableAsync_Context_OnDrawableLoadedListener_Handler<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Context>>,
    arg1: impl Into<Option<&'env Icon_OnDrawableLoadedListener>>,
    arg2: impl Into<Option<&'env Handler>>
) -> Result<(), Local<'env, Throwable>>
[src]

loadDrawableAsync

Required features: "android-content-Context", "android-graphics-drawable-Icon_OnDrawableLoadedListener", "android-os-Handler"

pub fn loadDrawable<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Context>>
) -> Result<Option<Local<'env, Drawable>>, Local<'env, Throwable>>
[src]

loadDrawable

Required features: "android-content-Context", "android-graphics-drawable-Drawable"

pub fn createWithResource_Context_int<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env Context>>,
    arg1: i32
) -> Result<Option<Local<'env, Icon>>, Local<'env, Throwable>>
[src]

createWithResource

Required features: "android-content-Context", "android-graphics-drawable-Icon"

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

createWithResource

Required features: "android-graphics-drawable-Icon", "java-lang-String"

pub fn createWithBitmap<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env Bitmap>>
) -> Result<Option<Local<'env, Icon>>, Local<'env, Throwable>>
[src]

createWithBitmap

Required features: "android-graphics-Bitmap", "android-graphics-drawable-Icon"

pub fn createWithAdaptiveBitmap<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env Bitmap>>
) -> Result<Option<Local<'env, Icon>>, Local<'env, Throwable>>
[src]

createWithAdaptiveBitmap

Required features: "android-graphics-Bitmap", "android-graphics-drawable-Icon"

pub fn createWithData<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env ByteArray>>,
    arg1: i32,
    arg2: i32
) -> Result<Option<Local<'env, Icon>>, Local<'env, Throwable>>
[src]

createWithData

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

pub fn createWithContentUri_String<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env String>>
) -> Result<Option<Local<'env, Icon>>, Local<'env, Throwable>>
[src]

createWithContentUri

Required features: "android-graphics-drawable-Icon", "java-lang-String"

pub fn createWithContentUri_Uri<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env Uri>>
) -> Result<Option<Local<'env, Icon>>, Local<'env, Throwable>>
[src]

createWithContentUri

Required features: "android-graphics-drawable-Icon", "android-net-Uri"

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

setTint

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

pub fn setTintList<'env>(
    &'env self,
    arg0: impl Into<Option<&'env ColorStateList>>
) -> Result<Option<Local<'env, Icon>>, Local<'env, Throwable>>
[src]

setTintList

Required features: "android-content-res-ColorStateList", "android-graphics-drawable-Icon"

pub fn setTintMode<'env>(
    &'env self,
    arg0: impl Into<Option<&'env PorterDuff_Mode>>
) -> Result<Option<Local<'env, Icon>>, Local<'env, Throwable>>
[src]

setTintMode

Required features: "android-graphics-PorterDuff_Mode", "android-graphics-drawable-Icon"

pub fn createWithFilePath<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env String>>
) -> Result<Option<Local<'env, Icon>>, Local<'env, Throwable>>
[src]

createWithFilePath

Required features: "android-graphics-drawable-Icon", "java-lang-String"

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

toString

Required features: "java-lang-String"

pub fn describeContents<'env>(&'env self) -> Result<i32, 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 CREATOR<'env>(env: &'env Env) -> Option<Local<'env, Parcelable_Creator>>[src]

get public static final CREATOR

Required feature: "android-os-Parcelable_Creator"

pub const TYPE_ADAPTIVE_BITMAP: i32[src]

public static final TYPE_ADAPTIVE_BITMAP

pub const TYPE_BITMAP: i32[src]

public static final TYPE_BITMAP

pub const TYPE_DATA: i32[src]

public static final TYPE_DATA

pub const TYPE_RESOURCE: i32[src]

public static final TYPE_RESOURCE

pub const TYPE_URI: i32[src]

public static final TYPE_URI

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 Icon

impl AsRef<Parcelable> for Icon

impl AsValidJObjectAndEnv for Icon

impl Deref for Icon

type Target = Object

The resulting type after dereferencing.

impl JniType for Icon

Auto Trait Implementations

impl RefUnwindSafe for Icon

impl !Send for Icon

impl !Sync for Icon

impl Unpin for Icon

impl UnwindSafe for Icon

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.