Kodi Development  20.0
for Binary and Script based Add-Ons

Detailed Description

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
Parameters
[in]hookIdThis hook's identifier
[in]localizedStringIdLocalized string identifier
[in]categoryCategory of menu hook, defined with PVR_MENUHOOK_CAT

Example:

Definition: MenuHook.h:46
@ PVR_MENUHOOK_CHANNEL
1 : For channels.
Definition: pvr_menu_hook.h:37

Modules

 Value Help
 

Function Documentation

◆ SetHookId()

void SetHookId ( unsigned int  hookId)
inline

required
This hook's identifier.

◆ GetHookId()

unsigned int GetHookId ( ) const
inline

To get with SetHookId() changed values.

◆ SetLocalizedStringId()

void SetLocalizedStringId ( unsigned int  localizedStringId)
inline

required
The id of the label for this hook in kodi::GetLocalizedString().

◆ GetLocalizedStringId()

unsigned int GetLocalizedStringId ( ) const
inline

To get with SetLocalizedStringId() changed values.

◆ SetCategory()

void SetCategory ( PVR_MENUHOOK_CAT  category)
inline

required
Category of menu hook.

◆ GetCategory()

PVR_MENUHOOK_CAT GetCategory ( ) const
inline

To get with SetCategory() changed values.