FlpGeofencingInterface 結構體參考資料
  
   #include <
   
    fused_location.h
   
   >
  
 
| 資料欄位 | |
| size_t | size | 
| void(* | init )( FlpGeofenceCallbacks *callbacks) | 
| void(* | add_geofences )(int32_t number_of_geofences, Geofence **geofences) | 
| void(* | pause_geofence )(int32_t geofence_id) | 
| void(* | resume_geofence )(int32_t geofence_id, int monitor_transitions) | 
| void(* | modify_geofence_option )(int32_t geofence_id, GeofenceOptions *options) | 
| void(* | remove_geofences )(int32_t number_of_geofences, int32_t *geofence_id) | 
詳細說明
支援 FLP_Geofencing 的擴充介面
定義位於檔案 fused_location.h 的 764 行。
欄位說明文件
| void(* add_geofences)(int32_t number_of_geofences, Geofence **geofences) | 
新增地理圍欄清單。參數:number_of_geofences - 需要新增的地理圍欄數量。geofences - 指向指向 Geofence 結構體的指標陣列的指標。
定義位於檔案 fused_location.h 的 782 行。
| void(* init)( FlpGeofenceCallbacks *callbacks) | 
開啟地理圍欄介面,並為此介面的實作提供回呼例程式。接到呼叫後,您應呼叫 FlpGeofenceCallbacks 中的 flp_capabilities_callback 來回應,指定實作項目支援的功能。
定義位於檔案 fused_location.h 的 774 行。
| void(* modify_geofence_option)(int32_t geofence_id, GeofenceOptions *options) | 
修改特定地理圍欄選項。參數:geofence_id - 地理圍欄的 ID。options - 與地理圍欄相關的各種選項。詳情請參閱 GeofenceOptions 結構。
定義位於檔案 fused_location.h 的 810 行。
| void(* pause_geofence)(int32_t geofence_id) | 
暫停監控特定地理圍欄。參數:geofence_id - 地理圍欄的 ID。
定義位於檔案 fused_location.h 的 789 行。
| void(* remove_geofences)(int32_t number_of_geofences, int32_t *geofence_id) | 
移除地理圍欄清單。函式傳回後,系統不應傳送任何通知。參數:number_of_geofences - 需要新增的地理邊界數量。geofence_id - 指向要移除的地理邊界 ID 陣列的指標。
定義位於檔案 fused_location.h 的 819 行。
| void(* resume_geofence)(int32_t geofence_id, int monitor_transitions) | 
繼續監控特定地理圍欄。參數:geofence_id - 地理圍欄的 ID。monitor_transitions - 要監控的轉換。位元 OR 運算的 FLP_GEOFENCE_TRANSITION_ENTERED、FLP_GEOFENCE_TRANSITION_EXITED 和 FLP_GEOFENCE_TRANSITION_UNCERTAIN。這會取代 add_geofence_area 呼叫中提供的相關值。
定義位於檔案 fused_location.h 的 801 行。
| size_t size | 
設為 sizeof(FlpGeofencingInterface)
定義位於檔案 fused_location.h 的 766 行。
這個結構體的說明文件是由下列檔案產生:
- hardware/libhardware/include/hardware/ fused_location.h
