![]() |
Kodi Documentation
18.0
Kodi is an open source media player and entertainment hub.
|
Kodi's addon class. More...
Classes | |
class | XBMCAddon::xbmcaddon::Addon |
Functions | |
XBMCAddon::xbmcaddon::Addon::getLocalizedString (...) | |
| |
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:
String XBMCAddon::xbmcaddon::Addon::getAddonInfo | ( | ... | ) |
Function: xbmcaddon.Addon([id]).getAddonInfo(id)
Returns the value of an addon property as a string.
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)
Returns an addon's localized 'unicode string'.
id | integer - id# for string you want to localize. |
Example:
String XBMCAddon::xbmcaddon::Addon::getSetting | ( | ... | ) |
Function: xbmcaddon.Addon([id]).getSetting(id)
Returns the value of a setting as a unicode string.
id | string - id of the setting that the module needs to access. |
Example:
bool XBMCAddon::xbmcaddon::Addon::getSettingBool | ( | ... | ) |
Function: xbmcaddon.Addon([id]).getSettingBool(id)
Returns the value of a setting as a boolean.
id | string - id of the setting that the module needs to access. |
Example:
int XBMCAddon::xbmcaddon::Addon::getSettingInt | ( | ... | ) |
Function: xbmcaddon.Addon([id]).getSettingInt(id)
Returns the value of a setting as an integer.
id | string - id of the setting that the module needs to access. |
Example:
double XBMCAddon::xbmcaddon::Addon::getSettingNumber | ( | ... | ) |
Function: xbmcaddon.Addon([id]).getSettingNumber(id)
Returns the value of a setting as a floating point number.
id | string - id of the setting that the module needs to access. |
Example:
String XBMCAddon::xbmcaddon::Addon::getSettingString | ( | ... | ) |
Function: xbmcaddon.Addon([id]).getSettingString(id)
Returns the value of a setting as a unicode string.
id | string - id of the setting that the module needs to access. |
Example:
void XBMCAddon::xbmcaddon::Addon::openSettings | ( | ) |
Function: xbmcaddon.Addon([id]).openSettings()
Opens this scripts settings dialog.
Example:
void XBMCAddon::xbmcaddon::Addon::setSetting | ( | ... | ) |
Function: xbmcaddon.Addon([id]).setSetting(id, value)
Sets a script setting.
id | string - id of the setting that the module needs to access. |
value | string or unicode - value of the setting. |
Example:
bool XBMCAddon::xbmcaddon::Addon::setSettingBool | ( | ... | ) |
Function: xbmcaddon.Addon([id]).setSettingBool(id, value)
Sets a script setting.
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)
Sets a script setting.
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)
Sets a script setting.
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)
Sets a script setting.
id | string - id of the setting that the module needs to access. |
value | string or unicode - value of the setting. |
Example: