[]Struct jni_android_sys::android::view::SurfaceHolder

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

public interface SurfaceHolder

Required feature: "android-view-SurfaceHolder"

Methods

impl SurfaceHolder

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

addCallback

Required features: "android-view-SurfaceHolder_Callback"

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

removeCallback

Required features: "android-view-SurfaceHolder_Callback"

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

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

Deprecated

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

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

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

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

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

lockCanvas

Required features: "android-graphics-Canvas"

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

lockCanvas

Required features: "android-graphics-Canvas", "android-graphics-Rect"

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

lockHardwareCanvas

Required features: "android-graphics-Canvas"

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

unlockCanvasAndPost

Required features: "android-graphics-Canvas"

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

getSurfaceFrame

Required features: "android-graphics-Rect"

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

getSurface

Required features: "android-view-Surface"

pub const SURFACE_TYPE_GPU: i32[src]

Deprecated

public static final SURFACE_TYPE_GPU

pub const SURFACE_TYPE_HARDWARE: i32[src]

Deprecated

public static final SURFACE_TYPE_HARDWARE

pub const SURFACE_TYPE_NORMAL: i32[src]

Deprecated

public static final SURFACE_TYPE_NORMAL

pub const SURFACE_TYPE_PUSH_BUFFERS: i32[src]

Deprecated

public static final SURFACE_TYPE_PUSH_BUFFERS

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 SurfaceHolder

impl AsValidJObjectAndEnv for SurfaceHolder

impl Deref for SurfaceHolder

type Target = Object

The resulting type after dereferencing.

impl JniType for SurfaceHolder

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.