[−]Struct jni_android_sys::android::graphics::drawable::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]
&'env self
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
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]
&'env self
) -> Result<Option<Local<'env, Uri>>, Local<'env, Throwable>>
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]
&'env self,
arg0: impl Into<Option<&'env Context>>,
arg1: impl Into<Option<&'env Message>>
) -> Result<(), Local<'env, Throwable>>
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]
&'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>>
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]
&'env self,
arg0: impl Into<Option<&'env Context>>
) -> Result<Option<Local<'env, Drawable>>, Local<'env, Throwable>>
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]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env Context>>,
arg1: i32
) -> Result<Option<Local<'env, Icon>>, Local<'env, Throwable>>
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]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env String>>,
arg1: i32
) -> Result<Option<Local<'env, Icon>>, Local<'env, Throwable>>
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]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env Bitmap>>
) -> Result<Option<Local<'env, Icon>>, Local<'env, Throwable>>
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]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env Bitmap>>
) -> Result<Option<Local<'env, Icon>>, Local<'env, Throwable>>
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]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env ByteArray>>,
arg1: i32,
arg2: i32
) -> Result<Option<Local<'env, Icon>>, Local<'env, Throwable>>
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]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env String>>
) -> Result<Option<Local<'env, Icon>>, Local<'env, Throwable>>
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]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env Uri>>
) -> Result<Option<Local<'env, Icon>>, Local<'env, Throwable>>
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]
&'env self,
arg0: i32
) -> Result<Option<Local<'env, Icon>>, Local<'env, Throwable>>
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]
&'env self,
arg0: impl Into<Option<&'env ColorStateList>>
) -> Result<Option<Local<'env, Icon>>, Local<'env, Throwable>>
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]
&'env self,
arg0: impl Into<Option<&'env PorterDuff_Mode>>
) -> Result<Option<Local<'env, Icon>>, Local<'env, Throwable>>
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]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env String>>
) -> Result<Option<Local<'env, Icon>>, Local<'env, Throwable>>
Required features: "android-graphics-drawable-Icon", "java-lang-String"
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 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]
&'env self,
arg0: impl Into<Option<&'env Parcel>>,
arg1: i32
) -> Result<(), Local<'env, Throwable>>
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]
&'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 Icon
impl AsRef<Parcelable> for Icon
fn as_ref(&self) -> &Parcelable
impl AsValidJObjectAndEnv for Icon
impl Deref for Icon
impl JniType for Icon
fn static_with_jni_type<R>(callback: impl FnOnce(&str) -> R) -> R
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]
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>,