[]Struct jni_android_sys::android::media::session::MediaController

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

public final class MediaController

Required feature: "android-media-session-MediaController"

Methods

impl MediaController

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

MediaController

Required features: "android-content-Context", "android-media-session-MediaSession_Token"

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

getTransportControls

Required features: "android-media-session-MediaController_TransportControls"

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

dispatchMediaButtonEvent

Required features: "android-view-KeyEvent"

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

getPlaybackState

Required features: "android-media-session-PlaybackState"

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

getMetadata

Required features: "android-media-MediaMetadata"

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

getQueue

Required features: "java-util-List"

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

getQueueTitle

Required features: "java-lang-CharSequence"

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

getExtras

Required features: "android-os-Bundle"

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

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

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

getPlaybackInfo

Required features: "android-media-session-MediaController_PlaybackInfo"

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

getSessionActivity

Required features: "android-app-PendingIntent"

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

getSessionToken

Required features: "android-media-session-MediaSession_Token"

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

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

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

registerCallback

Required features: "android-media-session-MediaController_Callback"

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

registerCallback

Required features: "android-media-session-MediaController_Callback", "android-os-Handler"

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

unregisterCallback

Required features: "android-media-session-MediaController_Callback"

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

sendCommand

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

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

getPackageName

Required features: "java-lang-String"

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 MediaController

impl AsValidJObjectAndEnv for MediaController

impl Deref for MediaController

type Target = Object

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.