我正在瀏覽Geofencing的Google文檔,我有一些疑問。他們使用了一個pendingIntent來啓動GeofenceTransitionIntentService。有人可以解釋爲什麼嗎?此外,何時是pendingIntent被解僱?當用戶輸入地理圍欄或一旦創建了pendingIntent時,它是否完成?提前致謝 !!爲什麼我們使用pendingIntent來啓動GeofenceTransitionIntentService?
從android文檔和我對pendingIntent的一點理解,我無法理解這裏的外部應用程序是什麼?
一個的PendingIntent是你給外國申請 令牌(如NotificationManager,AlarmManager,主屏幕 AppWidgetManager,或其他第三方應用程序),它允許 外國申請使用你的應用程序的權限執行一個 預定義的一段代碼。