[−]Struct jni_android_sys::android::location::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]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env String>>
) -> Result<Local<'env, Location>, Local<'env, Throwable>>
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]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env Location>>
) -> Result<Local<'env, Location>, Local<'env, Throwable>>
Required features: "android-location-Location"
pub fn set<'env>(
&'env self,
arg0: impl Into<Option<&'env Location>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env Location>>
) -> Result<(), Local<'env, Throwable>>
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]
__jni_env: &'env Env,
arg0: f64,
arg1: i32
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
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]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env String>>
) -> Result<f64, Local<'env, Throwable>>
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]
__jni_env: &'env Env,
arg0: f64,
arg1: f64,
arg2: f64,
arg3: f64,
arg4: impl Into<Option<&'env FloatArray>>
) -> Result<(), Local<'env, Throwable>>
pub fn distanceTo<'env>(
&'env self,
arg0: impl Into<Option<&'env Location>>
) -> Result<f32, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env Location>>
) -> Result<f32, Local<'env, Throwable>>
Required features: "android-location-Location"
pub fn bearingTo<'env>(
&'env self,
arg0: impl Into<Option<&'env Location>>
) -> Result<f32, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env Location>>
) -> Result<f32, Local<'env, Throwable>>
Required features: "android-location-Location"
pub fn getProvider<'env>(
&'env self
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
Required features: "java-lang-String"
pub fn setProvider<'env>(
&'env self,
arg0: impl Into<Option<&'env String>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env String>>
) -> Result<(), Local<'env, Throwable>>
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]
&'env self,
arg0: i64
) -> Result<(), Local<'env, Throwable>>
pub fn getElapsedRealtimeNanos<'env>(
&'env self
) -> Result<i64, Local<'env, Throwable>>
[src]
&'env self
) -> Result<i64, Local<'env, Throwable>>
pub fn setElapsedRealtimeNanos<'env>(
&'env self,
arg0: i64
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: i64
) -> Result<(), Local<'env, Throwable>>
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]
&'env self,
arg0: f64
) -> Result<(), Local<'env, Throwable>>
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]
&'env self,
arg0: f64
) -> Result<(), Local<'env, Throwable>>
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]
&'env self,
arg0: f64
) -> Result<(), Local<'env, Throwable>>
pub fn removeAltitude<'env>(&'env self) -> Result<(), Local<'env, Throwable>>
[src]
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]
&'env self,
arg0: f32
) -> Result<(), Local<'env, Throwable>>
pub fn removeSpeed<'env>(&'env self) -> Result<(), Local<'env, Throwable>>
[src]
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]
&'env self,
arg0: f32
) -> Result<(), Local<'env, Throwable>>
pub fn removeBearing<'env>(&'env self) -> Result<(), Local<'env, Throwable>>
[src]
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]
&'env self,
arg0: f32
) -> Result<(), Local<'env, Throwable>>
pub fn removeAccuracy<'env>(&'env self) -> Result<(), Local<'env, Throwable>>
[src]
pub fn hasVerticalAccuracy<'env>(
&'env self
) -> Result<bool, Local<'env, Throwable>>
[src]
&'env self
) -> Result<bool, Local<'env, Throwable>>
pub fn getVerticalAccuracyMeters<'env>(
&'env self
) -> Result<f32, Local<'env, Throwable>>
[src]
&'env self
) -> Result<f32, Local<'env, Throwable>>
pub fn setVerticalAccuracyMeters<'env>(
&'env self,
arg0: f32
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: f32
) -> Result<(), Local<'env, Throwable>>
pub fn hasSpeedAccuracy<'env>(
&'env self
) -> Result<bool, Local<'env, Throwable>>
[src]
&'env self
) -> Result<bool, Local<'env, Throwable>>
pub fn getSpeedAccuracyMetersPerSecond<'env>(
&'env self
) -> Result<f32, Local<'env, Throwable>>
[src]
&'env self
) -> Result<f32, Local<'env, Throwable>>
pub fn setSpeedAccuracyMetersPerSecond<'env>(
&'env self,
arg0: f32
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: f32
) -> Result<(), Local<'env, Throwable>>
pub fn hasBearingAccuracy<'env>(
&'env self
) -> Result<bool, Local<'env, Throwable>>
[src]
&'env self
) -> Result<bool, Local<'env, Throwable>>
pub fn getBearingAccuracyDegrees<'env>(
&'env self
) -> Result<f32, Local<'env, Throwable>>
[src]
&'env self
) -> Result<f32, Local<'env, Throwable>>
pub fn setBearingAccuracyDegrees<'env>(
&'env self,
arg0: f32
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: f32
) -> Result<(), Local<'env, Throwable>>
pub fn getExtras<'env>(
&'env self
) -> Result<Option<Local<'env, Bundle>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, Bundle>>, Local<'env, Throwable>>
Required features: "android-os-Bundle"
pub fn setExtras<'env>(
&'env self,
arg0: impl Into<Option<&'env Bundle>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env Bundle>>
) -> Result<(), Local<'env, Throwable>>
Required features: "android-os-Bundle"
pub fn toString<'env>(
&'env self
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
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]
&'env self,
arg0: impl Into<Option<&'env Printer>>,
arg1: impl Into<Option<&'env String>>
) -> Result<(), Local<'env, Throwable>>
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]
&'env self,
arg0: impl Into<Option<&'env Parcel>>,
arg1: i32
) -> Result<(), Local<'env, Throwable>>
Required features: "android-os-Parcel"
pub fn isFromMockProvider<'env>(
&'env self
) -> Result<bool, Local<'env, Throwable>>
[src]
&'env self
) -> Result<bool, Local<'env, Throwable>>
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]
&'env self
) -> Result<Option<Local<'env, Class>>, Local<'env, Throwable>>
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]
&'env self,
arg0: impl Into<Option<&'env Object>>
) -> Result<bool, Local<'env, Throwable>>
Required features: "java-lang-Object"
pub fn toString<'env>(
&'env self
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
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]
&'env self,
arg0: i64
) -> Result<(), Local<'env, Throwable>>
pub fn wait_long_int<'env>(
&'env self,
arg0: i64,
arg1: i32
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: i64,
arg1: i32
) -> Result<(), Local<'env, Throwable>>
pub fn wait<'env>(&'env self) -> Result<(), Local<'env, Throwable>>
[src]
Trait Implementations
impl AsJValue for Location
impl AsRef<Parcelable> for Location
fn as_ref(&self) -> &Parcelable
impl AsValidJObjectAndEnv for Location
impl Deref for Location
impl JniType for Location
fn static_with_jni_type<R>(callback: impl FnOnce(&str) -> R) -> R
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,