[]Struct jni_android_sys::android::media::RingtoneManager

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

public class RingtoneManager

Required feature: "android-media-RingtoneManager"

Methods

impl RingtoneManager

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

RingtoneManager

Required features: "android-app-Activity"

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

RingtoneManager

Required features: "android-content-Context"

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

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

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

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

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

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

Deprecated

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

Deprecated

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

getCursor

Required features: "android-database-Cursor"

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

getRingtone

Required features: "android-media-Ringtone"

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

getRingtoneUri

Required features: "android-net-Uri"

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

getRingtonePosition

Required features: "android-net-Uri"

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

getValidRingtoneUri

Required features: "android-content-Context", "android-net-Uri"

pub fn getRingtone_Context_Uri<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env Context>>,
    arg1: impl Into<Option<&'env Uri>>
) -> Result<Option<Local<'env, Ringtone>>, Local<'env, Throwable>>
[src]

getRingtone

Required features: "android-content-Context", "android-media-Ringtone", "android-net-Uri"

pub fn getActualDefaultRingtoneUri<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env Context>>,
    arg1: i32
) -> Result<Option<Local<'env, Uri>>, Local<'env, Throwable>>
[src]

getActualDefaultRingtoneUri

Required features: "android-content-Context", "android-net-Uri"

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

setActualDefaultRingtoneUri

Required features: "android-content-Context", "android-net-Uri"

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

isDefault

Required features: "android-net-Uri"

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

getDefaultType

Required features: "android-net-Uri"

pub fn getDefaultUri<'env>(
    __jni_env: &'env Env,
    arg0: i32
) -> Result<Option<Local<'env, Uri>>, Local<'env, Throwable>>
[src]

getDefaultUri

Required features: "android-net-Uri"

pub const ACTION_RINGTONE_PICKER: &'static str[src]

public static final ACTION_RINGTONE_PICKER

pub const EXTRA_RINGTONE_DEFAULT_URI: &'static str[src]

public static final EXTRA_RINGTONE_DEFAULT_URI

pub const EXTRA_RINGTONE_EXISTING_URI: &'static str[src]

public static final EXTRA_RINGTONE_EXISTING_URI

pub const EXTRA_RINGTONE_INCLUDE_DRM: &'static str[src]

Deprecated

public static final EXTRA_RINGTONE_INCLUDE_DRM

pub const EXTRA_RINGTONE_PICKED_URI: &'static str[src]

public static final EXTRA_RINGTONE_PICKED_URI

pub const EXTRA_RINGTONE_SHOW_DEFAULT: &'static str[src]

public static final EXTRA_RINGTONE_SHOW_DEFAULT

pub const EXTRA_RINGTONE_SHOW_SILENT: &'static str[src]

public static final EXTRA_RINGTONE_SHOW_SILENT

pub const EXTRA_RINGTONE_TITLE: &'static str[src]

public static final EXTRA_RINGTONE_TITLE

pub const EXTRA_RINGTONE_TYPE: &'static str[src]

public static final EXTRA_RINGTONE_TYPE

pub const ID_COLUMN_INDEX: i32[src]

public static final ID_COLUMN_INDEX

pub const TITLE_COLUMN_INDEX: i32[src]

public static final TITLE_COLUMN_INDEX

pub const TYPE_ALARM: i32[src]

public static final TYPE_ALARM

pub const TYPE_ALL: i32[src]

public static final TYPE_ALL

pub const TYPE_NOTIFICATION: i32[src]

public static final TYPE_NOTIFICATION

pub const TYPE_RINGTONE: i32[src]

public static final TYPE_RINGTONE

pub const URI_COLUMN_INDEX: i32[src]

public static final URI_COLUMN_INDEX

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 RingtoneManager

impl AsValidJObjectAndEnv for RingtoneManager

impl Deref for RingtoneManager

type Target = Object

The resulting type after dereferencing.

impl JniType for RingtoneManager

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.