A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://developers.google.com/android/reference/com/google/android/gms/location/GeofencingEvent below:

GeofencingEvent | Google Play services

GeofencingEvent

Stay organized with collections Save and categorize content based on your preferences.

Represents an event from the GeofencingClient API. The event can be

Public Method Summary Inherited Method Summary 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()

Public Methods public static GeofencingEvent fromIntent (Intent intent)

Creates a GeofencingEvent object from the given intent.

Parameters intent the intent to extract the geofencing event data from Returns public int getErrorCode ()

Returns the error code that explains the error that triggered the intent specified in fromIntent(Intent).

public int getGeofenceTransition ()

Returns the transition type of the geofence transition alert.

Returns public List<Geofence> getTriggeringGeofences ()

Returns a list of geofences that triggered this geofence transition alert.

Returns public Location getTriggeringLocation ()

Gets the location that triggered the geofence transition.

Returns public boolean hasError ()

Whether an error triggered this intent.

Returns

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