[]Struct jni_android_sys::android::preference::PreferenceActivity

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

public class PreferenceActivity

Required feature: "android-preference-PreferenceActivity"

Methods

impl PreferenceActivity

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

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

onOptionsItemSelected

Required features: "android-view-MenuItem"

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

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

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

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

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

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

onGetInitialHeader

Required features: "android-preference-PreferenceActivity_Header"

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

onGetNewHeader

Required features: "android-preference-PreferenceActivity_Header"

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

onBuildHeaders

Required features: "java-util-List"

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

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

loadHeadersFromResource

Required features: "java-util-List"

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

setListFooter

Required features: "android-view-View"

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

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

onHeaderClick

Required features: "android-preference-PreferenceActivity_Header"

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

onBuildStartFragmentIntent

Required features: "android-content-Intent", "android-os-Bundle", "java-lang-String"

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

startWithFragment

Required features: "android-app-Fragment", "android-os-Bundle", "java-lang-String"

pub fn startWithFragment_String_Bundle_Fragment_int_int_int<'env>(
    &'env self,
    arg0: impl Into<Option<&'env String>>,
    arg1: impl Into<Option<&'env Bundle>>,
    arg2: impl Into<Option<&'env Fragment>>,
    arg3: i32,
    arg4: i32,
    arg5: i32
) -> Result<(), Local<'env, Throwable>>
[src]

startWithFragment

Required features: "android-app-Fragment", "android-os-Bundle", "java-lang-String"

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

showBreadCrumbs

Required features: "java-lang-CharSequence"

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

setParentTitle

Required features: "android-view-View_OnClickListener", "java-lang-CharSequence"

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

switchToHeader

Required features: "android-os-Bundle", "java-lang-String"

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

switchToHeader

Required features: "android-preference-PreferenceActivity_Header"

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

startPreferenceFragment

Required features: "android-app-Fragment"

pub fn startPreferencePanel<'env>(
    &'env self,
    arg0: impl Into<Option<&'env String>>,
    arg1: impl Into<Option<&'env Bundle>>,
    arg2: i32,
    arg3: impl Into<Option<&'env CharSequence>>,
    arg4: impl Into<Option<&'env Fragment>>,
    arg5: i32
) -> Result<(), Local<'env, Throwable>>
[src]

startPreferencePanel

Required features: "android-app-Fragment", "android-os-Bundle", "java-lang-CharSequence", "java-lang-String"

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

finishPreferencePanel

Required features: "android-app-Fragment", "android-content-Intent"

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

onPreferenceStartFragment

Required features: "android-preference-Preference", "android-preference-PreferenceFragment"

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

Deprecated

getPreferenceManager

Required features: "android-preference-PreferenceManager"

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

Deprecated

setPreferenceScreen

Required features: "android-preference-PreferenceScreen"

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

Deprecated

getPreferenceScreen

Required features: "android-preference-PreferenceScreen"

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

Deprecated

addPreferencesFromIntent

Required features: "android-content-Intent"

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

Deprecated

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

Deprecated

onPreferenceTreeClick

Required features: "android-preference-Preference", "android-preference-PreferenceScreen"

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

Deprecated

findPreference

Required features: "android-preference-Preference", "java-lang-CharSequence"

pub const EXTRA_NO_HEADERS: &'static str[src]

public static final EXTRA_NO_HEADERS

pub const EXTRA_SHOW_FRAGMENT: &'static str[src]

public static final EXTRA_SHOW_FRAGMENT

pub const EXTRA_SHOW_FRAGMENT_ARGUMENTS: &'static str[src]

public static final EXTRA_SHOW_FRAGMENT_ARGUMENTS

pub const EXTRA_SHOW_FRAGMENT_SHORT_TITLE: &'static str[src]

public static final EXTRA_SHOW_FRAGMENT_SHORT_TITLE

pub const EXTRA_SHOW_FRAGMENT_TITLE: &'static str[src]

public static final EXTRA_SHOW_FRAGMENT_TITLE

pub const HEADER_ID_UNDEFINED: i64[src]

public static final HEADER_ID_UNDEFINED

Methods from Deref<Target = ListActivity>

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

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

setListAdapter

Required features: "android-widget-ListAdapter"

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

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

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

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

getListView

Required features: "android-widget-ListView"

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

getListAdapter

Required features: "android-widget-ListAdapter"

Trait Implementations

impl AsJValue for PreferenceActivity

impl AsRef<PreferenceFragment_OnPreferenceStartFragmentCallback> for PreferenceActivity

impl AsValidJObjectAndEnv for PreferenceActivity

impl Deref for PreferenceActivity

type Target = ListActivity

The resulting type after dereferencing.

impl JniType for PreferenceActivity

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.