1/*
2 * Copyright (c) 2024 Huawei Device Co., Ltd.
3 * Licensed under the Apache License, Version 2.0 (the "License");
4 * you may not use this file except in compliance with the License.
5 * You may obtain a copy of the License at
6 *
7 *     http://www.apache.org/licenses/LICENSE-2.0
8 *
9 * Unless required by applicable law or agreed to in writing, software
10 * distributed under the License is distributed on an "AS IS" BASIS,
11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 * See the License for the specific language governing permissions and
13 * limitations under the License.
14 */
15
16/*
17 * @addtogroup HdiGnss
18 * @{
19 *
20 * @brief Provides unified APIs for GNSS Measurement.
21 *
22 * @since 5.0
23 * @version 1.0
24 */
25
26/*
27 * @file IGnssMeasurementCallback.idl
28 *
29 * @brief Declares the callbacks for reporting GNSS Measurement information.
30 *
31 * @since 5.0
32 * @version 1.0
33 */
34
35package ohos.hdi.location.gnss.v2_0;
36
37import ohos.hdi.location.gnss.v2_0.GnssTypes;
38
39/*
40 * @brief Declares the callback for reporting GNSS Measurement information.
41 *
42 * @since 5.0
43 * @version 1.0
44 */
45[callback] interface IGnssMeasurementCallback {
46    /*
47     * @brief Reporting GNSS Measurement information.
48     *
49     * @param data Indicates GNSS measurement information. For details, see {@Link GnssMeasurementInfo}.
50     * @return Returns <b>0</b> If the GNSS Measurement information reporting is successful; returns a negative value otherwise.
51     *
52     * @since 5.0
53     * @version 1.0
54     */
55    ReportGnssMeasurementInfo([in] struct GnssMeasurementInfo data);
56}
57/** @} */