Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
|
Bring in this functions if you have set supportsChannelGroups to true
This is used to divide available addon channels into groups, which can then be selected by the user.
More...
Functions | |
virtual PVR_ERROR | kodi::addon::CInstancePVRClient::GetChannelGroupsAmount (int &amount) |
Get the total amount of channel groups on the backend if it supports channel groups. | |
virtual PVR_ERROR | kodi::addon::CInstancePVRClient::GetChannelGroups (bool radio, kodi::addon::PVRChannelGroupsResultSet &results) |
Get a list of available channel groups on addon. | |
virtual PVR_ERROR | kodi::addon::CInstancePVRClient::GetChannelGroupMembers (const kodi::addon::PVRChannelGroup &group, kodi::addon::PVRChannelGroupMembersResultSet &results) |
Get a list of members on a group. | |
void | kodi::addon::CInstancePVRClient::TriggerChannelGroupsUpdate () |
Callback to Kodi Function Request Kodi to update it's list of channel groups. | |
Bring in this functions if you have set supportsChannelGroups to true
This is used to divide available addon channels into groups, which can then be selected by the user.
Channel group parts in interface:
Copy this to your project and extend with your parts or leave functions complete away where not used or supported.
|
inlinevirtual |
Get a list of members on a group.
Request the list of all group members of a group from the backend if it supports channel groups.
[in] | group | The group to get the members for. |
[out] | results | List of available group member channels defined with class PVRChannelGroupMember, them transferred with PVRChannelGroupMembersResultSet. |
The following table contains values that can be set with class PVRChannelGroupMember :
Name | Type | Set call | Get call | Usage |
---|---|---|---|---|
Group name | std::string | SetGroupName | GetGroupName | required to set |
Channel unique id | unsigned int | SetChannelUniqueId | GetChannelUniqueId | required to set |
Channel Number | unsigned int | SetChannelNumber | GetChannelNumber | optional |
Sub channel number | unsigned int | SetSubChannelNumber | GetSubChannelNumber | optional |
Order | int | SetOrder | GetOrder | optional |
Example:
|
inlinevirtual |
Get a list of available channel groups on addon.
Request the list of all channel groups from the backend if it supports channel groups.
[in] | radio | True to get the radio channel groups, false to get the TV channel groups. |
[out] | results | List of available groups on addon defined with class PVRChannelGroup, them transferred with class PVRChannelGroupsResultSet. |
The following table contains values that can be set with class PVRChannelGroup :
Name | Type | Set call | Get call | Usage |
---|---|---|---|---|
Group name | std::string | SetGroupName | GetGroupName | required to set |
Is radio | bool | SetIsRadio | GetIsRadio | required to set |
Position | unsigned int | SetPosition | GetPosition | optional |
Example:
|
inlinevirtual |
Get the total amount of channel groups on the backend if it supports channel groups.
[out] | amount | The total amount of channel groups on the backend |
|
inline |
Callback to Kodi Function
Request Kodi to update it's list of channel groups.