2025년 3월 27일부터 AOSP를 빌드하고 기여하려면 aosp-main
대신 android-latest-release
를 사용하는 것이 좋습니다. 자세한 내용은 AOSP 변경사항을 참고하세요.
컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
GeofenceOptions 구조체 참조
#include <
fused_location.h
>
지오펜싱
옵션
fused_location.h
파일의
714
라인에 정의가 있습니다.
경계 지역의 현재 상태입니다. 예를 들어 시스템이 사용자가 지오펜싱 내에 있음을 이미 알고 있는 경우 FLP_GEOFENCE_TRANSITION_ENTERED로 설정됩니다. 대부분의 경우 FLP_GEOFENCE_TRANSITION_UNCERTAIN입니다.
fused_location.h
FILE의
720
라인에 정의되어 있습니다.
모니터링할 전환입니다. FLP_GEOFENCE_TRANSITION_ENTERED, FLP_GEOFENCE_TRANSITION_EXITED, FLP_GEOFENCE_TRANSITION_UNCERTAIN의 비트 OR입니다.
fused_location.h
FILE의
727
라인에 정의되어 있습니다.
int notification_responsivenes_ms
|
지오펜스
와 관련된 전환이 트리거될 때 콜백을 얼마나 빨리 호출해야 하는지에 관한 최선의 설명을 정의합니다. 예를 들어 FLP_GEOFENCE_TRANSITION_ENTERED와 함께 1, 000밀리초로 설정하면 콜백은 지오펜스에 진입한 후 1, 000밀리초 이내에 호출되어야 합니다. 이 매개변수는 밀리초 단위로 정의됩니다. 참고: GPS가 폴링되는 속도와 혼동해서는 안 됩니다. 절전상의 이유로 GPS 샘플링 속도를 동적으로 변경하는 것은 허용됩니다. 따라서 샘플링 속도가 이보다 빠르거나 느릴 수 있습니다.
fused_location.h
파일의
741
줄에 정의되어 있습니다.
UNCERTAIN 전환이 트리거되어야 하는 시간 제한입니다. 이 매개변수는 밀리초 단위로 정의됩니다.
fused_location.h
FILE의
747
라인에 정의가 있습니다.
이 구조체에 관한 문서는 다음 파일에서 생성되었습니다.
이 페이지에 나와 있는 콘텐츠와 코드 샘플에는 콘텐츠 라이선스에서 설명하는 라이선스가 적용됩니다. 자바 및 OpenJDK는 Oracle 및 Oracle 계열사의 상표 또는 등록 상표입니다.
최종 업데이트: 2025-07-27(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-27(UTC)"],[],[],null,["# Android Hardware Abstraction Layer: GeofenceOptions Struct Reference\n\nGeofenceOptions Struct Reference\n================================\n\n[Data Fields](#pub-attribs) \nGeofenceOptions 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| int | [last_transition](/reference/hal/struct_geofence_options#ac9f3044df5a350d9a141c36631daa4d8) |\n| ||\n| int | [monitor_transitions](/reference/hal/struct_geofence_options#a0c48726615ba0e8f18e47cbe3d6e7873) |\n| ||\n| int | [notification_responsivenes_ms](/reference/hal/struct_geofence_options#a759888e878e11256a8021d3cd3d8e12a) |\n| ||\n| int | [unknown_timer_ms](/reference/hal/struct_geofence_options#a2d1b6a36f124a618cbebc3f79977233b) |\n| ||\n| uint32_t | [sources_to_use](/reference/hal/struct_geofence_options#a352dd652f7b9c6033433ad53089fe281) |\n| ||\n\n\nDetailed Description\n--------------------\n\n\n[Geofence](/reference/hal/struct_geofence)\nOptions\n\n\nDefinition at line\n[714](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| int last_transition |\n\n\nThe current state of the geofence. For example, if the system already knows that the user is inside the geofence, this will be set to FLP_GEOFENCE_TRANSITION_ENTERED. In most cases, it will be FLP_GEOFENCE_TRANSITION_UNCERTAIN.\n\n\nDefinition at line\n[720](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| int monitor_transitions |\n\n\nTransitions to monitor. Bitwise OR of FLP_GEOFENCE_TRANSITION_ENTERED, FLP_GEOFENCE_TRANSITION_EXITED and FLP_GEOFENCE_TRANSITION_UNCERTAIN.\n\n\nDefinition at line\n[727](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| int notification_responsivenes_ms |\n\n\nDefines the best-effort description of how soon should the callback be called when the transition associated with the\n[Geofence](/reference/hal/struct_geofence)\nis triggered. For instance, if set to 1000 millseconds with FLP_GEOFENCE_TRANSITION_ENTERED, the callback should be called 1000 milliseconds within entering the geofence. This parameter is defined in milliseconds. NOTE: This is not to be confused with the rate that the GPS is polled at. It is acceptable to dynamically vary the rate of sampling the GPS for power-saving reasons; thus the rate of sampling may be faster or slower than this.\n\n\nDefinition at line\n[741](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| uint32_t sources_to_use |\n\n\nThe sources to use for monitoring geofences. Its a BITWISE-OR of FLP_TECH_MASK flags.\n\n\nDefinition at line\n[753](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| int unknown_timer_ms |\n\n\nThe time limit after which the UNCERTAIN transition should be triggered. This paramter is defined in milliseconds.\n\n\nDefinition at line\n[747](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)"]]