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

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

public final class PlaybackState

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

Methods

impl PlaybackState

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

toString

Required features: "java-lang-String"

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

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

writeToParcel

Required features: "android-os-Parcel"

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

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

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

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

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

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

getCustomActions

Required features: "java-util-List"

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

getErrorMessage

Required features: "java-lang-CharSequence"

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

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

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

getExtras

Required features: "android-os-Bundle"

pub const ACTION_FAST_FORWARD: i64[src]

public static final ACTION_FAST_FORWARD

pub const ACTION_PAUSE: i64[src]

public static final ACTION_PAUSE

pub const ACTION_PLAY: i64[src]

public static final ACTION_PLAY

pub const ACTION_PLAY_FROM_MEDIA_ID: i64[src]

public static final ACTION_PLAY_FROM_MEDIA_ID

public static final ACTION_PLAY_FROM_SEARCH

pub const ACTION_PLAY_FROM_URI: i64[src]

public static final ACTION_PLAY_FROM_URI

pub const ACTION_PLAY_PAUSE: i64[src]

public static final ACTION_PLAY_PAUSE

pub const ACTION_PREPARE: i64[src]

public static final ACTION_PREPARE

pub const ACTION_PREPARE_FROM_MEDIA_ID: i64[src]

public static final ACTION_PREPARE_FROM_MEDIA_ID

public static final ACTION_PREPARE_FROM_SEARCH

pub const ACTION_PREPARE_FROM_URI: i64[src]

public static final ACTION_PREPARE_FROM_URI

pub const ACTION_REWIND: i64[src]

public static final ACTION_REWIND

pub const ACTION_SEEK_TO: i64[src]

public static final ACTION_SEEK_TO

pub const ACTION_SET_RATING: i64[src]

public static final ACTION_SET_RATING

pub const ACTION_SKIP_TO_NEXT: i64[src]

public static final ACTION_SKIP_TO_NEXT

pub const ACTION_SKIP_TO_PREVIOUS: i64[src]

public static final ACTION_SKIP_TO_PREVIOUS

pub const ACTION_SKIP_TO_QUEUE_ITEM: i64[src]

public static final ACTION_SKIP_TO_QUEUE_ITEM

pub const ACTION_STOP: i64[src]

public static final ACTION_STOP

pub fn CREATOR<'env>(env: &'env Env) -> Option<Local<'env, Parcelable_Creator>>[src]

get public static final CREATOR

Required feature: "android-os-Parcelable_Creator"

pub const PLAYBACK_POSITION_UNKNOWN: i64[src]

public static final PLAYBACK_POSITION_UNKNOWN

pub const STATE_BUFFERING: i32[src]

public static final STATE_BUFFERING

pub const STATE_CONNECTING: i32[src]

public static final STATE_CONNECTING

pub const STATE_ERROR: i32[src]

public static final STATE_ERROR

pub const STATE_FAST_FORWARDING: i32[src]

public static final STATE_FAST_FORWARDING

pub const STATE_NONE: i32[src]

public static final STATE_NONE

pub const STATE_PAUSED: i32[src]

public static final STATE_PAUSED

pub const STATE_PLAYING: i32[src]

public static final STATE_PLAYING

pub const STATE_REWINDING: i32[src]

public static final STATE_REWINDING

pub const STATE_SKIPPING_TO_NEXT: i32[src]

public static final STATE_SKIPPING_TO_NEXT

pub const STATE_SKIPPING_TO_PREVIOUS: i32[src]

public static final STATE_SKIPPING_TO_PREVIOUS

pub const STATE_SKIPPING_TO_QUEUE_ITEM: i32[src]

public static final STATE_SKIPPING_TO_QUEUE_ITEM

pub const STATE_STOPPED: i32[src]

public static final STATE_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 PlaybackState

impl AsRef<Parcelable> for PlaybackState

impl AsValidJObjectAndEnv for PlaybackState

impl Deref for PlaybackState

type Target = Object

The resulting type after dereferencing.

impl JniType for PlaybackState

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.