iOS_utils.h 822 B

1234567891011121314151617181920212223242526272829303132333435363738
  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. #include <string>
  13. #pragma GCC visibility push(default)
  14. namespace iOS_utils
  15. {
  16. const char *documentsPath();
  17. const char *cachesPath();
  18. // share file using system share sheet (e.g. Mail app)
  19. void shareFile(const std::string & filePath);
  20. std::string iphoneHardwareId();
  21. #if TARGET_OS_SIMULATOR
  22. const char *hostApplicationSupportPath();
  23. #endif
  24. const char *bundlePath();
  25. const char *frameworksPath();
  26. const char *bundleIdentifier();
  27. bool isOsVersionAtLeast(unsigned int osMajorVersion);
  28. void keepScreenOn(bool isEnabled);
  29. }
  30. #pragma GCC visibility pop