using System; using System.Runtime.InteropServices; public static class NativeApi { public delegate void DialogCallback(int result); #if UNITY_IOS && !UNITY_EDITOR public static class AppInfo { [DllImport("__Internal")] public static extern IntPtr AppRuntimes_GetTestUserID(); [DllImport("__Internal")] public static extern int AppRuntimes_GetEnableUnityLog(); [DllImport("__Internal")] public static extern void AppRuntimes_FreeString(IntPtr value); } public static class TimeZone { [DllImport("__Internal")] public static extern IntPtr IOS_GetLocalTimeZoneId(); [DllImport("__Internal")] public static extern void IOS_FreeCString(IntPtr pointer); } public static class Dialog { [DllImport("__Internal")] public static extern void AppRuntimes_ShowDialog(string message, DialogCallback callback); [DllImport("__Internal")] public static extern void AppRuntimes_ShowRetryDialog(string message, DialogCallback callback); } #endif }