|
1 | 1 | /*
|
2 |
| - Copyright 2020-2022. Huawei Technologies Co., Ltd. All rights reserved. |
| 2 | + Copyright 2020-2023. Huawei Technologies Co., Ltd. All rights reserved. |
3 | 3 |
|
4 | 4 | Licensed under the Apache License, Version 2.0 (the "License")
|
5 | 5 | you may not use this file except in compliance with the License.
|
|
23 | 23 | import java.util.Map;
|
24 | 24 | import java.util.Set;
|
25 | 25 |
|
26 |
| -import io.flutter.plugin.common.MethodCall; |
27 |
| -import io.flutter.plugin.common.MethodChannel; |
28 |
| - |
29 |
| -/** |
30 |
| - * HMSAnalyticsContract defines a blueprint of {@link HMSAnalyticsModule} methods that will be exposed to Flutter Side. |
31 |
| - * |
32 |
| - * @since v.5.1.0 |
33 |
| - */ |
34 | 26 | public interface HMSAnalyticsContract {
|
35 | 27 | /**
|
36 | 28 | * Defines blueprints of {@link HMSAnalyticsViewModel} methods
|
@@ -174,20 +166,20 @@ interface Presenter {
|
174 | 166 | void getReportPolicyThreshold(final HMSAnalyticsContract.ResultListener<Long> resultListener, ReportPolicy reportPolicyType);
|
175 | 167 |
|
176 | 168 | /**
|
177 |
| - * Specifies whether to enable restriction of HUAWEI Analytics. |
| 169 | + * Specifies whether to enable restriction of Huawei Analytics. |
178 | 170 | * <p>
|
179 |
| - * The default value is false, which indicates that HUAWEI Analytics is enabled by default. |
| 171 | + * The default value is false, which indicates that Huawei Analytics is enabled by default. |
180 | 172 | *
|
181 |
| - * @param isEnabled: Indicates whether to enable restriction of HUAWEI Analytics. |
| 173 | + * @param isEnabled: Indicates whether to enable restriction of Huawei Analytics. |
182 | 174 | */
|
183 | 175 | void setRestrictionEnabled(final boolean isEnabled);
|
184 | 176 |
|
185 | 177 | /**
|
186 |
| - * Obtains the restriction status of HUAWEI Analytics. |
| 178 | + * Obtains the restriction status of Huawei Analytics. |
187 | 179 | *
|
188 | 180 | * @param resultListener: In the success scenario, {@link HMSAnalyticsContract.ResultListener<Boolean>} instance
|
189 | 181 | * is returned via listener. {@param resultListener} that obtains the restriction status
|
190 |
| - * of HUAWEI Analytics. |
| 182 | + * of Huawei Analytics. |
191 | 183 | */
|
192 | 184 | void isRestrictionEnabled(final HMSAnalyticsContract.ResultListener<Boolean> resultListener);
|
193 | 185 |
|
@@ -262,6 +254,15 @@ interface Presenter {
|
262 | 254 | */
|
263 | 255 | void enableLog();
|
264 | 256 |
|
| 257 | + /** |
| 258 | + * Obtains the app instance ID from AppGallery Connect. |
| 259 | + * |
| 260 | + * @param resultListener: In the success scenario, {@link HMSAnalyticsContract.ResultListener<String>} instance |
| 261 | + * is returned via listener. {@param resultListener} that obtains the processing location |
| 262 | + * of the uploaded data. |
| 263 | + */ |
| 264 | + void getDataUploadSiteInfo(final HMSAnalyticsContract.ResultListener<String> resultListener); |
| 265 | + |
265 | 266 | }
|
266 | 267 |
|
267 | 268 | /**
|
|
0 commit comments