AI-generated Key Takeaways
-
Annotations define constants and types related to activity transitions and geofencing.
-
Interfaces provide main entry points and listeners for activity recognition, location, device orientation, and geofencing, with some deprecated interfaces pointing to newer GoogleApi-based clients.
-
Classes represent various components and results related to activity recognition, transitions, location requests and results, geofencing events and requests, device orientation, and sleep tracking.
-
Many deprecated interfaces suggest transitioning to corresponding GoogleApi-based client classes for interacting with location and activity recognition services.
Annotations
| ActivityTransition.SupportedActivityTransition | Activity transition constants annotation. |
| Geofence.GeofenceTransition | Geofence transition event. |
| Geofence.TransitionTypes | Geofence transition types of interest, as either 0
or a bitwise-OR of GEOFENCE_TRANSITION_ flags. |
| GeofencingRequest.InitialTrigger | The triggering behavior at the moment when the geofences are added. |
| Granularity | Location granularity levels to be used with APIs
within FusedLocationProviderClient. |
| Priority | Location power vs accuracy priority levels to be
used with APIs within FusedLocationProviderClient. |
Interfaces
| ActivityRecognitionApi | This interface is deprecated. Use the
GoogleApi-based API ActivityRecognitionClient
instead. |
| ActivityRecognitionClient | The main entry point for interacting with activity recognition. |
| DeviceOrientationListener | A listener for receiving device orientation from
the
FusedOrientationProviderClient. |
| FusedLocationProviderApi | This interface is deprecated. Use the
GoogleApi-based API FusedLocationProviderClient
instead. |
| FusedLocationProviderClient | The main entry point for interacting with the Fused Location Provider (FLP). |
| FusedOrientationProviderClient | The main entry point for interacting with the Fused Orientation Provider (FOP). |
| Geofence | Represents a geographical region, also known as a geofence. |
| GeofencingApi | This interface is deprecated. Use the
GoogleApi-based API GeofencingClient
instead. |
| GeofencingClient | The main entry point for interacting with geofencing. |
| LocationListener | A listener for receiving locations from the
FusedLocationProviderClient. |
| SettingsApi | This interface is deprecated. Use
GoogleApi-based API SettingsClient
instead. |
| SettingsClient | The main entry point for interacting with the location settings-enabler APIs. |
Classes
| ActivityRecognition | The main entry point for activity recognition integration. |
| ActivityRecognitionResult | Result of an activity recognition. |
| ActivityTransition | Represents an activity and the transition of it. |
| ActivityTransition.Builder | The builder to help create an ActivityTransition
object. |
| ActivityTransitionEvent | Represents an activity transition event, for example start to walk, stop running etc. |
| ActivityTransitionRequest | The request object for apps to get notified when user's activity changes. |
| ActivityTransitionResult | Represents the result of activity transitions. |
| CurrentLocationRequest | An encapsulation of various parameters for
requesting the current location through FusedLocationProviderClient. |
| CurrentLocationRequest.Builder | A builder for CurrentLocationRequest. |
| DetectedActivity | The detected activity of the device with an an associated confidence. |
| DeviceOrientation | Data class used to represent a device orientation
and returned by
FusedOrientationProviderClient to registered DeviceOrientationListeners. |
| DeviceOrientation.Builder | A builder for DeviceOrientation. |
| DeviceOrientationRequest | An encapsulation of various parameters for
requesting device orientation through
FusedOrientationProviderClient. |
| DeviceOrientationRequest.Builder | A builder for DeviceOrientationRequest. |
| Geofence.Builder | A builder that builds Geofence. |
| GeofenceStatusCodes | Geofence specific status codes, for use in
Status.getStatusCode()
|
| GeofencingEvent | Represents an event from the GeofencingClient
API. |
| GeofencingRequest | Specifies the list of geofences to be monitored and how the geofence notifications should be reported. |
| GeofencingRequest.Builder | A builder for GeofencingRequest. |
| LastLocationRequest | An encapsulation of various parameters for
requesting a (cached) last location through FusedLocationProviderClient. |
| LastLocationRequest.Builder | A builder for LastLocationRequest. |
| LocationAvailability | Information on the availability of location data. |
| LocationCallback | A callback for receiving locations from the
FusedLocationProviderClient. |
| LocationRequest | An encapsulation of various parameters for
requesting location through FusedLocationProviderClient. |
| LocationRequest.Builder | Builder for LocationRequest. |
| LocationResult | A data class representing a geographic location result from the fused location provider. |
| LocationServices | The main entry point for location services integration. |
| LocationSettingsRequest | Specifies the types of location services the client is interested in using. |
| LocationSettingsRequest.Builder | A builder that builds LocationSettingsRequest. |
| LocationSettingsResponse | Successful response of checking settings via
SettingsApi.checkLocationSettings(GoogleApiClient,
LocationSettingsRequest). |
| LocationSettingsResult | Result of checking settings via
SettingsApi.checkLocationSettings(GoogleApiClient, LocationSettingsRequest),
indicates whether a dialog should be shown to ask the user's consent to change their
settings. |
| LocationSettingsStates | Stores the current states of all location-related settings. |
| LocationSettingsStatusCodes | Location settings specific status codes, for use
in Status.getStatusCode()
|
| LocationStatusCodes | This class is deprecated. Use GeofenceStatusCodes.
|
| SleepClassifyEvent | Represents a sleep classification event including the classification timestamp, the sleep confidence, and the supporting data such as device motion and ambient light level. |
| SleepSegmentEvent | Represents the result of segmenting sleep after the user is awake. |
| SleepSegmentRequest | A request object that specifies what data to receive from the Sleep API. |