[]Struct jni_android_sys::android::text::style::SuggestionSpan

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

public class SuggestionSpan

Required feature: "android-text-style-SuggestionSpan"

Methods

impl SuggestionSpan

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

SuggestionSpan

Required features: "android-content-Context", "java-lang-String"

pub fn new_Locale_String_array_int<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env Locale>>,
    arg1: impl Into<Option<&'env ObjectArray<String, Throwable>>>,
    arg2: i32
) -> Result<Local<'env, SuggestionSpan>, Local<'env, Throwable>>
[src]

SuggestionSpan

Required features: "java-lang-String", "java-util-Locale"

pub fn new_Context_Locale_String_array_int_Class<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env Context>>,
    arg1: impl Into<Option<&'env Locale>>,
    arg2: impl Into<Option<&'env ObjectArray<String, Throwable>>>,
    arg3: i32,
    arg4: impl Into<Option<&'env Class>>
) -> Result<Local<'env, SuggestionSpan>, Local<'env, Throwable>>
[src]

SuggestionSpan

Required features: "android-content-Context", "java-lang-Class", "java-lang-String", "java-util-Locale"

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

SuggestionSpan

Required features: "android-os-Parcel"

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

getSuggestions

Required features: "java-lang-String"

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

Deprecated

getLocale

Required features: "java-lang-String"

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

getLocaleObject

Required features: "java-util-Locale"

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

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

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

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

writeToParcel

Required features: "android-os-Parcel"

pub fn getSpanTypeId<'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 hashCode<'env>(&'env self) -> Result<i32, Local<'env, Throwable>>[src]

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

updateDrawState

Required features: "android-text-TextPaint"

pub const ACTION_SUGGESTION_PICKED: &'static str[src]

public static final ACTION_SUGGESTION_PICKED

pub fn CREATOR<'env>(env: &'env Env) -> Option<Local<'env, Parcelable_Creator>>[src]

get public static final CREATOR

Required feature: "android-os-Parcelable_Creator"

pub const FLAG_AUTO_CORRECTION: i32[src]

public static final FLAG_AUTO_CORRECTION

pub const FLAG_EASY_CORRECT: i32[src]

public static final FLAG_EASY_CORRECT

pub const FLAG_MISSPELLED: i32[src]

public static final FLAG_MISSPELLED

pub const SUGGESTIONS_MAX_SIZE: i32[src]

public static final SUGGESTIONS_MAX_SIZE

pub const SUGGESTION_SPAN_PICKED_AFTER: &'static str[src]

public static final SUGGESTION_SPAN_PICKED_AFTER

pub const SUGGESTION_SPAN_PICKED_BEFORE: &'static str[src]

public static final SUGGESTION_SPAN_PICKED_BEFORE

pub const SUGGESTION_SPAN_PICKED_HASHCODE: &'static str[src]

public static final SUGGESTION_SPAN_PICKED_HASHCODE

Methods from Deref<Target = CharacterStyle>

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

updateDrawState

Required features: "android-text-TextPaint"

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

getUnderlying

Required features: "android-text-style-CharacterStyle"

Trait Implementations

impl AsJValue for SuggestionSpan

impl AsRef<ParcelableSpan> for SuggestionSpan

impl AsValidJObjectAndEnv for SuggestionSpan

impl Deref for SuggestionSpan

type Target = CharacterStyle

The resulting type after dereferencing.

impl JniType for SuggestionSpan

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.