Summary: dali-NUI
Version: 0.2.51
Release: 1
Summary: dali-NUI
Version: 0.2.51
Release: 1
-Group: Development/Libraries
License: Apache-2.0 and BSD-3-Clause and MIT
URL: https://www.tizen.org
Source0: %{name}-%{version}.tar.gz
License: Apache-2.0 and BSD-3-Clause and MIT
URL: https://www.tizen.org
Source0: %{name}-%{version}.tar.gz
\r
<ItemGroup>\r
<PackageReference Include="System.Reflection.TypeExtensions" Version="4.3.0" PrivateAssets="All" />\r
\r
<ItemGroup>\r
<PackageReference Include="System.Reflection.TypeExtensions" Version="4.3.0" PrivateAssets="All" />\r
- <PackageReference Include="Tizen.Applications.Common" Version="1.5.8" />\r
+ <PackageReference Include="Tizen.Applications.Common" Version="1.5.9" />\r
<PackageReference Include="Tizen.System.SystemSettings" Version="1.0.4" PrivateAssets="All"/>\r
</ItemGroup>\r
<Target Name="ChangeAliasesOfStrongNameAssemblies" BeforeTargets="FindReferenceAssembliesForReferences;ResolveReferences">\r
<PackageReference Include="Tizen.System.SystemSettings" Version="1.0.4" PrivateAssets="All"/>\r
</ItemGroup>\r
<Target Name="ChangeAliasesOfStrongNameAssemblies" BeforeTargets="FindReferenceAssembliesForReferences;ResolveReferences">\r
/// <param name="e">Event argument for Initialized</param>
private void OnInitialized(object source, NUIApplicationInitEventArgs e)
{
/// <param name="e">Event argument for Initialized</param>
private void OnInitialized(object source, NUIApplicationInitEventArgs e)
{
- Log.Debug("NUI", "NUICorebackend OnInitialized Called");
- var handler = Handlers[EventType.Created] as Action;
- handler?.Invoke();
+ Log.Debug("NUI", "NUICorebackend OnPreCreated Called");
+ var preCreateHandler = Handlers[EventType.PreCreated] as Action;
+ preCreateHandler?.Invoke();
+
+ Log.Debug("NUI", "NUICorebackend OnCreate Called");
+ var createHandler = Handlers[EventType.Created] as Action;
+ createHandler?.Invoke();
/// <summary>
/// Overrides this method if want to handle behavior.
/// </summary>
/// <summary>
/// Overrides this method if want to handle behavior.
/// </summary>
- protected void OnPause()
+ protected virtual void OnPause()
{
}
/// <summary>
/// Overrides this method if want to handle behavior.
/// </summary>
{
}
/// <summary>
/// Overrides this method if want to handle behavior.
/// </summary>
- protected void OnResume()
+ protected virtual void OnResume()
+ {
+ }
+
+ /// <summary>
+ /// Overrides this method if want to handle behavior.
+ /// </summary>
+ protected virtual void OnPreCreate()
- Log.Debug("NUI", "OnResume() is called!");
}
argsClone[0] = string.Empty;
}
argsClone[0] = string.Empty;
- Backend.AddEventHandler(EventType.Resumed, OnResume);
+ Backend.AddEventHandler(EventType.PreCreated, OnPreCreate);
+ Backend.AddEventHandler(EventType.Created, OnCreate);
Backend.AddEventHandler<AppControlReceivedEventArgs>(EventType.AppControlReceived, OnAppControlReceived);
Backend.AddEventHandler<AppControlReceivedEventArgs>(EventType.AppControlReceived, OnAppControlReceived);
+ Backend.AddEventHandler(EventType.Resumed, OnResume);
Backend.AddEventHandler(EventType.Paused, OnPause);
Backend.AddEventHandler(EventType.Terminated, OnTerminate);
Backend.AddEventHandler<RegionFormatChangedEventArgs>(EventType.RegionFormatChanged, OnRegionFormatChanged);
Backend.AddEventHandler<LowMemoryEventArgs>(EventType.LowMemory, OnLowMemory);
Backend.AddEventHandler<LowBatteryEventArgs>(EventType.LowBattery, OnLowBattery);
Backend.AddEventHandler<LocaleChangedEventArgs>(EventType.LocaleChanged, OnLocaleChanged);
Backend.AddEventHandler(EventType.Paused, OnPause);
Backend.AddEventHandler(EventType.Terminated, OnTerminate);
Backend.AddEventHandler<RegionFormatChangedEventArgs>(EventType.RegionFormatChanged, OnRegionFormatChanged);
Backend.AddEventHandler<LowMemoryEventArgs>(EventType.LowMemory, OnLowMemory);
Backend.AddEventHandler<LowBatteryEventArgs>(EventType.LowBattery, OnLowBattery);
Backend.AddEventHandler<LocaleChangedEventArgs>(EventType.LocaleChanged, OnLocaleChanged);
- Backend.AddEventHandler(EventType.Created, OnCreate);
Backend.Run(argsClone);
}
Backend.Run(argsClone);
}