[]Struct jni_android_sys::android::media::SoundPool

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

public class SoundPool

Required feature: "android-media-SoundPool"

Methods

impl SoundPool

pub fn new<'env>(
    __jni_env: &'env Env,
    arg0: i32,
    arg1: i32,
    arg2: i32
) -> Result<Local<'env, SoundPool>, Local<'env, Throwable>>
[src]

Deprecated

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

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

load

Required features: "java-lang-String"

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

load

Required features: "android-content-Context"

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

load

Required features: "android-content-res-AssetFileDescriptor"

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

load

Required features: "java-io-FileDescriptor"

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

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

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

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

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

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

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

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

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

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

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

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

setOnLoadCompleteListener

Required features: "android-media-SoundPool_OnLoadCompleteListener"

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 SoundPool

impl AsValidJObjectAndEnv for SoundPool

impl Deref for SoundPool

type Target = Object

The resulting type after dereferencing.

impl JniType for SoundPool

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.