[]Struct jni_android_sys::android::location::Criteria

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

public class Criteria

Required feature: "android-location-Criteria"

Methods

impl Criteria

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

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

Criteria

Required features: "android-location-Criteria"

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pub fn isBearingRequired<'env>(
    &'env self
) -> Result<bool, 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 toString<'env>(
    &'env self
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
[src]

toString

Required features: "java-lang-String"

pub const ACCURACY_COARSE: i32[src]

public static final ACCURACY_COARSE

pub const ACCURACY_FINE: i32[src]

public static final ACCURACY_FINE

pub const ACCURACY_HIGH: i32[src]

public static final ACCURACY_HIGH

pub const ACCURACY_LOW: i32[src]

public static final ACCURACY_LOW

pub const ACCURACY_MEDIUM: i32[src]

public static final ACCURACY_MEDIUM

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 NO_REQUIREMENT: i32[src]

public static final NO_REQUIREMENT

pub const POWER_HIGH: i32[src]

public static final POWER_HIGH

pub const POWER_LOW: i32[src]

public static final POWER_LOW

pub const POWER_MEDIUM: i32[src]

public static final POWER_MEDIUM

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 Criteria

impl AsRef<Parcelable> for Criteria

impl AsValidJObjectAndEnv for Criteria

impl Deref for Criteria

type Target = Object

The resulting type after dereferencing.

impl JniType for Criteria

Auto Trait Implementations

impl RefUnwindSafe for Criteria

impl !Send for Criteria

impl !Sync for Criteria

impl Unpin for Criteria

impl UnwindSafe for Criteria

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.