Stay organized with collections Save and categorize content based on your preferences.
Represents an event from the GeofencingClient
API. The event can be
clone()
boolean voidfinalize()
final Class<?>getClass()
inthashCode()
final voidnotify()
final voidnotifyAll()
StringtoString()
final voidwait(long arg0, int arg1)
final voidwait(long arg0)
final voidwait()
Public Methods public static GeofencingEvent fromIntent (Intent intent)Creates a GeofencingEvent
object from the given intent.
GeofencingEvent
object or null
if the given intent is null
or doesn't contain geofencing event.Returns the error code that explains the error that triggered the intent specified in fromIntent(Intent)
.
Returns the transition type of the geofence transition alert.
Returns fromIntent(Intent)
is not generated for a transition alert; Otherwise returns the GEOFENCE_TRANSITION_ flags value defined in Geofence
.Returns a list of geofences that triggered this geofence transition alert.
Returnsnull
if the intent specified in fromIntent(Intent)
is not generated for a geofence transition alertGets the location that triggered the geofence transition.
Returnsnull
if it's not included in the intent specified in fromIntent(Intent)
Whether an error triggered this intent.
Returnstrue
if an error triggered the intent specified in fromIntent(Intent)
, otherwise false
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."],[[["`GeofencingEvent` objects represent events from the `GeofencingClient` API, such as geofence transitions or errors."],["These events can be created from an Intent using the `fromIntent()` method."],["You can access information about the event, such as the triggering geofences, location, transition type, and any errors, using methods like `getTriggeringGeofences()`, `getTriggeringLocation()`, `getGeofenceTransition()`, and `getErrorCode()`."],["The `hasError()` method indicates whether the event was triggered by an error."]]],["The `GeofencingEvent` class captures events from the `GeofencingClient` API, including geofence transitions and errors. Key actions involve creating a `GeofencingEvent` from an `Intent` using `fromIntent()`. Other actions include retrieving the error code via `getErrorCode()`, the transition type with `getGeofenceTransition()`, a list of geofences using `getTriggeringGeofences()`, and the triggering location by invoking `getTriggeringLocation()`. It can also check if an error has occurred by using `hasError()`.\n"]]
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4