[]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 get_type<'env>(&'env self) -> Result<i32>[src]

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

getResPackage

Required features: "java-lang-String"

pub fn get_res_id<'env>(&'env self) -> Result<i32>[src]

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

getUri

Required features: "android-net-Uri"

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

loadDrawableAsync

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

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

loadDrawableAsync

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

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

loadDrawable

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

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

createWithResource

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

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

createWithResource

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

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

createWithBitmap

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

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

createWithAdaptiveBitmap

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

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

createWithData

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

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

createWithContentUri

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

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

createWithContentUri

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

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

setTint

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

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

setTintList

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

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

setTintMode

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

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

createWithFilePath

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

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

toString

Required features: "java-lang-String"

pub fn describe_contents<'env>(&'env self) -> Result<i32>[src]

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

writeToParcel

Required features: "android-os-Parcel"

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 get_class<'env>(&'env self) -> Result<Option<Local<'env, Class>>>[src]

getClass

Required features: "java-lang-Class"

pub fn hash_code<'env>(&'env self) -> Result<i32>[src]

pub fn equals<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Object>>
) -> Result<bool>
[src]

equals

Required features: "java-lang-Object"

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

toString

Required features: "java-lang-String"

pub fn notify<'env>(&'env self) -> Result<()>[src]

pub fn notify_all<'env>(&'env self) -> Result<()>[src]

pub fn wait_long<'env>(&'env self, arg0: i64) -> Result<()>[src]

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

pub fn wait<'env>(&'env self) -> Result<()>[src]

Trait Implementations

impl AsRef<Parcelable> for Icon

impl Deref for Icon

type Target = Object

The resulting type after dereferencing.

impl AsValidJObjectAndEnv for Icon

impl AsJValue for Icon

Auto Trait Implementations

impl !Sync for Icon

impl Unpin for Icon

impl !Send for Icon

impl UnwindSafe for Icon

impl RefUnwindSafe for Icon

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for 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.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]