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

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

public final class PlaybackState.Builder

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

Methods

impl PlaybackState_Builder

pub fn new<'env>(
    __jni_env: &'env Env
) -> Result<Local<'env, PlaybackState_Builder>, Local<'env, Throwable>>
[src]

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

Builder

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

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

setState

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

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

setState

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

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

setActions

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

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

addCustomAction

Required features: "android-media-session-PlaybackState_Builder", "java-lang-String"

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

addCustomAction

Required features: "android-media-session-PlaybackState_Builder", "android-media-session-PlaybackState_CustomAction"

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

setBufferedPosition

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

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

setActiveQueueItemId

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

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

setErrorMessage

Required features: "android-media-session-PlaybackState_Builder", "java-lang-CharSequence"

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

setExtras

Required features: "android-media-session-PlaybackState_Builder", "android-os-Bundle"

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

build

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

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_Builder

impl AsValidJObjectAndEnv for PlaybackState_Builder

impl Deref for PlaybackState_Builder

type Target = Object

The resulting type after dereferencing.

impl JniType for PlaybackState_Builder

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.