Search code examples
timertizendali

Dali::Timer TickSignal function


I want use timer in tizen application where I will get the signal every 10 seconds. I did some digging and find out that there is function Dali::Timer::TickSignal() but i am getting confuse on how to use that function? Can anyone help with brief example?


Solution

  • It's really simple you can just add the callback function of your controller like:

    static Timer timer = Dali::Timer::New(10000);
    timer.Start();
    timer.TickSignal().Connect(this, &YourController::callbackFunction);
    
    and callback function like:
    
    bool callbackFunction(){
    
        return true;
    }