PlaceReport
Stay organized with collections
Save and categorize content based on your preferences.
An indication that the device is currently located at a particular Place
.
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
on Place Reports.
Inherited Constant Summary
From interface
com.google.android.gms.common.internal.safeparcel.SafeParcelable
From interface android.os.Parcelable
int |
CONTENTS_FILE_DESCRIPTOR |
|
int |
PARCELABLE_WRITE_RETURN_VALUE |
|
Inherited Method Summary
From class
com.google.android.gms.common.internal.safeparcel.AbstractSafeParcelable
final int |
describeContents()
|
From class java.lang.Object
Object
|
clone()
|
boolean |
|
void |
finalize()
|
final Class<?>
|
getClass()
|
int |
hashCode()
|
final void |
notify()
|
final void |
notifyAll()
|
String
|
toString()
|
final void |
wait(long arg0, int arg1)
|
final void |
wait(long arg0)
|
final void |
wait()
|
From interface android.os.Parcelable
abstract int |
describeContents()
|
abstract void |
writeToParcel( Parcel arg0,
int arg1)
|
Public Methods
Parameters
placeId |
The place id of the
Place
associated with this report.
|
tag |
An app-specific context string for the user flow that triggered the report. For
more information about tags, see the developer's guide.
|
public String getPlaceId ()
Returns the place id associated with this report.
public String getTag ()
Returns the context tag associated with this report.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-10-31 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-10-31 UTC."],[[["`PlaceReport` indicates a device's current location at a specific Place, often triggered by user actions like check-ins or tap-to-pay events."],["It's crucial to submit Place Reports responsibly, mainly in response to explicit user interactions signifying strong location confidence."],["Developers can create a `PlaceReport` using `create()`, providing the Place ID and an optional context tag."],["`PlaceReport` provides methods like `getPlaceId()` and `getTag()` to access its core information."],["Refer to the developer's guide on Place Reports for comprehensive usage guidelines and best practices."]]],["`PlaceReport` indicates a device's location at a specific `Place`. Apps should submit a place report when users perform actions like checking in or tap-to-pay. The `create` method generates a `PlaceReport` using a `placeId` and a context `tag`. `getPlaceId` retrieves the associated place's ID, and `getTag` retrieves the report's context tag. It contains a static `CREATOR` field for parcelable implementation and inherits methods for describing contents.\n"]]