[]Struct jni_android_sys::android::media::MediaSync

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

public final class MediaSync

Required feature: "android-media-MediaSync"

Methods

impl MediaSync

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

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

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

setCallback

Required features: "android-media-MediaSync_Callback", "android-os-Handler"

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

setOnErrorListener

Required features: "android-media-MediaSync_OnErrorListener", "android-os-Handler"

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

setSurface

Required features: "android-view-Surface"

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

setAudioTrack

Required features: "android-media-AudioTrack"

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

createInputSurface

Required features: "android-view-Surface"

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

setPlaybackParams

Required features: "android-media-PlaybackParams"

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

getPlaybackParams

Required features: "android-media-PlaybackParams"

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

setSyncParams

Required features: "android-media-SyncParams"

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

getSyncParams

Required features: "android-media-SyncParams"

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

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

getTimestamp

Required features: "android-media-MediaTimestamp"

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

queueAudio

Required features: "java-nio-ByteBuffer"

pub const MEDIASYNC_ERROR_AUDIOTRACK_FAIL: i32[src]

public static final MEDIASYNC_ERROR_AUDIOTRACK_FAIL

pub const MEDIASYNC_ERROR_SURFACE_FAIL: i32[src]

public static final MEDIASYNC_ERROR_SURFACE_FAIL

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 MediaSync

impl AsValidJObjectAndEnv for MediaSync

impl Deref for MediaSync

type Target = Object

The resulting type after dereferencing.

impl JniType for MediaSync

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.