Files
FlaxEngine/Source/Engine/Platform/iOS/iOSPlatform.h
2023-06-01 00:46:39 +02:00

33 lines
846 B
C++

// Copyright (c) 2012-2023 Wojciech Figat. All rights reserved.
#pragma once
#if PLATFORM_IOS
#include "../Apple/ApplePlatform.h"
/// <summary>
/// The iOS platform implementation and application management utilities.
/// </summary>
class FLAXENGINE_API iOSPlatform : public ApplePlatform
{
public:
// Runs the callback on a main UI thread (from iOS). Can optionally wait for execution end to sync.
static void RunOnUIThread(const Function<void()>& func, bool wait = false);
public:
// [ApplePlatform]
static bool Init();
static void LogInfo();
static void Tick();
static int32 GetDpi();
static Guid GetUniqueDeviceId();
static String GetComputerName();
static Float2 GetDesktopSize();
static String GetMainDirectory();
static Window* CreateWindow(const CreateWindowSettings& settings);
};
#endif