17 #ifndef __NUGU_DISPLAY_INTERFACE_H__
18 #define __NUGU_DISPLAY_INTERFACE_H__
23 namespace NuguCapability {
25 using namespace NuguClientKit;
76 virtual void renderDisplay(
const std::string&
id,
const std::string& type,
const std::string& json_payload,
const std::string& dialog_id) = 0;
85 virtual bool clearDisplay(
const std::string&
id,
bool unconditionally,
bool has_next) = 0;
100 virtual void updateDisplay(
const std::string&
id,
const std::string& json_payload) = 0;
130 virtual void elementSelected(
const std::string&
id,
const std::string& item_token,
const std::string& postback =
"");
137 virtual void triggerChild(
const std::string& ps_id,
const std::string& data);
display handler interface
Definition: display_interface.hh:107
virtual void displayCleared(const std::string &id)
The user reports that the display is cleared.
virtual void setDisplayListener(IDisplayListener *listener)
Set the IDisplayListener object.
virtual void displayRendered(const std::string &id, const DisplayContextInfo &context_info=DisplayContextInfo {})
The user reports that the display was rendered.
virtual void controlTemplate(const std::string &id, TemplateControlType control_type)
Control templates which are composed by history control.
virtual void triggerChild(const std::string &ps_id, const std::string &data)
Send TriggerChild event for receiving child template.
virtual void removeDisplayListener(IDisplayListener *listener)
Remove the IDisplayListener object.
virtual void stopRenderingTimer(const std::string &id)
Stop display rendering hold timer.
virtual void elementSelected(const std::string &id, const std::string &item_token, const std::string &postback="")
The user informs the selected item of the list and reports the token information of the item.
virtual void informControlResult(const std::string &id, ControlType type, ControlDirection direction, bool result)
The user informs the control result.
virtual void refreshRenderingTimer(const std::string &id)
Refresh display rendering hold timer.
display listener interface
Definition: display_interface.hh:66
virtual void updateDisplay(const std::string &id, const std::string &json_payload)=0
Request to update the current display.
virtual void renderDisplay(const std::string &id, const std::string &type, const std::string &json_payload, const std::string &dialog_id)=0
Request rendering by passing metadata so that the device with the display can draw on the screen.
virtual void controlDisplay(const std::string &id, ControlType type, ControlDirection direction)=0
Request to control the display with type and direction.
virtual bool clearDisplay(const std::string &id, bool unconditionally, bool has_next)=0
The SDK will ask you to delete the rendered display on the display according to the service context m...
capability interface
Definition: capability_interface.hh:82
capability listener interface
Definition: capability_interface.hh:60
ControlType
Definition: display_interface.hh:44
TemplateControlType
Definition: display_interface.hh:49
ControlDirection
Definition: display_interface.hh:39
struct NuguCapability::_DisplayContextInfo DisplayContextInfo
Display Context Information.
Display Context Information.
Definition: display_interface.hh:57
std::vector< std::string > visible_token_list
Definition: display_interface.hh:59
std::string focused_item_token
Definition: display_interface.hh:58