1cf879db3666523404ff7e15e77b11434732b4a06Wyatt Riley/*
2cf879db3666523404ff7e15e77b11434732b4a06Wyatt Riley * Copyright (C) 2017 The Android Open Source Project
3cf879db3666523404ff7e15e77b11434732b4a06Wyatt Riley *
4cf879db3666523404ff7e15e77b11434732b4a06Wyatt Riley * Licensed under the Apache License, Version 2.0 (the "License");
5cf879db3666523404ff7e15e77b11434732b4a06Wyatt Riley * you may not use this file except in compliance with the License.
6cf879db3666523404ff7e15e77b11434732b4a06Wyatt Riley * You may obtain a copy of the License at
7cf879db3666523404ff7e15e77b11434732b4a06Wyatt Riley *
8cf879db3666523404ff7e15e77b11434732b4a06Wyatt Riley *      http://www.apache.org/licenses/LICENSE-2.0
9cf879db3666523404ff7e15e77b11434732b4a06Wyatt Riley *
10cf879db3666523404ff7e15e77b11434732b4a06Wyatt Riley * Unless required by applicable law or agreed to in writing, software
11cf879db3666523404ff7e15e77b11434732b4a06Wyatt Riley * distributed under the License is distributed on an "AS IS" BASIS,
12cf879db3666523404ff7e15e77b11434732b4a06Wyatt Riley * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13cf879db3666523404ff7e15e77b11434732b4a06Wyatt Riley * See the License for the specific language governing permissions and
14cf879db3666523404ff7e15e77b11434732b4a06Wyatt Riley * limitations under the License.
15cf879db3666523404ff7e15e77b11434732b4a06Wyatt Riley */
16cf879db3666523404ff7e15e77b11434732b4a06Wyatt Riley
17cf879db3666523404ff7e15e77b11434732b4a06Wyatt Rileypackage android.location;
18cf879db3666523404ff7e15e77b11434732b4a06Wyatt Riley
19cf879db3666523404ff7e15e77b11434732b4a06Wyatt Rileyimport android.annotation.IntDef;
20cf879db3666523404ff7e15e77b11434732b4a06Wyatt Rileyimport android.annotation.SystemApi;
21cf879db3666523404ff7e15e77b11434732b4a06Wyatt Riley
22cf879db3666523404ff7e15e77b11434732b4a06Wyatt Rileyimport java.lang.annotation.Retention;
23cf879db3666523404ff7e15e77b11434732b4a06Wyatt Rileyimport java.lang.annotation.RetentionPolicy;
24cf879db3666523404ff7e15e77b11434732b4a06Wyatt Rileyimport java.util.List;
25cf879db3666523404ff7e15e77b11434732b4a06Wyatt Riley
26cf879db3666523404ff7e15e77b11434732b4a06Wyatt Riley/**
27cf879db3666523404ff7e15e77b11434732b4a06Wyatt Riley * Used for receiving notifications from the LocationManager when
28cf879db3666523404ff7e15e77b11434732b4a06Wyatt Riley * the a batch of location is ready. These methods are called if the
29cf879db3666523404ff7e15e77b11434732b4a06Wyatt Riley * BatchedLocationCallback has been registered with the location manager service
30cf879db3666523404ff7e15e77b11434732b4a06Wyatt Riley * using the
31cf879db3666523404ff7e15e77b11434732b4a06Wyatt Riley * {@link LocationManager#registerGnssBatchedLocationCallback#startGnssBatch(long,
32cf879db3666523404ff7e15e77b11434732b4a06Wyatt Riley * boolean, BatchedLocationCallback, android.os.Handler)} method.
33cf879db3666523404ff7e15e77b11434732b4a06Wyatt Riley * @hide
34cf879db3666523404ff7e15e77b11434732b4a06Wyatt Riley */
35cf879db3666523404ff7e15e77b11434732b4a06Wyatt Riley@SystemApi
36cf879db3666523404ff7e15e77b11434732b4a06Wyatt Rileypublic abstract class BatchedLocationCallback {
37cf879db3666523404ff7e15e77b11434732b4a06Wyatt Riley
38cf879db3666523404ff7e15e77b11434732b4a06Wyatt Riley    /**
39cf879db3666523404ff7e15e77b11434732b4a06Wyatt Riley     * Called when a new batch of locations is ready
40cf879db3666523404ff7e15e77b11434732b4a06Wyatt Riley     *
41cf879db3666523404ff7e15e77b11434732b4a06Wyatt Riley     * @param locations A list of all new locations (possibly zero of them.)
42cf879db3666523404ff7e15e77b11434732b4a06Wyatt Riley     */
43cf879db3666523404ff7e15e77b11434732b4a06Wyatt Riley    public void onLocationBatch(List<Location> locations) {}
44cf879db3666523404ff7e15e77b11434732b4a06Wyatt Riley}
45