iOS_utils.h 669 B

1234567891011121314151617181920212223242526272829303132
  1. /*
  2. * iOS_utils.h, part of VCMI engine
  3. *
  4. * Authors: listed in file AUTHORS in main folder
  5. *
  6. * License: GNU General Public License v2.0 or later
  7. * Full text of license available in license.txt file, in main folder
  8. *
  9. */
  10. #pragma once
  11. #include <TargetConditionals.h>
  12. #pragma GCC visibility push(default)
  13. namespace iOS_utils
  14. {
  15. const char *documentsPath();
  16. const char *cachesPath();
  17. #if TARGET_OS_SIMULATOR
  18. const char *hostApplicationSupportPath();
  19. #endif
  20. const char *bundlePath();
  21. const char *frameworksPath();
  22. const char *bundleIdentifier();
  23. bool isOsVersionAtLeast(unsigned int osMajorVersion);
  24. void keepScreenOn(bool isEnabled);
  25. }
  26. #pragma GCC visibility pop