• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (c) 2023 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 #include "ohos_adapter/bridge/ark_location_request_config_wrapper.h"
17 
18 namespace OHOS::ArkWeb {
19 
ArkLocationRequestConfigWrapper(ArkWebRefPtr<ArkLocationRequestConfig> ref)20 ArkLocationRequestConfigWrapper::ArkLocationRequestConfigWrapper(ArkWebRefPtr<ArkLocationRequestConfig> ref)
21     : ctocpp_(ref)
22 {}
23 
SetScenario(int32_t scenario)24 void ArkLocationRequestConfigWrapper::SetScenario(int32_t scenario)
25 {
26     ctocpp_->SetScenario(scenario);
27 }
SetFixNumber(int32_t number)28 void ArkLocationRequestConfigWrapper::SetFixNumber(int32_t number)
29 {
30     ctocpp_->SetFixNumber(number);
31 }
SetMaxAccuracy(int32_t maxAccuary)32 void ArkLocationRequestConfigWrapper::SetMaxAccuracy(int32_t maxAccuary)
33 {
34     ctocpp_->SetMaxAccuracy(maxAccuary);
35 }
SetDistanceInterval(int32_t disInterval)36 void ArkLocationRequestConfigWrapper::SetDistanceInterval(int32_t disInterval)
37 {
38     ctocpp_->SetDistanceInterval(disInterval);
39 }
SetTimeInterval(int32_t timeInterval)40 void ArkLocationRequestConfigWrapper::SetTimeInterval(int32_t timeInterval)
41 {
42     ctocpp_->SetTimeInterval(timeInterval);
43 }
SetPriority(int32_t priority)44 void ArkLocationRequestConfigWrapper::SetPriority(int32_t priority)
45 {
46     ctocpp_->SetPriority(priority);
47 }
48 
49 } // namespace OHOS::ArkWeb
50