我看到可以从PlusClient的loadPerson方法检索的Person对象具有getCurrentLocation()方法。由于某种原因,我在联机文档中看不到getCurrentLocation()方法。另外,当我尝试使用它时,它总是返回null。这个函数有什么用?
最佳答案
getCurrentLocation记录在Person对象下:
http://developer.android.com/reference/com/google/android/gms/plus/model/people/Person.html#getCurrentLocation()
如果用户在自己的Google+个人资料上将其设置为值,它将返回用户的当前位置。如果他们尚未将其设置为值,它将返回null。