SinricPro Library
|
#include <InputController.h>
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. | |
void onSelectInput | ( | SelectInputCallback | cb | ) |
Set callback function for selectInput
request.
cb | Function pointer to a SelectInputCallback function |
bool sendSelectInputEvent | ( | String | input, |
String | cause = FSTR_SINRICPRO_PHYSICAL_INTERACTION |
||
) |
Send selectInput
event to SinricPro Server to report selected input.
input | String 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" ) |
true | event has been sent successfully |
false | event has not been sent, maybe you sent to much events in a short distance of time |