PlaceReport Stay organized with collections Save and categorize content based on your preferences.
Page Summary
PlaceReport indicates a device is located at a specific Place.
Place reports should typically be submitted in response to user actions like check-ins or tap-to-pay events.
The
createmethod allows you to create a PlaceReport with a place ID and an app-specific context tag.You can retrieve the place ID and the context tag using the
getPlaceId()andgetTag()methods respectively.
implementsParcelable
An indication that the device is currently located at a particularPlace.
Typically, your app should submit a place report in response to a user action, such as a check in at a venue or a tap-to-pay event at a business. This place report indicates strong confidence that the device is at that place. For more information, see the developer's guide onPlace Reports.
Inherited Constant Summary
| String | NULL |
| int | CONTENTS_FILE_DESCRIPTOR | |
| int | PARCELABLE_WRITE_RETURN_VALUE |
Field Summary
| public static finalCreator<PlaceReport> | CREATOR |
Public Method Summary
| staticPlaceReport | |
| String | getPlaceId() Returns the place id associated with this report. |
| String | getTag() Returns the context tag associated with this report. |
Inherited Method Summary
| final int | describeContents() |
| abstract int | describeContents() |
| abstract void | writeToParcel(Parcel arg0, int arg1) |
Fields
public static finalCreator<PlaceReport>CREATOR
Public Methods
public staticPlaceReportcreate(String placeId,String tag)
Creates aPlaceReport.
Parameters
| placeId | Theplace id of thePlace associated with this report. |
|---|---|
| tag | An app-specific context string for the user flow that triggered the report. For more information about tags, see thedeveloper's guide. |
publicStringgetPlaceId()
Returns the place id associated with this report.
Returns
- The place id.
publicStringgetTag()
Returns the context tag associated with this report.
Returns
- The context tag.
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-10-31 UTC.