[]Struct jni_android_sys::android::graphics::ImageDecoder

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

public final class ImageDecoder

Required feature: "android-graphics-ImageDecoder"

Methods

impl ImageDecoder

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

createSource

Required features: "android-content-res-Resources", "android-graphics-ImageDecoder_Source"

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

createSource

Required features: "android-content-ContentResolver", "android-graphics-ImageDecoder_Source", "android-net-Uri"

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

createSource

Required features: "android-content-res-AssetManager", "android-graphics-ImageDecoder_Source", "java-lang-String"

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

createSource

Required features: "android-graphics-ImageDecoder_Source", "java-nio-ByteBuffer"

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

createSource

Required features: "android-graphics-ImageDecoder_Source", "java-io-File"

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

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

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

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

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

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

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

setPostProcessor

Required features: "android-graphics-PostProcessor"

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

getPostProcessor

Required features: "android-graphics-PostProcessor"

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

setOnPartialImageListener

Required features: "android-graphics-ImageDecoder_OnPartialImageListener"

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

getOnPartialImageListener

Required features: "android-graphics-ImageDecoder_OnPartialImageListener"

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

setCrop

Required features: "android-graphics-Rect"

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

getCrop

Required features: "android-graphics-Rect"

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

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

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

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

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

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

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

setTargetColorSpace

Required features: "android-graphics-ColorSpace"

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

pub fn decodeDrawable_Source_OnHeaderDecodedListener<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env ImageDecoder_Source>>,
    arg1: impl Into<Option<&'env ImageDecoder_OnHeaderDecodedListener>>
) -> Result<Option<Local<'env, Drawable>>, Local<'env, Throwable>>
[src]

decodeDrawable

Required features: "android-graphics-ImageDecoder_OnHeaderDecodedListener", "android-graphics-ImageDecoder_Source", "android-graphics-drawable-Drawable"

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

decodeDrawable

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

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

decodeBitmap

Required features: "android-graphics-Bitmap", "android-graphics-ImageDecoder_OnHeaderDecodedListener", "android-graphics-ImageDecoder_Source"

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

decodeBitmap

Required features: "android-graphics-Bitmap", "android-graphics-ImageDecoder_Source"

pub const ALLOCATOR_DEFAULT: i32[src]

public static final ALLOCATOR_DEFAULT

pub const ALLOCATOR_HARDWARE: i32[src]

public static final ALLOCATOR_HARDWARE

pub const ALLOCATOR_SHARED_MEMORY: i32[src]

public static final ALLOCATOR_SHARED_MEMORY

pub const ALLOCATOR_SOFTWARE: i32[src]

public static final ALLOCATOR_SOFTWARE

pub const MEMORY_POLICY_DEFAULT: i32[src]

public static final MEMORY_POLICY_DEFAULT

pub const MEMORY_POLICY_LOW_RAM: i32[src]

public static final MEMORY_POLICY_LOW_RAM

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 ImageDecoder

impl AsRef<AutoCloseable> for ImageDecoder

impl AsValidJObjectAndEnv for ImageDecoder

impl Deref for ImageDecoder

type Target = Object

The resulting type after dereferencing.

impl JniType for ImageDecoder

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.