mInstanceId = instanceId;
+ // Set UpdatePeriod
+ if( mUpdatePeriod > 0.0f)
+ {
+ widget_instance_h instance = widget_instance_get_instance( mWidgetId.c_str(), mInstanceId.c_str() );
+ if( !instance )
+ {
+ DALI_LOG_INFO( gWidgetViewLogging, Debug::Verbose, "WidgetView::OnInitialize: widget_instance_get_instance is failed. [%s]\n", mInstanceId.c_str() );
+ return;
+ }
+ ret = widget_instance_set_period( instance, mUpdatePeriod );
+ if( ret < 0 )
+ {
+ DALI_LOG_INFO( gWidgetViewLogging, Debug::Verbose, "WidgetView::OnInitialize: widget_instance_set_period is failed [%s].\n", mWidgetId.c_str() );
+ return;
+ }
+ }
+
// Preview image
widget_service_get_size_type( mWidth, mHeight, &sizeType );