[]Struct jni_android_sys::android::location::Location

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

public class Location

Required feature: "android-location-Location"

Methods

impl Location

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

Location

Required features: "java-lang-String"

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

Location

Required features: "android-location-Location"

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

set

Required features: "android-location-Location"

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

pub fn convert_double_int<'env>(
    __jni_env: &'env Env,
    arg0: f64,
    arg1: i32
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
[src]

convert

Required features: "java-lang-String"

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

convert

Required features: "java-lang-String"

pub fn distanceBetween<'env>(
    __jni_env: &'env Env,
    arg0: f64,
    arg1: f64,
    arg2: f64,
    arg3: f64,
    arg4: impl Into<Option<&'env FloatArray>>
) -> Result<(), Local<'env, Throwable>>
[src]

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

distanceTo

Required features: "android-location-Location"

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

bearingTo

Required features: "android-location-Location"

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

getProvider

Required features: "java-lang-String"

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

setProvider

Required features: "java-lang-String"

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

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

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

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

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

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

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

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

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

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

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

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

Deprecated

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

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

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

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

Deprecated

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

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

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

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

Deprecated

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

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

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

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

Deprecated

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

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

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

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

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

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

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

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

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

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

getExtras

Required features: "android-os-Bundle"

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

setExtras

Required features: "android-os-Bundle"

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

toString

Required features: "java-lang-String"

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

dump

Required features: "android-util-Printer", "java-lang-String"

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 isFromMockProvider<'env>(
    &'env self
) -> Result<bool, Local<'env, Throwable>>
[src]

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

public static final FORMAT_DEGREES

pub const FORMAT_MINUTES: i32[src]

public static final FORMAT_MINUTES

pub const FORMAT_SECONDS: i32[src]

public static final FORMAT_SECONDS

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 Location

impl AsRef<Parcelable> for Location

impl AsValidJObjectAndEnv for Location

impl Deref for Location

type Target = Object

The resulting type after dereferencing.

impl JniType for Location

Auto Trait Implementations

impl RefUnwindSafe for Location

impl !Send for Location

impl !Sync for Location

impl Unpin for Location

impl UnwindSafe for Location

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.