[]Struct jni_android_sys::android::preference::DialogPreference

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

public class DialogPreference

Required feature: "android-preference-DialogPreference"

Methods

impl DialogPreference

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

DialogPreference

Required features: "android-content-Context", "android-util-AttributeSet"

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

DialogPreference

Required features: "android-content-Context", "android-util-AttributeSet"

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

DialogPreference

Required features: "android-content-Context", "android-util-AttributeSet"

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

DialogPreference

Required features: "android-content-Context"

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

setDialogTitle

Required features: "java-lang-CharSequence"

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

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

getDialogTitle

Required features: "java-lang-CharSequence"

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

setDialogMessage

Required features: "java-lang-CharSequence"

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

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

getDialogMessage

Required features: "java-lang-CharSequence"

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

setDialogIcon

Required features: "android-graphics-drawable-Drawable"

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

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

getDialogIcon

Required features: "android-graphics-drawable-Drawable"

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

setPositiveButtonText

Required features: "java-lang-CharSequence"

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

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

getPositiveButtonText

Required features: "java-lang-CharSequence"

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

setNegativeButtonText

Required features: "java-lang-CharSequence"

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

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

getNegativeButtonText

Required features: "java-lang-CharSequence"

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

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

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

onClick

Required features: "android-content-DialogInterface"

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

onDismiss

Required features: "android-content-DialogInterface"

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

getDialog

Required features: "android-app-Dialog"

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

Methods from Deref<Target = Preference>

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

setIntent

Required features: "android-content-Intent"

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

getIntent

Required features: "android-content-Intent"

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

setFragment

Required features: "java-lang-String"

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

getFragment

Required features: "java-lang-String"

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

setPreferenceDataStore

Required features: "android-preference-PreferenceDataStore"

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

getPreferenceDataStore

Required features: "android-preference-PreferenceDataStore"

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

getExtras

Required features: "android-os-Bundle"

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

peekExtras

Required features: "android-os-Bundle"

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

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

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

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

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

getView

Required features: "android-view-View", "android-view-ViewGroup"

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

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

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

setTitle

Required features: "java-lang-CharSequence"

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

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

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

getTitle

Required features: "java-lang-CharSequence"

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

setIcon

Required features: "android-graphics-drawable-Drawable"

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

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

getIcon

Required features: "android-graphics-drawable-Drawable"

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

getSummary

Required features: "java-lang-CharSequence"

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

setSummary

Required features: "java-lang-CharSequence"

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

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

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

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

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

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

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

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

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

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

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

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

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

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

setKey

Required features: "java-lang-String"

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

getKey

Required features: "java-lang-String"

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

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

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

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

setOnPreferenceChangeListener

Required features: "android-preference-Preference_OnPreferenceChangeListener"

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

getOnPreferenceChangeListener

Required features: "android-preference-Preference_OnPreferenceChangeListener"

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

setOnPreferenceClickListener

Required features: "android-preference-Preference_OnPreferenceClickListener"

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

getOnPreferenceClickListener

Required features: "android-preference-Preference_OnPreferenceClickListener"

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

getContext

Required features: "android-content-Context"

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

getSharedPreferences

Required features: "android-content-SharedPreferences"

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

getEditor

Required features: "android-content-SharedPreferences_Editor"

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

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

compareTo

Required features: "android-preference-Preference"

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

getPreferenceManager

Required features: "android-preference-PreferenceManager"

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

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

onDependencyChanged

Required features: "android-preference-Preference"

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

onParentChanged

Required features: "android-preference-Preference"

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

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

setDependency

Required features: "java-lang-String"

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

getDependency

Required features: "java-lang-String"

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

getParent

Required features: "android-preference-PreferenceGroup"

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

setDefaultValue

Required features: "java-lang-Object"

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

persistStringSet

Required features: "java-util-Set"

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

getPersistedStringSet

Required features: "java-util-Set"

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

toString

Required features: "java-lang-String"

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

saveHierarchyState

Required features: "android-os-Bundle"

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

restoreHierarchyState

Required features: "android-os-Bundle"

pub const DEFAULT_ORDER: i32[src]

Trait Implementations

impl AsJValue for DialogPreference

impl AsRef<DialogInterface_OnClickListener> for DialogPreference

impl AsRef<DialogInterface_OnDismissListener> for DialogPreference

impl AsRef<PreferenceManager_OnActivityDestroyListener> for DialogPreference

impl AsValidJObjectAndEnv for DialogPreference

impl Deref for DialogPreference

type Target = Preference

The resulting type after dereferencing.

impl JniType for DialogPreference

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.