[]Struct jni_android_sys::android::media::RemoteControlClient

#[repr(transparent)]
pub struct RemoteControlClient(_);
Deprecated

public class RemoteControlClient

Required feature: "android-media-RemoteControlClient"

Methods

impl RemoteControlClient

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

RemoteControlClient

Required features: "android-app-PendingIntent"

pub fn new_PendingIntent_Looper<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env PendingIntent>>,
    arg1: impl Into<Option<&'env Looper>>
) -> Result<Local<'env, RemoteControlClient>, Local<'env, Throwable>>
[src]

RemoteControlClient

Required features: "android-app-PendingIntent", "android-os-Looper"

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

getMediaSession

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

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

editMetadata

Required features: "android-media-RemoteControlClient_MetadataEditor"

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

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

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

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

setMetadataUpdateListener

Required features: "android-media-RemoteControlClient_OnMetadataUpdateListener"

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

setPlaybackPositionUpdateListener

Required features: "android-media-RemoteControlClient_OnPlaybackPositionUpdateListener"

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

setOnGetPlaybackPositionListener

Required features: "android-media-RemoteControlClient_OnGetPlaybackPositionListener"

pub const FLAG_KEY_MEDIA_FAST_FORWARD: i32[src]

public static final FLAG_KEY_MEDIA_FAST_FORWARD

pub const FLAG_KEY_MEDIA_NEXT: i32[src]

public static final FLAG_KEY_MEDIA_NEXT

pub const FLAG_KEY_MEDIA_PAUSE: i32[src]

public static final FLAG_KEY_MEDIA_PAUSE

pub const FLAG_KEY_MEDIA_PLAY: i32[src]

public static final FLAG_KEY_MEDIA_PLAY

pub const FLAG_KEY_MEDIA_PLAY_PAUSE: i32[src]

public static final FLAG_KEY_MEDIA_PLAY_PAUSE

pub const FLAG_KEY_MEDIA_POSITION_UPDATE: i32[src]

public static final FLAG_KEY_MEDIA_POSITION_UPDATE

pub const FLAG_KEY_MEDIA_PREVIOUS: i32[src]

public static final FLAG_KEY_MEDIA_PREVIOUS

pub const FLAG_KEY_MEDIA_RATING: i32[src]

public static final FLAG_KEY_MEDIA_RATING

pub const FLAG_KEY_MEDIA_REWIND: i32[src]

public static final FLAG_KEY_MEDIA_REWIND

pub const FLAG_KEY_MEDIA_STOP: i32[src]

public static final FLAG_KEY_MEDIA_STOP

pub const PLAYSTATE_BUFFERING: i32[src]

public static final PLAYSTATE_BUFFERING

pub const PLAYSTATE_ERROR: i32[src]

public static final PLAYSTATE_ERROR

pub const PLAYSTATE_FAST_FORWARDING: i32[src]

public static final PLAYSTATE_FAST_FORWARDING

pub const PLAYSTATE_PAUSED: i32[src]

public static final PLAYSTATE_PAUSED

pub const PLAYSTATE_PLAYING: i32[src]

public static final PLAYSTATE_PLAYING

pub const PLAYSTATE_REWINDING: i32[src]

public static final PLAYSTATE_REWINDING

pub const PLAYSTATE_SKIPPING_BACKWARDS: i32[src]

public static final PLAYSTATE_SKIPPING_BACKWARDS

pub const PLAYSTATE_SKIPPING_FORWARDS: i32[src]

public static final PLAYSTATE_SKIPPING_FORWARDS

pub const PLAYSTATE_STOPPED: i32[src]

public static final PLAYSTATE_STOPPED

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 RemoteControlClient

impl AsValidJObjectAndEnv for RemoteControlClient

impl Deref for RemoteControlClient

type Target = Object

The resulting type after dereferencing.

impl JniType for RemoteControlClient

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.