हमारा सुझाव है कि 27 मार्च, 2025 से AOSP को बनाने और उसमें योगदान देने के लिए, aosp-main
के बजाय android-latest-release
का इस्तेमाल करें. ज़्यादा जानकारी के लिए, AOSP में हुए बदलाव लेख पढ़ें.
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
FlpGeofencingInterface स्ट्रक्चर का रेफ़रंस
#include <
fused_location.h
>
FLP_Geofencing की सहायता के लिए बेहतर इंटरफ़ेस
परिभाषा,
fused_location.h
फ़ाइल की लाइन
764
पर दी गई है.
void(* add_geofences)(int32_t number_of_geofences,
Geofence
**geofences)
|
जियोफ़ेंस की सूची जोड़ें. पैरामीटर: number_of_geofences - उन जियोफ़ेंस की संख्या जिन्हें जोड़ना ज़रूरी है. geofences -
जियोफ़ेंस
के स्ट्रक्चर के पॉइंटर के कलेक्शन का पॉइंटर.
परिभाषा, फ़ाइल
fused_location.h
की लाइन
782
पर दी गई है.
यह जियोफ़ेंस इंटरफ़ेस खोलता है और इस इंटरफ़ेस को लागू करने के लिए कॉलबैक रूटीन उपलब्ध कराता है. कॉल मिलने के बाद, आपको
FlpGeofenceCallbacks
में flp_capabilities_callback को कॉल करके जवाब देना चाहिए. इससे, आपको उन सुविधाओं के बारे में पता चलेगा जो आपके लागू किए गए वर्शन में काम करती हैं.
परिभाषा, फ़ाइल
fused_location.h
की लाइन
774
पर दी गई है.
void(* modify_geofence_option)(int32_t geofence_id,
GeofenceOptions
*options)
|
किसी खास जियोफ़ेंस विकल्प में बदलाव करना. पैरामीटर: geofence_id - जियोफ़ेंस का आईडी. options - जियोफ़ेंस से जुड़े अलग-अलग विकल्प. ज़्यादा जानकारी के लिए,
GeofenceOptions
का स्ट्रक्चर देखें.
परिभाषा, फ़ाइल
fused_location.h
की लाइन
810
पर दी गई है.
void(* pause_geofence)(int32_t geofence_id)
|
किसी खास जियोफ़ेंस को मॉनिटर करने की सुविधा रोकना. पैरामीटर: geofence_id - जियोफ़ेंस का आईडी.
परिभाषा, फ़ाइल
fused_location.h
की लाइन
789
पर दी गई है.
void(* remove_geofences)(int32_t number_of_geofences, int32_t *geofence_id)
|
जियोफ़ेंस की सूची हटाएं. फ़ंक्शन के रिटर्न होने के बाद, कोई सूचना नहीं भेजी जानी चाहिए. पैरामीटर: number_of_geofences - उन जियोफ़ेंस की संख्या जिन्हें जोड़ना है. geofence_id - हटाए जाने वाले geofence_ids के कलेक्शन का पॉइंटर.
परिभाषा, फ़ाइल
fused_location.h
की लाइन
819
पर दी गई है.
void(* resume_geofence)(int32_t geofence_id, int monitor_transitions)
|
किसी खास जियोफ़ेंस को मॉनिटर करना फिर से शुरू करना. पैरामीटर: geofence_id - यह जियोफ़ेंस का आईडी है. monitor_transitions - यह तय करता है कि किन ट्रांज़िशन को मॉनिटर करना है. FLP_GEOFENCE_TRANSITION_ENTERED, FLP_GEOFENCE_TRANSITION_EXITED, और FLP_GEOFENCE_TRANSITION_UNCERTAIN के बिटवाइज़ OR. यह वैल्यू, add_geofence_area कॉल में दी गई वैल्यू की जगह ले लेती है.
परिभाषा,
fused_location.h
फ़ाइल की लाइन
801
पर दी गई है.
sizeof(FlpGeofencingInterface) पर सेट करें
परिभाषा, फ़ाइल
fused_location.h
की लाइन
766
पर दी गई है.
इस स्ट्रक्चर का दस्तावेज़, इस फ़ाइल से जनरेट किया गया था:
इस पेज पर मौजूद कॉन्टेंट और कोड सैंपल कॉन्टेंट के लाइसेंस में बताए गए लाइसेंस के हिसाब से हैं. Java और OpenJDK, 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: 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)"]]