SinricPro Library
Loading...
Searching...
No Matches
InputController< T >

InputController. More...

#include <InputController.h>

Inheritance diagram for InputController< T >:

Public Member Functions

void onSelectInput (SelectInputCallback cb)
 Set callback function for selectInput request.
 
bool sendSelectInputEvent (String intput, String cause=FSTR_SINRICPRO_PHYSICAL_INTERACTION)
 Send selectInput event to SinricPro Server to report selected input.
 

Detailed Description

template<typename T>
class SINRICPRO_3_0_0::InputController< T >

InputController.

Member Function Documentation

◆ onSelectInput()

template<typename T >
void onSelectInput ( SelectInputCallback  cb)

Set callback function for selectInput request.

Parameters
cbFunction pointer to a SelectInputCallback function
Returns
void
See also
SelectInputCallback

◆ sendSelectInputEvent()

template<typename T >
bool sendSelectInputEvent ( String  input,
String  cause = FSTR_SINRICPRO_PHYSICAL_INTERACTION 
)

Send selectInput event to SinricPro Server to report selected input.

Parameters
inputString with actual media control
AUX 1..AUX 7, BLURAY, CABLE, CD, COAX 1,COAX 2, COMPOSITE 1, DVD, GAME, HD RADIO, HDMI 1.. HDMI 10, HDMI ARC, INPUT 1..INPUT 10, IPOD, LINE 1..LINE 7, MEDIA PLAYER, OPTICAL 1, OPTICAL 2, PHONO, PLAYSTATION, PLAYSTATION 3, PLAYSTATION 4, SATELLITE, SMARTCAST, TUNER, TV, USB DAC, VIDEO 1..VIDEO 3, XBOX
cause(optional) String reason why event is sent (default = "PHYSICAL_INTERACTION")
Returns
the success of sending the even
Return values
trueevent has been sent successfully
falseevent has not been sent, maybe you sent to much events in a short distance of time