<Project Sdk="Microsoft.NET.Sdk">\r
\r
<PropertyGroup>\r
- <Version>0.2.49</Version>\r
+ <Version>0.2.50</Version>\r
<Authors>Samsung Electronics</Authors>\r
<Copyright>© Samsung Electronics Co., Ltd All Rights Reserved</Copyright>\r
<Description>\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
/// <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>
/// <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>
- 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!");
}
/// <summary>
}
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(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.Created, OnCreate);
Backend.Run(argsClone);
}