| 
    Kodi Documentation 22.0
    
   Kodi is an open source media player and entertainment hub. 
   | 
 
Kodi's addon class. More...
Topics | |
| Settings | |
| Add-on settings  | |
Classes | |
| class | XBMCAddon::xbmcaddon::Addon | 
Functions | |
| XBMCAddon::xbmcaddon::Addon::Addon (const char *id=NULL) | |
| XBMCAddon::xbmcaddon::Addon::~Addon () override | |
| XBMCAddon::xbmcaddon::Addon::getLocalizedString (...) | |
 
 | |
| XBMCAddon::xbmcaddon::Addon::getSettings (...) | |
 
 | |
| XBMCAddon::xbmcaddon::Addon::getSetting (...) | |
 
 | |
| XBMCAddon::xbmcaddon::Addon::getSettingBool (...) | |
 
 | |
| XBMCAddon::xbmcaddon::Addon::getSettingInt (...) | |
 
 | |
| XBMCAddon::xbmcaddon::Addon::getSettingNumber (...) | |
 
 | |
| XBMCAddon::xbmcaddon::Addon::getSettingString (...) | |
 
 | |
| XBMCAddon::xbmcaddon::Addon::setSetting (...) | |
 
 | |
| XBMCAddon::xbmcaddon::Addon::setSettingBool (...) | |
 
 | |
| XBMCAddon::xbmcaddon::Addon::setSettingInt (...) | |
 
 | |
| XBMCAddon::xbmcaddon::Addon::setSettingNumber (...) | |
 
 | |
| XBMCAddon::xbmcaddon::Addon::setSettingString (...) | |
 
 | |
| XBMCAddon::xbmcaddon::Addon::openSettings () | |
 
 | |
| XBMCAddon::xbmcaddon::Addon::getAddonInfo (...) | |
 
 | |
Kodi's addon class.
Offers classes and functions that manipulate the add-on settings, information and localization.
Class:  xbmcaddon.Addon([id]) Creates a new AddOn class.
| id | [opt] string - id of the addon as specified in addon.xml | 
Example:
      
  | 
  explicit | 
| String XBMCAddon::xbmcaddon::Addon::getAddonInfo | ( | ... | ) | 
Function:  xbmcaddon.Addon([id]).getAddonInfo(id) | id | string - id of the property that the module needs to access. | 
| author | changelog | description | disclaimer | 
| fanart | icon | id | name | 
| path | profile | stars | summary | 
| type | version | 
Example:
| String XBMCAddon::xbmcaddon::Addon::getLocalizedString | ( | ... | ) | 
Function:  xbmcaddon.Addon([id]).getLocalizedString(id) | id | integer - id# for string you want to localize. | 
Example:
| String XBMCAddon::xbmcaddon::Addon::getSetting | ( | ... | ) | 
Function:  xbmcaddon.Addon([id]).getSetting(id) | id | string - id of the setting that the module needs to access. | 
Example:
| bool XBMCAddon::xbmcaddon::Addon::getSettingBool | ( | ... | ) | 
Function:  xbmcaddon.Addon([id]).getSettingBool(id) | id | string - id of the setting that the module needs to access. | 
Example:
| int XBMCAddon::xbmcaddon::Addon::getSettingInt | ( | ... | ) | 
Function:  xbmcaddon.Addon([id]).getSettingInt(id) | id | string - id of the setting that the module needs to access. | 
Example:
| double XBMCAddon::xbmcaddon::Addon::getSettingNumber | ( | ... | ) | 
Function:  xbmcaddon.Addon([id]).getSettingNumber(id) | id | string - id of the setting that the module needs to access. | 
Example:
| Settings * XBMCAddon::xbmcaddon::Addon::getSettings | ( | ... | ) | 
Function:  xbmcaddon.Addon([id]).getSettings() Example:
| String XBMCAddon::xbmcaddon::Addon::getSettingString | ( | ... | ) | 
Function:  xbmcaddon.Addon([id]).getSettingString(id) | id | string - id of the setting that the module needs to access. | 
Example:
| void XBMCAddon::xbmcaddon::Addon::openSettings | ( | ) | 
Function:  xbmcaddon.Addon([id]).openSettings() Example:
| void XBMCAddon::xbmcaddon::Addon::setSetting | ( | ... | ) | 
Function:  xbmcaddon.Addon([id]).setSetting(id, value) | id | string - id of the setting that the module needs to access. | 
| value | string - value of the setting. | 
Example:
| bool XBMCAddon::xbmcaddon::Addon::setSettingBool | ( | ... | ) | 
Function:  xbmcaddon.Addon([id]).setSettingBool(id, value) | id | string - id of the setting that the module needs to access. | 
| value | boolean - value of the setting. | 
Example:
| bool XBMCAddon::xbmcaddon::Addon::setSettingInt | ( | ... | ) | 
Function:  xbmcaddon.Addon([id]).setSettingInt(id, value) | id | string - id of the setting that the module needs to access. | 
| value | integer - value of the setting. | 
Example:
| bool XBMCAddon::xbmcaddon::Addon::setSettingNumber | ( | ... | ) | 
Function:  xbmcaddon.Addon([id]).setSettingNumber(id, value) | id | string - id of the setting that the module needs to access. | 
| value | float - value of the setting. | 
Example:
| bool XBMCAddon::xbmcaddon::Addon::setSettingString | ( | ... | ) | 
Function:  xbmcaddon.Addon([id]).setSettingString(id, value) | id | string - id of the setting that the module needs to access. | 
| value | string or unicode - value of the setting. | 
Example:
      
  | 
  override |