Langue

GeofenceHardwareMonitorCallback.OnMonitoringSystemChange Méthode

Définition

Rappel appelé lorsque l’état d’un système de surveillance change.

[Android.Runtime.Register("onMonitoringSystemChange", "(IZLandroid/location/Location;)V", "GetOnMonitoringSystemChange_IZLandroid_location_Location_Handler")]
public virtual void OnMonitoringSystemChange(Android.Hardware.Location.GeofenceMonitoringType monitoringType, bool available, Android.Locations.Location? location);
[<Android.Runtime.Register("onMonitoringSystemChange", "(IZLandroid/location/Location;)V", "GetOnMonitoringSystemChange_IZLandroid_location_Location_Handler")>]
abstract member OnMonitoringSystemChange : Android.Hardware.Location.GeofenceMonitoringType * bool * Android.Locations.Location -> unit
override this.OnMonitoringSystemChange : Android.Hardware.Location.GeofenceMonitoringType * bool * Android.Locations.Location -> unit

Paramètres

monitoringType
GeofenceMonitoringType

Type du système de surveillance.

available
Boolean

Indique si le système est actuellement disponible ou non.

location
Location

Dernier emplacement connu en fonction du système de surveillance.

Attributs

Remarques

Rappel appelé lorsque l’état d’un système de surveillance change. GeofenceHardware#MONITORING_TYPE_GPS_HARDWARE est un exemple de système de surveillance.

Ce membre est déconseillé. utilisez #onMonitoringSystemChange(GeofenceHardwareMonitorEvent) à la place. REMARQUE : cette API reste à appeler sur l’API Android 21 et versions ultérieures pour la compatibilité descendante. Toutefois, les clients doivent cesser de l’implémenter lors de la mise à jour de leur code.

Java documentation pour android.hardware.location.GeofenceHardwareMonitorCallback.onMonitoringSystemChange(int, boolean, android.location.Location).

Les parties de cette page sont des modifications basées sur le travail créé et partagé par Android Open Source et utilisées en fonction des termes décrits dans la Creative Commons 2.5 Attribution License.

S’applique à