MCPcopy Create free account
hub / github.com/Pulse-Eight/libcec / SetActiveSource

Function SetActiveSource

src/dotnetlib/LibCecSharp.cpp:249–252  ·  view source on GitHub ↗

Change the active source to a device type handled by libCEC. Use CEC_DEVICE_TYPE_RESERVED to make the default type used by libCEC active. The new active source. Use CEC_DEVICE_TYPE_RESERVED to use the primary type True when the command was sent successfully, false otherwise.

Source from the content-addressed store, hash-verified

247 /// <param name="type">The new active source. Use CEC_DEVICE_TYPE_RESERVED to use the primary type</param>
248 /// <returns>True when the command was sent successfully, false otherwise.</returns>
249 bool SetActiveSource(CecDeviceType type)
250 {
251 return !!m_libCec && m_libCec->SetActiveSource((cec_device_type) type);
252 }
253
254 /// <summary>
255 /// Change the deck control mode, if this adapter is registered as playback or recording device.

Callers

nothing calls this directly

Calls 1

SetActiveSourceMethod · 0.45

Tested by

no test coverage detected