[]Struct jni_android_sys::android::location::LocationManager

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

public class LocationManager

Required feature: "android-location-LocationManager"

Methods

impl LocationManager

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

getAllProviders

Required features: "java-util-List"

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

getProviders

Required features: "java-util-List"

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

getProvider

Required features: "android-location-LocationProvider", "java-lang-String"

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

getProviders

Required features: "android-location-Criteria", "java-util-List"

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

getBestProvider

Required features: "android-location-Criteria", "java-lang-String"

pub fn requestLocationUpdates_String_long_float_LocationListener<'env>(
    &'env self,
    arg0: impl Into<Option<&'env String>>,
    arg1: i64,
    arg2: f32,
    arg3: impl Into<Option<&'env LocationListener>>
) -> Result<(), Local<'env, Throwable>>
[src]

requestLocationUpdates

Required features: "android-location-LocationListener", "java-lang-String"

pub fn requestLocationUpdates_String_long_float_LocationListener_Looper<'env>(
    &'env self,
    arg0: impl Into<Option<&'env String>>,
    arg1: i64,
    arg2: f32,
    arg3: impl Into<Option<&'env LocationListener>>,
    arg4: impl Into<Option<&'env Looper>>
) -> Result<(), Local<'env, Throwable>>
[src]

requestLocationUpdates

Required features: "android-location-LocationListener", "android-os-Looper", "java-lang-String"

pub fn requestLocationUpdates_long_float_Criteria_LocationListener_Looper<'env>(
    &'env self,
    arg0: i64,
    arg1: f32,
    arg2: impl Into<Option<&'env Criteria>>,
    arg3: impl Into<Option<&'env LocationListener>>,
    arg4: impl Into<Option<&'env Looper>>
) -> Result<(), Local<'env, Throwable>>
[src]

requestLocationUpdates

Required features: "android-location-Criteria", "android-location-LocationListener", "android-os-Looper"

pub fn requestLocationUpdates_String_long_float_PendingIntent<'env>(
    &'env self,
    arg0: impl Into<Option<&'env String>>,
    arg1: i64,
    arg2: f32,
    arg3: impl Into<Option<&'env PendingIntent>>
) -> Result<(), Local<'env, Throwable>>
[src]

requestLocationUpdates

Required features: "android-app-PendingIntent", "java-lang-String"

pub fn requestLocationUpdates_long_float_Criteria_PendingIntent<'env>(
    &'env self,
    arg0: i64,
    arg1: f32,
    arg2: impl Into<Option<&'env Criteria>>,
    arg3: impl Into<Option<&'env PendingIntent>>
) -> Result<(), Local<'env, Throwable>>
[src]

requestLocationUpdates

Required features: "android-app-PendingIntent", "android-location-Criteria"

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

requestSingleUpdate

Required features: "android-location-LocationListener", "android-os-Looper", "java-lang-String"

pub fn requestSingleUpdate_Criteria_LocationListener_Looper<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Criteria>>,
    arg1: impl Into<Option<&'env LocationListener>>,
    arg2: impl Into<Option<&'env Looper>>
) -> Result<(), Local<'env, Throwable>>
[src]

requestSingleUpdate

Required features: "android-location-Criteria", "android-location-LocationListener", "android-os-Looper"

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

requestSingleUpdate

Required features: "android-app-PendingIntent", "java-lang-String"

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

requestSingleUpdate

Required features: "android-app-PendingIntent", "android-location-Criteria"

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

removeUpdates

Required features: "android-location-LocationListener"

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

removeUpdates

Required features: "android-app-PendingIntent"

pub fn addProximityAlert<'env>(
    &'env self,
    arg0: f64,
    arg1: f64,
    arg2: f32,
    arg3: i64,
    arg4: impl Into<Option<&'env PendingIntent>>
) -> Result<(), Local<'env, Throwable>>
[src]

addProximityAlert

Required features: "android-app-PendingIntent"

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

removeProximityAlert

Required features: "android-app-PendingIntent"

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

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

isProviderEnabled

Required features: "java-lang-String"

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

getLastKnownLocation

Required features: "android-location-Location", "java-lang-String"

pub fn addTestProvider<'env>(
    &'env self,
    arg0: impl Into<Option<&'env String>>,
    arg1: bool,
    arg2: bool,
    arg3: bool,
    arg4: bool,
    arg5: bool,
    arg6: bool,
    arg7: bool,
    arg8: i32,
    arg9: i32
) -> Result<(), Local<'env, Throwable>>
[src]

addTestProvider

Required features: "java-lang-String"

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

removeTestProvider

Required features: "java-lang-String"

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

setTestProviderLocation

Required features: "android-location-Location", "java-lang-String"

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

clearTestProviderLocation

Required features: "java-lang-String"

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

setTestProviderEnabled

Required features: "java-lang-String"

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

clearTestProviderEnabled

Required features: "java-lang-String"

pub fn setTestProviderStatus<'env>(
    &'env self,
    arg0: impl Into<Option<&'env String>>,
    arg1: i32,
    arg2: impl Into<Option<&'env Bundle>>,
    arg3: i64
) -> Result<(), Local<'env, Throwable>>
[src]

setTestProviderStatus

Required features: "android-os-Bundle", "java-lang-String"

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

clearTestProviderStatus

Required features: "java-lang-String"

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

Deprecated

addGpsStatusListener

Required features: "android-location-GpsStatus_Listener"

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

Deprecated

removeGpsStatusListener

Required features: "android-location-GpsStatus_Listener"

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

registerGnssStatusCallback

Required features: "android-location-GnssStatus_Callback"

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

registerGnssStatusCallback

Required features: "android-location-GnssStatus_Callback", "android-os-Handler"

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

unregisterGnssStatusCallback

Required features: "android-location-GnssStatus_Callback"

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

Deprecated

addNmeaListener

Required features: "android-location-GpsStatus_NmeaListener"

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

Deprecated

removeNmeaListener

Required features: "android-location-GpsStatus_NmeaListener"

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

addNmeaListener

Required features: "android-location-OnNmeaMessageListener"

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

addNmeaListener

Required features: "android-location-OnNmeaMessageListener", "android-os-Handler"

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

removeNmeaListener

Required features: "android-location-OnNmeaMessageListener"

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

registerGnssMeasurementsCallback

Required features: "android-location-GnssMeasurementsEvent_Callback"

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

registerGnssMeasurementsCallback

Required features: "android-location-GnssMeasurementsEvent_Callback", "android-os-Handler"

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

unregisterGnssMeasurementsCallback

Required features: "android-location-GnssMeasurementsEvent_Callback"

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

registerGnssNavigationMessageCallback

Required features: "android-location-GnssNavigationMessage_Callback"

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

registerGnssNavigationMessageCallback

Required features: "android-location-GnssNavigationMessage_Callback", "android-os-Handler"

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

unregisterGnssNavigationMessageCallback

Required features: "android-location-GnssNavigationMessage_Callback"

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

Deprecated

getGpsStatus

Required features: "android-location-GpsStatus"

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

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

getGnssHardwareModelName

Required features: "java-lang-String"

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

sendExtraCommand

Required features: "android-os-Bundle", "java-lang-String"

pub const GPS_PROVIDER: &'static str[src]

public static final GPS_PROVIDER

pub const KEY_LOCATION_CHANGED: &'static str[src]

public static final KEY_LOCATION_CHANGED

pub const KEY_PROVIDER_ENABLED: &'static str[src]

public static final KEY_PROVIDER_ENABLED

pub const KEY_PROXIMITY_ENTERING: &'static str[src]

public static final KEY_PROXIMITY_ENTERING

pub const KEY_STATUS_CHANGED: &'static str[src]

public static final KEY_STATUS_CHANGED

pub const MODE_CHANGED_ACTION: &'static str[src]

public static final MODE_CHANGED_ACTION

pub const NETWORK_PROVIDER: &'static str[src]

public static final NETWORK_PROVIDER

pub const PASSIVE_PROVIDER: &'static str[src]

public static final PASSIVE_PROVIDER

pub const PROVIDERS_CHANGED_ACTION: &'static str[src]

public static final PROVIDERS_CHANGED_ACTION

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 LocationManager

impl AsValidJObjectAndEnv for LocationManager

impl Deref for LocationManager

type Target = Object

The resulting type after dereferencing.

impl JniType for LocationManager

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.