Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
|
Context menu hook
Menu hooks that are available in the context menus while playing a stream via this add-on. And in the Live TV settings dialog.
More...
Topics | |
Value Help | |
Classes | |
class | kodi::addon::PVRMenuhook |
Functions | |
void | kodi::addon::PVRMenuhook::SetHookId (unsigned int hookId) |
required This hook's identifier. | |
unsigned int | kodi::addon::PVRMenuhook::GetHookId () const |
To get with SetHookId() changed values. | |
void | kodi::addon::PVRMenuhook::SetLocalizedStringId (unsigned int localizedStringId) |
required The id of the label for this hook in kodi::GetLocalizedString(). | |
unsigned int | kodi::addon::PVRMenuhook::GetLocalizedStringId () const |
To get with SetLocalizedStringId() changed values. | |
void | kodi::addon::PVRMenuhook::SetCategory (PVR_MENUHOOK_CAT category) |
required Category of menu hook. | |
PVR_MENUHOOK_CAT | kodi::addon::PVRMenuhook::GetCategory () const |
To get with SetCategory() changed values. | |
Context menu hook
Menu hooks that are available in the context menus while playing a stream via this add-on. And in the Live TV settings dialog.
Optional class constructor with value set.
Possible menu's given to Kodi.
This can be becomes used on this, if kodi::addon::CInstancePVRClient::AddMenuHook() was set to related type:
The following table contains values that can be set with class PVRMenuhook :
Name | Type | Set call | Get call | Usage |
---|---|---|---|---|
This hook's identifier | unsigned int | SetHookId | GetHookId | required to set |
Localized string Identifier | unsigned int | SetLocalizedStringId | GetLocalizedStringId | required to set |
Category of menu hook | PVR_MENUHOOK_CAT | SetCategory | GetCategory | required to set |
[in] | hookId | This hook's identifier |
[in] | localizedStringId | Localized string identifier |
[in] | category | Category of menu hook, defined with PVR_MENUHOOK_CAT |
Example:
|
inline |
To get with SetCategory() changed values.
|
inline |
To get with SetHookId() changed values.
|
inline |
To get with SetLocalizedStringId() changed values.
|
inline |
required
Category of menu hook.
required
This hook's identifier.