Начиная с 27 марта 2025 г. мы рекомендуем использовать android-latest-release
вместо aosp-main
для создания и участия в AOSP. Дополнительные сведения см. в разделе Изменения в AOSP .
Оптимизируйте свои подборки
Сохраняйте и классифицируйте контент в соответствии со своими настройками.
Справочник по структуре FlpGeofencingInterface
#include < fused_location.h >
Расширенный интерфейс для поддержки FLP_Geofencing.
Определение в строке 764 файла Fused_location.h .
void(* add_geofences)(int32_t number_of_geofences, Geofence **geofences) |
Добавьте список геозон. Параметры: number_of_geofences — количество геозон, которые необходимо добавить. geofences — указатель на массив указателей на структуру Geofence .
Определение в строке 782 файла Fused_location.h .
Открывает интерфейс геозоны и предоставляет процедуры обратного вызова для реализации этого интерфейса. После вызова вы должны ответить, вызвав flp_capabilities_callback в FlpGeofenceCallbacks , чтобы указать возможности, которые поддерживает ваша реализация.
Определение в строке 774 файла Fused_location.h .
void(*modify_geofence_option)(int32_t geofence_id, GeofenceOptions *options) |
Измените конкретный параметр геозоны. Параметры: geofence_id — идентификатор геозоны. options — различные опции, связанные с геозоной. Подробности смотрите в структуре GeofenceOptions .
Определение в строке 810 файла Fused_location.h .
void (* пауза_geofence) (int32_t geofence_id) |
Приостановить мониторинг определенной геозоны. Параметры: geofence_id — идентификатор геозоны.
Определение в строке 789 файла Fused_location.h .
void(* remove_geofences)(int32_t number_of_geofences, int32_t *geofence_id) |
Удалить список геозон. После возврата функции уведомления отправляться не должны. Параметр: number_of_geofences — количество геозон, которые необходимо добавить. geofence_id — указатель на массив geofence_ids, который нужно удалить.
Определение в строке 819 файла Fused_location.h .
void(*sume_geofence)(int32_t geofence_id, int Monitor_transitions) |
Возобновить мониторинг определенной геозоны. Параметры: geofence_id — идентификатор геозоны. Monitor_transitions — Какие переходы отслеживать. Побитовое ИЛИ для FLP_GEOFENCE_TRANSITION_ENTERED, FLP_GEOFENCE_TRANSITION_EXITED и FLP_GEOFENCE_TRANSITION_UNCERTAIN. Это заменяет связанное значение, указанное в вызове add_geofence_area.
Определение в строке 801 файла Fused_location.h .
Документация для этой структуры была создана из следующего файла:
Контент и образцы кода на этой странице предоставлены по лицензиям. Java и OpenJDK – это зарегистрированные товарные знаки корпорации Oracle и ее аффилированных лиц.
Последнее обновление: 2025-07-29 UTC.
[[["Прост для понимания","easyToUnderstand","thumb-up"],["Помог мне решить мою проблему","solvedMyProblem","thumb-up"],["Другое","otherUp","thumb-up"]],[["Отсутствует нужная мне информация","missingTheInformationINeed","thumb-down"],["Слишком сложен/слишком много шагов","tooComplicatedTooManySteps","thumb-down"],["Устарел","outOfDate","thumb-down"],["Проблема с переводом текста","translationIssue","thumb-down"],["Проблемы образцов/кода","samplesCodeIssue","thumb-down"],["Другое","otherDown","thumb-down"]],["Последнее обновление: 2025-07-29 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)"]]