A partir del 27 de marzo de 2025, te recomendamos que uses android-latest-release
en lugar de aosp-main
para compilar y contribuir a AOSP. Para obtener más información, consulta Cambios en AOSP.
Organiza tus páginas con colecciones
Guarda y categoriza el contenido según tus preferencias.
Referencia de la estructura FlpGeofencingInterface
#include <
fused_location.h
>
Interfaz extendida para la compatibilidad con FLP_Geofencing
Definición en la línea
764
del archivo
fused_location.h
.
void(* add_geofences)(int32_t number_of_geofences,
Geofence
**geofences)
|
Agrega una lista de geovallas. Parámetros: number_of_geofences: Es la cantidad de geovallas que se deben agregar. geofences: Es un puntero al array de punteros a la estructura de
geovalla
.
Definición en la línea
782
del archivo
fused_location.h
.
Abre la interfaz de geovallado y proporciona las rutinas de devolución de llamada a la implementación de esta interfaz. Una vez que se te llame, debes responder llamando a flp_capabilities_callback en
FlpGeofenceCallbacks
para especificar las capacidades que admite tu implementación.
Definición en la línea
774
del archivo
fused_location.h
.
void(* modify_geofence_option)(int32_t geofence_id,
GeofenceOptions
*options)
|
Modificar una opción de geovallado en particular Parámetros: geofence_id: Es el ID del geovallado. options: Son varias opciones asociadas con el geovallado. Consulta la estructura de
GeofenceOptions
para obtener más información.
Definición en la línea
810
del archivo
fused_location.h
.
void(* pause_geofence)(int32_t geofence_id)
|
Detener la supervisión de una geovalla en particular Parámetros: geofence_id: Es el ID del geovallado.
Definición en la línea
789
del archivo
fused_location.h
.
void(* remove_geofences)(int32_t number_of_geofences, int32_t *geofence_id)
|
Quita una lista de geovallados. Después de que se devuelve la función, no se deben enviar notificaciones. Parámetro: number_of_geofences: Es la cantidad de geovallas que se debían agregar. geofence_id: Es un puntero al array de geofence_ids que se quitarán.
Definición en la línea
819
del archivo
fused_location.h
.
void(* resume_geofence)(int32_t geofence_id, int monitor_transitions)
|
Reanudar la supervisión de una geovalla en particular Parámetros: geofence_id: El ID de la geovalla. monitor_transitions: Indica qué transiciones se supervisarán. OR a nivel de bits de FLP_GEOFENCE_TRANSITION_ENTERED, FLP_GEOFENCE_TRANSITION_EXITED y FLP_GEOFENCE_TRANSITION_UNCERTAIN. Esto reemplaza el valor asociado proporcionado en la llamada add_geofence_area.
Definición en la línea
801
del archivo
fused_location.h
.
se establece en sizeof(FlpGeofencingInterface).
Definición en la línea
766
del archivo
fused_location.h
.
La documentación de esta struct se generó a partir del siguiente archivo:
El contenido y las muestras de código que aparecen en esta página están sujetas a las licencias que se describen en la Licencia de Contenido. Java y OpenJDK son marcas registradas de Oracle o sus afiliados.
Última actualización: 2025-07-27 (UTC)
[[["Fácil de comprender","easyToUnderstand","thumb-up"],["Resolvió mi problema","solvedMyProblem","thumb-up"],["Otro","otherUp","thumb-up"]],[["Falta la información que necesito","missingTheInformationINeed","thumb-down"],["Muy complicado o demasiados pasos","tooComplicatedTooManySteps","thumb-down"],["Desactualizado","outOfDate","thumb-down"],["Problema de traducción","translationIssue","thumb-down"],["Problema con las muestras o los códigos","samplesCodeIssue","thumb-down"],["Otro","otherDown","thumb-down"]],["Última actualización: 2025-07-27 (UTC)"],[],[],null,["# Android Hardware Abstraction Layer: FlpGeofencingInterface Struct Reference\n\nFlpGeofencingInterface Struct Reference\n=======================================\n\n[Data Fields](#pub-attribs) \nFlpGeofencingInterface Struct Reference \n\n`\n#include \u003c\n`[fused_location.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/fused_location.h)`\n\u003e\n`\n\n|---------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Data Fields ----------- ||\n| size_t | [size](/reference/hal/struct_flp_geofencing_interface#a854352f53b148adc24983a58a1866d66) |\n| ||\n| void(\\* | [init](/reference/hal/struct_flp_geofencing_interface#afa3aa235f58ff4fce5e90098e18d3707) )( [FlpGeofenceCallbacks](/reference/hal/struct_flp_geofence_callbacks) \\*callbacks) |\n| ||\n| void(\\* | [add_geofences](/reference/hal/struct_flp_geofencing_interface#a6db3722bd6f441b0ce4e2433be2353fe) )(int32_t number_of_geofences, [Geofence](/reference/hal/struct_geofence) \\*\\*geofences) |\n| ||\n| void(\\* | [pause_geofence](/reference/hal/struct_flp_geofencing_interface#a850b900b8eabf9328ec853978936ed4f) )(int32_t geofence_id) |\n| ||\n| void(\\* | [resume_geofence](/reference/hal/struct_flp_geofencing_interface#af409f9b64a5b9b42a5417ae381fabc88) )(int32_t geofence_id, int monitor_transitions) |\n| ||\n| void(\\* | [modify_geofence_option](/reference/hal/struct_flp_geofencing_interface#a4c8fdb5d1b08fa3f65f53fb4ec6ea075) )(int32_t geofence_id, [GeofenceOptions](/reference/hal/struct_geofence_options) \\*options) |\n| ||\n| void(\\* | [remove_geofences](/reference/hal/struct_flp_geofencing_interface#a358dea1e39d7696aad6e4c19d8cb05df) )(int32_t number_of_geofences, int32_t \\*geofence_id) |\n| ||\n\n\nDetailed Description\n--------------------\n\n\nExtended interface for FLP_Geofencing support\n\n\nDefinition at line\n[764](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/fused_location.h)\nof file\n[fused_location.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/fused_location.h)\n.\n\nField Documentation\n-------------------\n\n\n|---------------------------------------------------------------------------------------------------------------|\n| void(\\* add_geofences)(int32_t number_of_geofences, [Geofence](/reference/hal/struct_geofence) \\*\\*geofences) |\n\n\nAdd a list of geofences. Parameters: number_of_geofences - The number of geofences that needed to be added. geofences - Pointer to array of pointers to\n[Geofence](/reference/hal/struct_geofence)\nstructure.\n\n\nDefinition at line\n[782](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/fused_location.h)\nof file\n[fused_location.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/fused_location.h)\n.\n\n|--------------------------------------------------------------------------------------------------|\n| void(\\* init)( [FlpGeofenceCallbacks](/reference/hal/struct_flp_geofence_callbacks) \\*callbacks) |\n\n\nOpens the geofence interface and provides the callback routines to the implemenation of this interface. Once called you should respond by calling the flp_capabilities_callback in\n[FlpGeofenceCallbacks](/reference/hal/struct_flp_geofence_callbacks)\nto specify the capabilities that your implementation supports.\n\n\nDefinition at line\n[774](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/fused_location.h)\nof file\n[fused_location.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/fused_location.h)\n.\n\n|---------------------------------------------------------------------------------------------------------------------------|\n| void(\\* modify_geofence_option)(int32_t geofence_id, [GeofenceOptions](/reference/hal/struct_geofence_options) \\*options) |\n\n\nModify a particular geofence option. Parameters: geofence_id - The id for the geofence. options - Various options associated with the geofence. See\n[GeofenceOptions](/reference/hal/struct_geofence_options)\nstructure for details.\n\n\nDefinition at line\n[810](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/fused_location.h)\nof file\n[fused_location.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/fused_location.h)\n.\n\n|----------------------------------------------|\n| void(\\* pause_geofence)(int32_t geofence_id) |\n\n\nPause monitoring a particular geofence. Parameters: geofence_id - The id for the geofence.\n\n\nDefinition at line\n[789](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/fused_location.h)\nof file\n[fused_location.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/fused_location.h)\n.\n\n|-------------------------------------------------------------------------------|\n| void(\\* remove_geofences)(int32_t number_of_geofences, int32_t \\*geofence_id) |\n\n\nRemove a list of geofences. After the function returns, no notifications should be sent. Parameter: number_of_geofences - The number of geofences that needed to be added. geofence_id - Pointer to array of geofence_ids to be removed.\n\n\nDefinition at line\n[819](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/fused_location.h)\nof file\n[fused_location.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/fused_location.h)\n.\n\n|------------------------------------------------------------------------|\n| void(\\* resume_geofence)(int32_t geofence_id, int monitor_transitions) |\n\n\nResume monitoring a particular geofence. Parameters: geofence_id - The id for the geofence. monitor_transitions - Which transitions to monitor. Bitwise OR of FLP_GEOFENCE_TRANSITION_ENTERED, FLP_GEOFENCE_TRANSITION_EXITED and FLP_GEOFENCE_TRANSITION_UNCERTAIN. This supersedes the value associated provided in the add_geofence_area call.\n\n\nDefinition at line\n[801](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/fused_location.h)\nof file\n[fused_location.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/fused_location.h)\n.\n\n|-------------|\n| size_t size |\n\n\nset to sizeof(FlpGeofencingInterface)\n\n\nDefinition at line\n[766](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/fused_location.h)\nof file\n[fused_location.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/fused_location.h)\n.\n\n*** ** * ** ***\n\nThe documentation for this struct was generated from the following file:\n\n- hardware/libhardware/include/hardware/ [fused_location.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/fused_location.h)"]]