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/GeofencingClient below:

GeofencingClient | Google Play services

GeofencingClient

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

Public Methods public abstract Task<Void> addGeofences (GeofencingRequest request, PendingIntent pendingIntent)

Adds all geofences from the given GeofencingRequest. Geofences are uniquely identified by the request ID set in Geofence.Builder.setRequestId(String) and any geofence added here will replace any prior geofence with the same ID. All geofences registered here will use the given PendingIntent to report their transitions. When receiving transitions, GeofencingEvent.fromIntent(Intent) may be used to retrieve information about the transition.

The PendingIntent passed in here must be mutable (ie, explicitly marked with PendingIntent.FLAG_MUTABLE on Android S+).

Geofences are automatically removed when the client application is reset (when the client application is upgraded or removed, or the user force-restarts or force-quits it), or if the pending intent is canceled.

If this API fails, reference GeofenceStatusCodes for possible errors. Clients are encouraged to only add one geofence at a time if they need to recover or identify individual failures.

public abstract Task<Void> removeGeofences (List<String> requestIds)

Removes geofences by their request IDs.

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."],[[["`GeofencingClient` is the primary entry point for interacting with geofencing functionalities within your Android application, obtained through `LocationServices`."],["Using this API requires the `ACCESS_FINE_LOCATION` and `ACCESS_BACKGROUND_LOCATION` permissions in your app's manifest."],["It provides methods to add, remove (by request ID or `PendingIntent`), and manage geofences for location-based triggers."],["Geofences are automatically removed under specific conditions like app reset, uninstallation, or pending intent cancellation."]]],["The `GeofencingClient` manages geofences, requiring `ACCESS_FINE_LOCATION` and `ACCESS_BACKGROUND_LOCATION` permissions. It allows adding geofences via `addGeofences`, using a `GeofencingRequest` and a mutable `PendingIntent` for reporting transitions. Geofences are uniquely identified by a request ID. The client also supports removing geofences using either request IDs or a `PendingIntent` via `removeGeofences`. Geofences are automatically removed upon app reset.\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