1/*
2 * Copyright (C) 2016 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.location;
18
19/**
20 * Used for receiving notifications when GNSS events happen.
21 * @removed
22 */
23public abstract class GnssStatusCallback {
24    /**
25     * Called when GNSS system has started.
26     */
27    public void onStarted() {}
28
29    /**
30     * Called when GNSS system has stopped.
31     */
32    public void onStopped() {}
33
34    /**
35     * Called when the GNSS system has received its first fix since starting.
36     * @param ttffMillis the time from start to first fix in milliseconds.
37     */
38    public void onFirstFix(int ttffMillis) {}
39
40    /**
41     * Called periodically to report GNSS satellite status.
42     * @param status the current status of all satellites.
43     */
44    public void onSatelliteStatusChanged(GnssStatus status) {}
45}
46