Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
Loading...
Searching...
No Matches
CAndroidUtils Class Reference

#include <AndroidUtils.h>

Inheritance diagram for CAndroidUtils:
ISettingCallback

Public Member Functions

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

Static Public Member Functions

static bool SupportsMediaCodecMimeType (const std::string &mimeType)
 
static std::vector< intGetDisplaySupportedHdrTypes ()
 
static CHDRCapabilities GetDisplayHDRCapabilities ()
 
static std::pair< bool, boolGetDolbyVisionCapabilities ()
 

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 ( )
overridedefault

Member Function Documentation

◆ GetDisplayHDRCapabilities()

CHDRCapabilities CAndroidUtils::GetDisplayHDRCapabilities ( )
static

◆ GetDisplaySupportedHdrTypes()

std::vector< int > CAndroidUtils::GetDisplaySupportedHdrTypes ( )
static

◆ GetDolbyVisionCapabilities()

std::pair< bool, bool > CAndroidUtils::GetDolbyVisionCapabilities ( )
static

◆ GetNativeResolution()

bool CAndroidUtils::GetNativeResolution ( RESOLUTION_INFO * res) const

◆ IsHDRDisplay()

bool CAndroidUtils::IsHDRDisplay ( )

◆ OnSettingChanged()

void CAndroidUtils::OnSettingChanged ( const 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)

◆ SetNativeResolution()

bool CAndroidUtils::SetNativeResolution ( const RESOLUTION_INFO & res)

◆ SupportsMediaCodecMimeType()

bool CAndroidUtils::SupportsMediaCodecMimeType ( const std::string & mimeType)
static

◆ UpdateDisplayModes()

bool CAndroidUtils::UpdateDisplayModes ( )

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: