החל מ-27 במרץ 2025, מומלץ להשתמש ב-android-latest-release
במקום ב-aosp-main
כדי ליצור תרומות ל-AOSP. מידע נוסף זמין במאמר שינויים ב-AOSP.
קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
הפניה ל-struct של GpsNiInterface
#include <
gps.h
>
ממשק מורחב לתמיכה ביוזמת הרשת (NI).
ההגדרה מופיעה בשורה
1106
בקובץ
gps.h
.
רישום הקריאות החוזרות (callbacks) לשימוש ב-HAL.
ההגדרה מופיעה בשורה
1112
בקובץ
gps.h
.
שליחת תשובה ל-HAL.
ההגדרה מופיעה בשורה
1115
בקובץ
gps.h
.
מוגדר לערך sizeof(GpsNiInterface)
ההגדרה מופיעה בשורה
1109
בקובץ
gps.h
.
התיעוד של המבנה הזה נוצר מהקובץ הבא:
-
hardware/libhardware/include/hardware/
gps.h
דוגמאות התוכן והקוד שבדף הזה כפופות לרישיונות המפורטים בקטע רישיון לתוכן. 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: GpsNiInterface Struct Reference\n\nGpsNiInterface Struct Reference\n===============================\n\n[Data Fields](#pub-attribs) \nGpsNiInterface Struct Reference \n\n`\n#include \u003c\n`[gps.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/gps.h)`\n\u003e\n`\n\n|---------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Data Fields ----------- ||\n| size_t | [size](/reference/hal/struct_gps_ni_interface#a854352f53b148adc24983a58a1866d66) |\n| ||\n| void(\\* | [init](/reference/hal/struct_gps_ni_interface#a1a30606a934ba9dd8c5b20ecaa6d0993) )( [GpsNiCallbacks](/reference/hal/struct_gps_ni_callbacks) \\*callbacks) |\n| ||\n| void(\\* | [respond](/reference/hal/struct_gps_ni_interface#acd9630cb0d6596df6ccc01e3d0614dce) )(int notif_id, [GpsUserResponseType](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/gps.h) user_response) |\n| ||\n\n\nDetailed Description\n--------------------\n\n\nExtended interface for Network-initiated (NI) support.\n\n\nDefinition at line\n[1106](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/gps.h)\nof file\n[gps.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/gps.h)\n.\n\nField Documentation\n-------------------\n\n\n|--------------------------------------------------------------------------------------|\n| void(\\* init)( [GpsNiCallbacks](/reference/hal/struct_gps_ni_callbacks) \\*callbacks) |\n\n\nRegisters the callbacks for HAL to use.\n\n\nDefinition at line\n[1112](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/gps.h)\nof file\n[gps.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/gps.h)\n.\n\n|---------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| void(\\* respond)(int notif_id, [GpsUserResponseType](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/gps.h) user_response) |\n\n\nSends a response to HAL.\n\n\nDefinition at line\n[1115](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/gps.h)\nof file\n[gps.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/gps.h)\n.\n\n|-------------|\n| size_t size |\n\n\nset to sizeof(GpsNiInterface)\n\n\nDefinition at line\n[1109](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/gps.h)\nof file\n[gps.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/gps.h)\n.\n\n*** ** * ** ***\n\nThe documentation for this struct was generated from the following file:\n\n- hardware/libhardware/include/hardware/ [gps.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/gps.h)"]]