[]Struct jni_android_sys::android::media::tv::TvInputService_Session

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

public class TvInputService.Session

Required feature: "android-media-tv-TvInputService_Session"

Methods

impl TvInputService_Session

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

Session

Required features: "android-content-Context"

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

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

notifyChannelRetuned

Required features: "android-net-Uri"

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

notifyTracksChanged

Required features: "java-util-List"

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

notifyTrackSelected

Required features: "java-lang-String"

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

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

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

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

notifyContentBlocked

Required features: "android-media-tv-TvContentRating"

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

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

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

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

onSetSurface

Required features: "android-view-Surface"

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

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

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

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

onTune

Required features: "android-net-Uri"

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

onTune

Required features: "android-net-Uri", "android-os-Bundle"

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

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

onUnblockContent

Required features: "android-media-tv-TvContentRating"

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

onSelectTrack

Required features: "java-lang-String"

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

onAppPrivateCommand

Required features: "android-os-Bundle", "java-lang-String"

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

onCreateOverlayView

Required features: "android-view-View"

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

onTimeShiftPlay

Required features: "android-net-Uri"

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

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

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

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

onTimeShiftSetPlaybackParams

Required features: "android-media-PlaybackParams"

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

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

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

onKeyLongPress

Required features: "android-view-KeyEvent"

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

onKeyMultiple

Required features: "android-view-KeyEvent"

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

onKeyUp

Required features: "android-view-KeyEvent"

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

onGenericMotionEvent

Required features: "android-view-MotionEvent"

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 TvInputService_Session

impl AsRef<KeyEvent_Callback> for TvInputService_Session

impl AsValidJObjectAndEnv for TvInputService_Session

impl Deref for TvInputService_Session

type Target = Object

The resulting type after dereferencing.

impl JniType for TvInputService_Session

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.