[]Struct jni_android_sys::android::widget::VideoView

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

public class VideoView

Required feature: "android-widget-VideoView"

Methods

impl VideoView

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

VideoView

Required features: "android-content-Context"

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, VideoView>, Local<'env, Throwable>>
[src]

VideoView

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

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

VideoView

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

pub fn new_Context_AttributeSet_int_int<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env Context>>,
    arg1: impl Into<Option<&'env AttributeSet>>,
    arg2: i32,
    arg3: i32
) -> Result<Local<'env, VideoView>, Local<'env, Throwable>>
[src]

VideoView

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

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

getAccessibilityClassName

Required features: "java-lang-CharSequence"

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

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

setVideoPath

Required features: "java-lang-String"

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

setVideoURI

Required features: "android-net-Uri"

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

setVideoURI

Required features: "android-net-Uri", "java-util-Map"

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

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

setAudioAttributes

Required features: "android-media-AudioAttributes"

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

addSubtitleSource

Required features: "android-media-MediaFormat", "java-io-InputStream"

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

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

setMediaController

Required features: "android-widget-MediaController"

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

setOnPreparedListener

Required features: "android-media-MediaPlayer_OnPreparedListener"

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

setOnCompletionListener

Required features: "android-media-MediaPlayer_OnCompletionListener"

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

setOnErrorListener

Required features: "android-media-MediaPlayer_OnErrorListener"

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

setOnInfoListener

Required features: "android-media-MediaPlayer_OnInfoListener"

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 onKeyDown<'env>(
    &'env self,
    arg0: i32,
    arg1: impl Into<Option<&'env KeyEvent>>
) -> Result<bool, Local<'env, Throwable>>
[src]

onKeyDown

Required features: "android-view-KeyEvent"

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

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

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

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

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

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

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

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

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

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

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

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

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

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

draw

Required features: "android-graphics-Canvas"

Methods from Deref<Target = SurfaceView>

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

getHolder

Required features: "android-view-SurfaceHolder"

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

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

gatherTransparentRegion

Required features: "android-graphics-Region"

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

draw

Required features: "android-graphics-Canvas"

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

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

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

Trait Implementations

impl AsJValue for VideoView

impl AsRef<MediaController_MediaPlayerControl> for VideoView

impl AsValidJObjectAndEnv for VideoView

impl Deref for VideoView

type Target = SurfaceView

The resulting type after dereferencing.

impl JniType for VideoView

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.