Kodi Documentation 18.0
Kodi is an open source media player and entertainment hub.
CAndroidUtils Class Reference

#include <AndroidUtils.h>

Inheritance diagram for CAndroidUtils:
ISettingCallback

Public Member Functions

 CAndroidUtils ()
 
virtual ~CAndroidUtils ()
 
virtual bool GetNativeResolution (RESOLUTION_INFO *res) const
 
virtual bool SetNativeResolution (const RESOLUTION_INFO &res)
 
virtual bool ProbeResolutions (std::vector< RESOLUTION_INFO > &resolutions)
 
virtual bool UpdateDisplayModes ()
 
void OnSettingChanged (std::shared_ptr< const CSetting > setting) override
 The value of the given setting has changed. More...
 
- Public Member Functions inherited from ISettingCallback
virtual ~ISettingCallback ()=default
 
virtual bool OnSettingChanging (std::shared_ptr< const CSetting > setting)
 The value of the given setting is being changed. More...
 
virtual void OnSettingAction (std::shared_ptr< const CSetting > setting)
 The given setting has been activated. More...
 
virtual bool OnSettingUpdate (std::shared_ptr< CSetting > setting, const char *oldSettingId, const TiXmlNode *oldSettingNode)
 The given setting needs to be updated. More...
 
virtual void OnSettingPropertyChanged (std::shared_ptr< const CSetting > setting, const char *propertyName)
 The given property of the given setting has changed. More...
 

Static Public Attributes

static const std::string SETTING_LIMITGUI = "videoscreen.limitgui"
 

Protected Attributes

int m_width
 
int m_height
 

Constructor & Destructor Documentation

◆ CAndroidUtils()

CAndroidUtils::CAndroidUtils ( )

◆ ~CAndroidUtils()

CAndroidUtils::~CAndroidUtils ( )
virtual

Member Function Documentation

◆ GetNativeResolution()

bool CAndroidUtils::GetNativeResolution ( RESOLUTION_INFO res) const
virtual

◆ OnSettingChanged()

void CAndroidUtils::OnSettingChanged ( std::shared_ptr< const CSetting setting)
overridevirtual

The value of the given setting has changed.

This callback is triggered whenever the value of a setting has been successfully changed (i.e. none of the OnSettingChanging() handlers) has reverted the change.

Parameters
settingThe setting whose value has been changed

Reimplemented from ISettingCallback.

◆ ProbeResolutions()

bool CAndroidUtils::ProbeResolutions ( std::vector< RESOLUTION_INFO > &  resolutions)
virtual

◆ SetNativeResolution()

bool CAndroidUtils::SetNativeResolution ( const RESOLUTION_INFO res)
virtual

◆ UpdateDisplayModes()

bool CAndroidUtils::UpdateDisplayModes ( )
virtual

Member Data Documentation

◆ m_height

int CAndroidUtils::m_height
mutableprotected

◆ m_width

int CAndroidUtils::m_width
mutableprotected

◆ SETTING_LIMITGUI

const std::string CAndroidUtils::SETTING_LIMITGUI = "videoscreen.limitgui"
static

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