8 #ifndef META_OCEAN_INTERACTION_USER_INTERFACE_H
9 #define META_OCEAN_INTERACTION_USER_INTERFACE_H
13 #if defined(OCEAN_PLATFORM_BUILD_APPLE_IOS_ANY) && defined(__OBJC__)
14 #import <UIKit/UIKit.h>
36 #if defined(OCEAN_PLATFORM_BUILD_APPLE_IOS_ANY) && defined(__OBJC__)
62 inline bool isIOS()
const;
69 #if defined(OCEAN_PLATFORM_BUILD_APPLE_IOS_ANY) && defined(__OBJC__)
72 UIWindow* window_ =
nullptr;
75 UIViewController* viewController_ =
nullptr;
This class holds UI elements of the application from which the interaction is executed.
Definition: UserInterface.h:28
bool isIOS_
True, in case this object holds UI elements for an iOS application.
Definition: UserInterface.h:67
UIViewController * viewController() const
Returns the view controller of the iOS application.
UIWindow * window() const
Returns the window of the application.
bool isIOS() const
Returns whether this object holds UI elements for an iOS application.
Definition: UserInterface.h:80
UserInterface(UIWindow *window, UIViewController *viewController)
Creates new user interface object for iOS applications.
UserInterface()=default
Default constructor.
The namespace covering the entire Ocean framework.
Definition: Accessor.h:15