blob: b8e927e2fefe3066d27743ccc5016bf7265ce92a [file] [log] [blame]
Jaikumar Ganeshda650892013-04-17 12:19:10 -07001/*
2 * Copyright (C) 2013 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17package android.hardware.location;
18
19import android.location.Location;
20
21/**
22 * The callback class associated with the status change of hardware montiors
23 * in {@link GeofenceHardware}
24 */
25public abstract class GeofenceHardwareMonitorCallback {
26 /**
27 * The callback called when the state of a monitoring system changes.
28 * {@link GeofenceHardware#MONITORING_TYPE_GPS_HARDWARE} is an example of a
29 * monitoring system
30 *
31 * @param monitoringType The type of the monitoring system.
32 * @param available Indicates whether the system is currenty available or not.
33 * @param location The last known location according to the monitoring system.
34 */
35 public void onMonitoringSystemChange(int monitoringType, boolean available, Location location) {
36 }
37}