2016-01-29 30 views
0

這個tutorial清楚地顯示瞭如何記錄頁面視圖的開始和結束谷歌播放服務版本7 +。我不得不使用版本6,但沒有開始和結束方法。我已經使用6版API自動完成工作,但我不確定使用這些不同的方法是否會失去某些功能。android自動完成與谷歌播放服務版本6:查看viewEnd

當鏈接教程使用start,我使用view

PendingResult<Status> view(GoogleApiClient apiClient, Activity activity, Uri appUri, String title, Uri webUrl, List<AppIndexApi.AppIndexingLink> outLinks) 

當鏈接教程使用end,我使用viewEnd

PendingResult<Status> viewEnd(GoogleApiClient apiClient, Activity activity, Uri appUri) 

除了不能夠設置描述與視圖/ viewEnd,有開始/結束與視圖/ viewEnd之間的任何功能差異?

+0

offtopic評論:有問題的鏈接:[viewEnd](https://developers.google.com/android/reference/com/google/android/gms/appindexing/AppIndexApi .html#viewEnd(com.google.android.gms.common.api.GoogleApiClient,%20android.app.Activity,%20android.net.Uri))的作品...問題是鏈接中的空間......這可能用%20代替 – Selvin

回答

1

如果自動完成適用於您,使用視圖和viewEnd是好的。

乾杯,

MB

+0

這是基於什麼? – lf215

相關問題