[]Struct jni_android_sys::android::preference::PreferenceCategory

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

public class PreferenceCategory

Required feature: "android-preference-PreferenceCategory"

Methods

impl PreferenceCategory

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, PreferenceCategory>, Local<'env, Throwable>>
[src]

PreferenceCategory

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, PreferenceCategory>, Local<'env, Throwable>>
[src]

PreferenceCategory

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, PreferenceCategory>, Local<'env, Throwable>>
[src]

PreferenceCategory

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, PreferenceCategory>, Local<'env, Throwable>>
[src]

PreferenceCategory

Required features: "android-content-Context"

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

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

Methods from Deref<Target = PreferenceGroup>

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

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

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

addItemFromInflater

Required features: "android-preference-Preference"

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

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

getPreference

Required features: "android-preference-Preference"

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

addPreference

Required features: "android-preference-Preference"

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

removePreference

Required features: "android-preference-Preference"

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

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

findPreference

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

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

Trait Implementations

impl AsJValue for PreferenceCategory

impl AsValidJObjectAndEnv for PreferenceCategory

impl Deref for PreferenceCategory

type Target = PreferenceGroup

The resulting type after dereferencing.

impl JniType for PreferenceCategory

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.