/*
- * Copyright (c) 2021 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2023 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
DisplayValue(mValue, true);
if(Self() == Dali::Accessibility::Accessible::GetCurrentlyHighlightedActor())
{
- GetAccessibleObject()->Emit(Dali::Accessibility::ObjectPropertyChangeEvent::VALUE);
+ auto accessible = GetAccessibleObject();
+ if(DALI_LIKELY(accessible))
+ {
+ accessible->Emit(Dali::Accessibility::ObjectPropertyChangeEvent::VALUE);
+ }
}
}
return self.GetProperty(Toolkit::Slider::Property::VALUE).Get<float>();
}
+std::string Slider::SliderAccessible::GetValueText() const
+{
+ return {}; // Text mode is not used at the moment
+}
+
double Slider::SliderAccessible::GetMaximum() const
{
auto self = Toolkit::Slider::DownCast(Self());
if(current < GetMinimum() || current > GetMaximum())
return false;
- auto self = Toolkit::Slider::DownCast(Self());
+ auto self = Toolkit::Slider::DownCast(Self());
auto& impl = Toolkit::GetImpl(self);
const float prev = self.GetProperty<float>(Toolkit::Slider::Property::VALUE);