Ocean
Loading...
Searching...
No Matches
platform/apple/ios/System.h
Go to the documentation of this file.
1/*
2 * Copyright (c) Meta Platforms, Inc. and affiliates.
3 *
4 * This source code is licensed under the MIT license found in the
5 * LICENSE file in the root directory of this source tree.
6 */
7
8#ifndef META_OCEAN_PLATFORM_APPLE_IOS_SYSTEM_H
9#define META_OCEAN_PLATFORM_APPLE_IOS_SYSTEM_H
10
12
13namespace Ocean
14{
15
16namespace Platform
17{
18
19namespace Apple
20{
21
22namespace IOS
23{
24
25/**
26 * This class implements system functions on Apple iOS platforms.
27 * @ingroup platformappleios
28 */
29class System
30{
31 public:
32
33 /**
34 * Returns the name of the current iPhone model.
35 * @param name The resulting name of the current device platform
36 * @return True, if succeeded
37 */
38 static bool iphoneModelName(std::string& name);
39
40 /**
41 * Returns the version of iOS running on the current device.
42 * @param version The resulting version of the operating system
43 * @return True, if succeeded
44 */
45 static bool iosVersion(std::string& version);
46};
47
48}
49
50}
51
52}
53
54}
55
56#endif // META_OCEAN_PLATFORM_APPLE_IOS_SYSTEM_H
This class implements system functions on Apple iOS platforms.
Definition platform/apple/ios/System.h:30
static bool iphoneModelName(std::string &name)
Returns the name of the current iPhone model.
static bool iosVersion(std::string &version)
Returns the version of iOS running on the current device.
The namespace covering the entire Ocean framework.
Definition Accessor.h:15