Ocean
Loading...
Searching...
No Matches
Ocean::Interaction::UserInterface Class Reference

This class holds UI elements of the application from which the interaction is executed. More...

#include <UserInterface.h>

Public Member Functions

 UserInterface ()=default
 Default constructor.
 
 UserInterface (UIWindow *window, UIViewController *viewController)
 Creates new user interface object for iOS applications.
 
UIWindow * window () const
 Returns the window of the application.
 
UIViewController * viewController () const
 Returns the view controller of the iOS application.
 
bool isIOS () const
 Returns whether this object holds UI elements for an iOS application.
 

Protected Attributes

bool isIOS_ = false
 True, in case this object holds UI elements for an iOS application.
 
UIWindow * window_ = nullptr
 The application's window; nullptr if not an iOS application.
 
UIViewController * viewController_ = nullptr
 The application's view controller; nullptr if not an iOS application.
 

Detailed Description

This class holds UI elements of the application from which the interaction is executed.

Constructor & Destructor Documentation

◆ UserInterface() [1/2]

Ocean::Interaction::UserInterface::UserInterface ( )
default

Default constructor.

◆ UserInterface() [2/2]

Ocean::Interaction::UserInterface::UserInterface ( UIWindow *  window,
UIViewController *  viewController 
)

Creates new user interface object for iOS applications.

Parameters
windowThe application's window, must be valid
viewControllerThe application's view controller, must be valid

Member Function Documentation

◆ isIOS()

bool Ocean::Interaction::UserInterface::isIOS ( ) const
inline

Returns whether this object holds UI elements for an iOS application.

Returns
True, if so

◆ viewController()

UIViewController * Ocean::Interaction::UserInterface::viewController ( ) const

Returns the view controller of the iOS application.

Returns
The application's view controller; nullptr if not an iOS application

◆ window()

UIWindow * Ocean::Interaction::UserInterface::window ( ) const

Returns the window of the application.

Returns
The application's window; nullptr if not an iOS application

Field Documentation

◆ isIOS_

bool Ocean::Interaction::UserInterface::isIOS_ = false
protected

True, in case this object holds UI elements for an iOS application.

◆ viewController_

UIViewController* Ocean::Interaction::UserInterface::viewController_ = nullptr
protected

The application's view controller; nullptr if not an iOS application.

◆ window_

UIWindow* Ocean::Interaction::UserInterface::window_ = nullptr
protected

The application's window; nullptr if not an iOS application.


The documentation for this class was generated from the following file: