[−]Struct jni_android_sys::android::widget::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]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env Context>>
) -> Result<Local<'env, VideoView>, Local<'env, Throwable>>
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]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env Context>>,
arg1: impl Into<Option<&'env AttributeSet>>
) -> Result<Local<'env, VideoView>, Local<'env, Throwable>>
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]
__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>>
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]
__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>>
Required features: "android-content-Context", "android-util-AttributeSet"
pub fn getAccessibilityClassName<'env>(
&'env self
) -> Result<Option<Local<'env, CharSequence>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, CharSequence>>, Local<'env, Throwable>>
Required features: "java-lang-CharSequence"
pub fn resolveAdjustedSize<'env>(
&'env self,
arg0: i32,
arg1: i32
) -> Result<i32, Local<'env, Throwable>>
[src]
&'env self,
arg0: i32,
arg1: i32
) -> Result<i32, Local<'env, Throwable>>
pub fn setVideoPath<'env>(
&'env self,
arg0: impl Into<Option<&'env String>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env String>>
) -> Result<(), Local<'env, Throwable>>
Required features: "java-lang-String"
pub fn setVideoURI_Uri<'env>(
&'env self,
arg0: impl Into<Option<&'env Uri>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env Uri>>
) -> Result<(), Local<'env, Throwable>>
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]
&'env self,
arg0: impl Into<Option<&'env Uri>>,
arg1: impl Into<Option<&'env Map>>
) -> Result<(), Local<'env, Throwable>>
Required features: "android-net-Uri", "java-util-Map"
pub fn setAudioFocusRequest<'env>(
&'env self,
arg0: i32
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: i32
) -> Result<(), Local<'env, Throwable>>
pub fn setAudioAttributes<'env>(
&'env self,
arg0: impl Into<Option<&'env AudioAttributes>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env AudioAttributes>>
) -> Result<(), Local<'env, Throwable>>
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]
&'env self,
arg0: impl Into<Option<&'env InputStream>>,
arg1: impl Into<Option<&'env MediaFormat>>
) -> Result<(), Local<'env, Throwable>>
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]
&'env self,
arg0: impl Into<Option<&'env MediaController>>
) -> Result<(), Local<'env, Throwable>>
Required features: "android-widget-MediaController"
pub fn setOnPreparedListener<'env>(
&'env self,
arg0: impl Into<Option<&'env MediaPlayer_OnPreparedListener>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env MediaPlayer_OnPreparedListener>>
) -> Result<(), Local<'env, Throwable>>
Required features: "android-media-MediaPlayer_OnPreparedListener"
pub fn setOnCompletionListener<'env>(
&'env self,
arg0: impl Into<Option<&'env MediaPlayer_OnCompletionListener>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env MediaPlayer_OnCompletionListener>>
) -> Result<(), Local<'env, Throwable>>
Required features: "android-media-MediaPlayer_OnCompletionListener"
pub fn setOnErrorListener<'env>(
&'env self,
arg0: impl Into<Option<&'env MediaPlayer_OnErrorListener>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env MediaPlayer_OnErrorListener>>
) -> Result<(), Local<'env, Throwable>>
Required features: "android-media-MediaPlayer_OnErrorListener"
pub fn setOnInfoListener<'env>(
&'env self,
arg0: impl Into<Option<&'env MediaPlayer_OnInfoListener>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env MediaPlayer_OnInfoListener>>
) -> Result<(), Local<'env, Throwable>>
Required features: "android-media-MediaPlayer_OnInfoListener"
pub fn onTouchEvent<'env>(
&'env self,
arg0: impl Into<Option<&'env MotionEvent>>
) -> Result<bool, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env MotionEvent>>
) -> Result<bool, Local<'env, Throwable>>
Required features: "android-view-MotionEvent"
pub fn onTrackballEvent<'env>(
&'env self,
arg0: impl Into<Option<&'env MotionEvent>>
) -> Result<bool, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env MotionEvent>>
) -> Result<bool, Local<'env, Throwable>>
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]
&'env self,
arg0: i32,
arg1: impl Into<Option<&'env KeyEvent>>
) -> Result<bool, Local<'env, Throwable>>
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]
&'env self
) -> Result<i32, Local<'env, Throwable>>
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]
&'env self
) -> Result<i32, Local<'env, Throwable>>
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]
&'env self
) -> Result<i32, Local<'env, Throwable>>
pub fn draw<'env>(
&'env self,
arg0: impl Into<Option<&'env Canvas>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env Canvas>>
) -> Result<(), Local<'env, Throwable>>
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]
&'env self
) -> Result<Option<Local<'env, SurfaceHolder>>, Local<'env, Throwable>>
Required features: "android-view-SurfaceHolder"
pub fn setVisibility<'env>(
&'env self,
arg0: i32
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: i32
) -> Result<(), Local<'env, Throwable>>
pub fn gatherTransparentRegion<'env>(
&'env self,
arg0: impl Into<Option<&'env Region>>
) -> Result<bool, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env Region>>
) -> Result<bool, Local<'env, Throwable>>
Required features: "android-graphics-Region"
pub fn draw<'env>(
&'env self,
arg0: impl Into<Option<&'env Canvas>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env Canvas>>
) -> Result<(), Local<'env, Throwable>>
Required features: "android-graphics-Canvas"
pub fn setZOrderMediaOverlay<'env>(
&'env self,
arg0: bool
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: bool
) -> Result<(), Local<'env, Throwable>>
pub fn setZOrderOnTop<'env>(
&'env self,
arg0: bool
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: bool
) -> Result<(), Local<'env, Throwable>>
pub fn setSecure<'env>(
&'env self,
arg0: bool
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: bool
) -> Result<(), Local<'env, Throwable>>
Trait Implementations
impl AsJValue for VideoView
impl AsRef<MediaController_MediaPlayerControl> for VideoView
fn as_ref(&self) -> &MediaController_MediaPlayerControl
impl AsValidJObjectAndEnv for VideoView
impl Deref for VideoView
impl JniType for VideoView
fn static_with_jni_type<R>(callback: impl FnOnce(&str) -> R) -> R
Auto Trait Implementations
impl RefUnwindSafe for VideoView
impl !Send for VideoView
impl !Sync for VideoView
impl Unpin for VideoView
impl UnwindSafe for VideoView
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>,