[−]Struct jni_android_sys::android::media::session::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>>[src]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env Context>>,
arg1: impl Into<Option<&'env MediaSession_Token>>
) -> Result<Local<'env, MediaController>>
Required features: "android-content-Context", "android-media-session-MediaSession_Token"
pub fn get_transport_controls<'env>(
&'env self
) -> Result<Option<Local<'env, MediaController_TransportControls>>>[src]
&'env self
) -> Result<Option<Local<'env, MediaController_TransportControls>>>
Required features: "android-media-session-MediaController_TransportControls"
pub fn dispatch_media_button_event<'env>(
&'env self,
arg0: impl Into<Option<&'env KeyEvent>>
) -> Result<bool>[src]
&'env self,
arg0: impl Into<Option<&'env KeyEvent>>
) -> Result<bool>
Required features: "android-view-KeyEvent"
pub fn get_playback_state<'env>(
&'env self
) -> Result<Option<Local<'env, PlaybackState>>>[src]
&'env self
) -> Result<Option<Local<'env, PlaybackState>>>
Required features: "android-media-session-PlaybackState"
pub fn get_metadata<'env>(
&'env self
) -> Result<Option<Local<'env, MediaMetadata>>>[src]
&'env self
) -> Result<Option<Local<'env, MediaMetadata>>>
Required features: "android-media-MediaMetadata"
pub fn get_queue<'env>(&'env self) -> Result<Option<Local<'env, List>>>[src]
Required features: "java-util-List"
pub fn get_queue_title<'env>(
&'env self
) -> Result<Option<Local<'env, CharSequence>>>[src]
&'env self
) -> Result<Option<Local<'env, CharSequence>>>
Required features: "java-lang-CharSequence"
pub fn get_extras<'env>(&'env self) -> Result<Option<Local<'env, Bundle>>>[src]
Required features: "android-os-Bundle"
pub fn get_rating_type<'env>(&'env self) -> Result<i32>[src]
pub fn get_flags<'env>(&'env self) -> Result<i64>[src]
pub fn get_playback_info<'env>(
&'env self
) -> Result<Option<Local<'env, MediaController_PlaybackInfo>>>[src]
&'env self
) -> Result<Option<Local<'env, MediaController_PlaybackInfo>>>
Required features: "android-media-session-MediaController_PlaybackInfo"
pub fn get_session_activity<'env>(
&'env self
) -> Result<Option<Local<'env, PendingIntent>>>[src]
&'env self
) -> Result<Option<Local<'env, PendingIntent>>>
Required features: "android-app-PendingIntent"
pub fn get_session_token<'env>(
&'env self
) -> Result<Option<Local<'env, MediaSession_Token>>>[src]
&'env self
) -> Result<Option<Local<'env, MediaSession_Token>>>
Required features: "android-media-session-MediaSession_Token"
pub fn set_volume_to<'env>(&'env self, arg0: i32, arg1: i32) -> Result<()>[src]
pub fn adjust_volume<'env>(&'env self, arg0: i32, arg1: i32) -> Result<()>[src]
pub fn register_callback_callback<'env>(
&'env self,
arg0: impl Into<Option<&'env MediaController_Callback>>
) -> Result<()>[src]
&'env self,
arg0: impl Into<Option<&'env MediaController_Callback>>
) -> Result<()>
Required features: "android-media-session-MediaController_Callback"
pub fn register_callback_callback_handler<'env>(
&'env self,
arg0: impl Into<Option<&'env MediaController_Callback>>,
arg1: impl Into<Option<&'env Handler>>
) -> Result<()>[src]
&'env self,
arg0: impl Into<Option<&'env MediaController_Callback>>,
arg1: impl Into<Option<&'env Handler>>
) -> Result<()>
Required features: "android-media-session-MediaController_Callback", "android-os-Handler"
pub fn unregister_callback<'env>(
&'env self,
arg0: impl Into<Option<&'env MediaController_Callback>>
) -> Result<()>[src]
&'env self,
arg0: impl Into<Option<&'env MediaController_Callback>>
) -> Result<()>
Required features: "android-media-session-MediaController_Callback"
pub fn send_command<'env>(
&'env self,
arg0: impl Into<Option<&'env String>>,
arg1: impl Into<Option<&'env Bundle>>,
arg2: impl Into<Option<&'env ResultReceiver>>
) -> Result<()>[src]
&'env self,
arg0: impl Into<Option<&'env String>>,
arg1: impl Into<Option<&'env Bundle>>,
arg2: impl Into<Option<&'env ResultReceiver>>
) -> Result<()>
Required features: "android-os-Bundle", "android-os-ResultReceiver", "java-lang-String"
pub fn get_package_name<'env>(&'env self) -> Result<Option<Local<'env, String>>>[src]
Required features: "java-lang-String"
Methods from Deref<Target = Object>
pub fn get_class<'env>(&'env self) -> Result<Option<Local<'env, Class>>>[src]
Required features: "java-lang-Class"
pub fn hash_code<'env>(&'env self) -> Result<i32>[src]
pub fn equals<'env>(
&'env self,
arg0: impl Into<Option<&'env Object>>
) -> Result<bool>[src]
&'env self,
arg0: impl Into<Option<&'env Object>>
) -> Result<bool>
Required features: "java-lang-Object"
pub fn to_string<'env>(&'env self) -> Result<Option<Local<'env, String>>>[src]
Required features: "java-lang-String"
pub fn notify<'env>(&'env self) -> Result<()>[src]
pub fn notify_all<'env>(&'env self) -> Result<()>[src]
pub fn wait_long<'env>(&'env self, arg0: i64) -> Result<()>[src]
pub fn wait_long_int<'env>(&'env self, arg0: i64, arg1: i32) -> Result<()>[src]
pub fn wait<'env>(&'env self) -> Result<()>[src]
Trait Implementations
impl Deref for MediaController
impl AsValidJObjectAndEnv for MediaController
impl AsJValue for MediaController
Auto Trait Implementations
impl !Sync for MediaController
impl Unpin for MediaController
impl !Send for MediaController
impl UnwindSafe for MediaController
impl RefUnwindSafe for MediaController
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> From<T> for T[src]
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
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> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,