Timer Dali::定时器信号函数
我想在tizen应用程序中使用定时器,我将每10秒获得一次信号。我做了一些挖掘,发现有函数Dali::Timer::TickSignal(),但我对如何使用该函数感到困惑? 有人能帮我举个简单的例子吗?来自: TimerSignalType&Dali::Timer::TickSignal()Timer Dali::定时器信号函数,timer,tizen,dali,Timer,Tizen,Dali,我想在tizen应用程序中使用定时器,我将每10秒获得一次信号。我做了一些挖掘,发现有函数Dali::Timer::TickSignal(),但我对如何使用该函数感到困惑? 有人能帮我举个简单的例子吗?来自: TimerSignalType&Dali::Timer::TickSignal() Signal emitted after specified time interval. The return of the callback decides whether signal emissi
Signal emitted after specified time interval.
The return of the callback decides whether signal emission
stops or continues. If the callback function returns false, emission will
stop and if true, it will continue. This return value is ignored for
one-shot events, which will always stop after the first execution.
Returns:
The signal to Connect() with
Since:
2.4, DALi version 1.0.0
您还可以在github.com中请求获取示例:非常简单,您可以添加控制器的回调函数,如:
static Timer timer = Dali::Timer::New(10000);
timer.Start();
timer.TickSignal().Connect(this, &YourController::callbackFunction);
and callback function like:
bool callbackFunction(){
return true;
}
我阅读了文档,但未能实现。我需要一些类型的示例代码