using System;
using System.Runtime.InteropServices;
-using Tizen.Applications;
using Tizen.Applications.CoreBackend;
using Tizen.Internals.Errors;
internal delegate void AppControlCallback(IntPtr appControl, IntPtr userData);
-
- [DllImport(Libraries.Application, EntryPoint = "app_get_device_orientation")]
- internal static extern DeviceOrientation AppGetDeviceOrientation();
-
[DllImport(Libraries.Application, EntryPoint = "ui_app_main")]
internal static extern ErrorCode Main(int argc, string[] argv, ref UIAppLifecycleCallbacks callback, IntPtr userData);
{
}
- /// <summary>
- /// Gets the current device orientation.
- /// </summary>
- /// <since_tizen> 6 </since_tizen>
- static public DeviceOrientation CurrentDeviceOrientation
- {
- get
- {
- return Interop.Application.AppGetDeviceOrientation();
- }
- }
-
/// <summary>
/// Occurs whenever the application is resumed.
/// </summary>