To exit the main loop without restarting, the method is added.
Adds:
- ServiceApplication.ExitWithoutRestarting()
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
[DllImport(Libraries.AppcoreAgent, EntryPoint = "service_app_exit")]
internal static extern void Exit();
+ [DllImport(Libraries.AppcoreAgent, EntryPoint = "service_app_exit_without_restart")]
+ internal static extern void ExitWithoutRestarting();
+
[DllImport(Libraries.AppcoreAgent, EntryPoint = "service_app_add_event_handler")]
internal static extern ErrorCode AddEventHandler(out IntPtr handle, DefaultCoreBackend.AppEventType eventType, AppEventCallback callback, IntPtr data);
* limitations under the License.
*/
+using System.ComponentModel;
using Tizen.Applications.CoreBackend;
namespace Tizen.Applications
{
base.Run(args);
}
+
+ /// <summary>
+ /// Exits the main loop of the application without restarting.
+ /// </summary>
+ /// <since_tizen> 10 </since_tizen>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public void ExitWithoutRestarting()
+ {
+ Interop.Service.ExitWithoutRestarting();
+ }
}
}