Modules | |
Definitions, structures and enumerators | |
General definition values | |
enum ADDON_STATUS |
Return value of functions in kodi::addon::CAddonBase and associated classes.
enum ADDON_TYPE |
The currently available instance types for Kodi add-ons
Enumerator | |
---|---|
ADDON_INSTANCE_AUDIODECODER | Audio decoder instance, see kodi::addon::CInstanceAudioDecoder. |
ADDON_INSTANCE_AUDIOENCODER | Audio encoder instance, see kodi::addon::CInstanceAudioEncoder. |
ADDON_INSTANCE_GAME | Game instance, see kodi::addon::CInstanceGame. |
ADDON_INSTANCE_INPUTSTREAM | Input stream instance, see kodi::addon::CInstanceInputStream. |
ADDON_INSTANCE_PERIPHERAL | Peripheral instance, see kodi::addon::CInstancePeripheral. |
ADDON_INSTANCE_PVR | Game instance, see kodi::addon::CInstancePVRClient. |
ADDON_INSTANCE_SCREENSAVER | PVR client instance, see kodi::addon::CInstanceScreensaver. |
ADDON_INSTANCE_VISUALIZATION | Music visualization instance, see kodi::addon::CInstanceVisualization. |
ADDON_INSTANCE_VFS | Virtual Filesystem (VFS) instance, see kodi::addon::CInstanceVFS. |
ADDON_INSTANCE_IMAGEDECODER | Image Decoder instance, see kodi::addon::CInstanceImageDecoder. |
ADDON_INSTANCE_VIDEOCODEC | Video Decoder instance, see kodi::addon::CInstanceVideoCodec. |
|
inlinevirtual |
To inform addon about changed settings values.
This becomes called for every entry defined inside his settings.xml and as last call the one where last in xml (to identify end of calls).
The following table contains values that can be set with class CSettingValue :
Name | Type | Get call |
---|---|---|
Settings value as string | std::string | GetString |
Settings value as integer | int | GetInt |
Settings value as unsigned integer | unsigned int | GetUInt |
Settings value as boolean | bool | GetBoolean |
Settings value as floating point | float | GetFloat |
Settings value as enum | enum | GetEnum |
Here is a code example how this is used:
|
inlinevirtual |
Instance created.
[in] | instanceType | The requested type of required instance, see ADDON_TYPE. |
[in] | instanceID | An individual identification key string given by Kodi. |
[in] | instance | The instance handler used by Kodi must be passed to the classes created here. See in the example. |
[in] | version | The from Kodi used version of instance. This can be used to allow compatibility to older versions of them. Further is this given to the parent instance that it can handle differences. |
[out] | addonInstance | The pointer to instance class created in addon. Needed to be able to identify them on calls. |
Here is a code example how this is used:
|
inlinevirtual |
Instance destroy.
This function is optional and intended to notify addon that the instance is terminating.
[in] | instanceType | The requested type of required instance, see ADDON_TYPE. |
[in] | instanceID | An individual identification key string given by Kodi. |
[in] | addonInstance | The pointer to instance class created in addon. |