SDK Địa điểm dành cho Android hỗ trợ Ảnh địa điểm hiện có.
Nếu bạn đã quen thuộc với Ảnh địa điểm hiện tại, thì phiên bản mới của Ảnh địa điểm sẽ có những thay đổi sau:
Nếu đối tượng PhotoMetadata được trả về có bất kỳ thuộc tính nào hoặc thuộc tính tác giả, bạn phải đưa các thuộc tính này vào ứng dụng của mình bất cứ khi nào hiển thị hình ảnh. Xem tài liệu về thuộc tính.
[null,null,["Cập nhật lần gần đây nhất: 2025-02-28 UTC."],[[["Places SDK for Android now supports a new version of Place Photo with an updated pricing model and a new method for retrieving photos."],["The new Place Photo returns a URI to the image instead of a bitmap, supports larger photo sizes (up to 4800x4800 pixels), and requires enabling Places API (New)."],["To request a photo, use the `PlacesClient.fetchResolvedPhotoUri()` method with a `FetchResolvedPhotoUriRequest` object."],["The response includes `PhotoMetadata` containing author attributions that must be displayed when showing the image."],["Initialize your app with `Places.initializeWithNewPlacesApiEnabled()` to access the new author attributions in `PhotoMetadata`."]]],["The new Place Photo feature in Places SDK for Android requires enabling Places API (New). Key changes include a new pricing model, returning a URI instead of a bitmap, and supporting larger images (up to 4800x4800 pixels). Use `PlacesClient.fetchResolvedPhotoUri()` for requests, passing a `FetchResolvedPhotoUriRequest` object. Photo metadata includes new `AuthorAttributions`, which must be displayed with the image. `Places.initializeWithNewPlacesApiEnabled()` must be called to access the author attributions. Using `PlacesClient.fetchPhoto()` requires enabling **Places API**.\n"]]