2 * Copyright (c) 2021 Samsung Electronics Co., Ltd.
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
8 * http://www.apache.org/licenses/LICENSE-2.0
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.
18 #include <dali/internal/sensor/common/tilt-sensor-impl.h>
26 TiltSensor::TiltSensor() = default;
28 TiltSensor::~TiltSensor() = default;
30 bool TiltSensor::Start()
35 void TiltSensor::Stop()
39 bool TiltSensor::IsStarted() const
44 float TiltSensor::GetRoll() const
49 float TiltSensor::GetPitch() const
54 Quaternion TiltSensor::GetRotation() const
56 return Quaternion::IDENTITY;
59 TiltSensor::TiltedSignalType& TiltSensor::TiltedSignal()
61 static TiltSensor::TiltedSignalType signal;
65 void TiltSensor::SetUpdateFrequency(float frequencyHertz)
69 float TiltSensor::GetUpdateFrequency() const
74 void TiltSensor::SetRotationThreshold(Radian rotationThreshold)
79 * @copydoc Dali::TiltSensor::GetRotationThreshold()
81 Radian TiltSensor::GetRotationThreshold() const
87 * Connects a callback function with the object's signals.
88 * @param[in] object The object providing the signal.
89 * @param[in] tracker Used to disconnect the signal.
90 * @param[in] signalName The signal to connect to.
91 * @param[in] functor A newly allocated FunctorDelegate.
92 * @return True if the signal was connected.
93 * @post If a signal was connected, ownership of functor was passed to CallbackBase. Otherwise the caller is responsible for deleting the unused functor.
95 bool TiltSensor::DoConnectSignal(BaseObject* object, ConnectionTrackerInterface* tracker, const std::string& signalName, FunctorDelegate* functor)
100 } // namespace Adaptor
102 } // namespace Internal