PlaceReport

  • 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.

  • Thecreate method 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 thegetPlaceId() andgetTag() methods respectively.

public classPlaceReport extends AbstractSafeParcelable
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

From interface com.google.android.gms.common.internal.safeparcel.SafeParcelable
StringNULL
From interface android.os.Parcelable
intCONTENTS_FILE_DESCRIPTOR
intPARCELABLE_WRITE_RETURN_VALUE

Field Summary

public static finalCreator<PlaceReport> CREATOR

Public Method Summary

staticPlaceReport
create(String placeId,String tag)
Creates aPlaceReport.
String
getPlaceId()
Returns the place id associated with this report.
String
getTag()
Returns the context tag associated with this report.

Inherited Method Summary

From class com.google.android.gms.common.internal.safeparcel.AbstractSafeParcelable
final int
describeContents()
From class java.lang.Object
Object
clone()
boolean
equals(Object arg0)
void
finalize()
finalClass<?>
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)

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.