Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/redis/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Timer Dali::定时器信号函数_Timer_Tizen_Dali - Fatal编程技术网

Timer Dali::定时器信号函数

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

我想在tizen应用程序中使用定时器,我将每10秒获得一次信号。我做了一些挖掘,发现有函数Dali::Timer::TickSignal(),但我对如何使用该函数感到困惑? 有人能帮我举个简单的例子吗?

来自:

TimerSignalType&Dali::Timer::TickSignal()

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;
}

我阅读了文档,但未能实现。我需要一些类型的示例代码