[]Struct jni_android_sys::android::widget::MediaController

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

public class MediaController

Required feature: "android-widget-MediaController"

Methods

impl MediaController

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

MediaController

Required features: "android-content-Context", "android-util-AttributeSet"

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

MediaController

Required features: "android-content-Context"

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

MediaController

Required features: "android-content-Context"

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

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

setMediaPlayer

Required features: "android-widget-MediaController_MediaPlayerControl"

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

setAnchorView

Required features: "android-view-View"

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

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

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

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

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

onTouchEvent

Required features: "android-view-MotionEvent"

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

onTrackballEvent

Required features: "android-view-MotionEvent"

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

dispatchKeyEvent

Required features: "android-view-KeyEvent"

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

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

getAccessibilityClassName

Required features: "java-lang-CharSequence"

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

setPrevNextListeners

Required features: "android-view-View_OnClickListener"

Methods from Deref<Target = FrameLayout>

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

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

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

Deprecated

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

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

generateLayoutParams

Required features: "android-util-AttributeSet", "android-widget-FrameLayout_LayoutParams"

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

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

getAccessibilityClassName

Required features: "java-lang-CharSequence"

Trait Implementations

impl AsJValue for MediaController

impl AsValidJObjectAndEnv for MediaController

impl Deref for MediaController

type Target = FrameLayout

The resulting type after dereferencing.

impl JniType for MediaController

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.