Documentation ¶
Overview ¶
Package baseremotecontrol implements a remote control for a base. For more information, see the base remote control service docs.
Index ¶
Constants ¶
View Source
const SubtypeName = "base_remote_control"
SubtypeName is the name of the type of service.
Variables ¶
View Source
var API = resource.APINamespaceRDK.WithServiceType(SubtypeName)
API is a variable that identifies the remote control resource API.
Functions ¶
Types ¶
type Service ¶ added in v0.1.0
type Service interface { resource.Resource // Close out of all remote control related systems. Close(ctx context.Context) error // controllerInputs returns the list of inputs from the controller that are being monitored for that control mode. ControllerInputs() []input.Control }
A Service is the basis for the base remote control. For more information, see the base remote control service docs.
Close example:
// Close out of all remote control-related systems. err := baseRCService.Close(context.Background())
ControllerInputs example:
// Get the list of inputs from the controller that are being monitored for that control mode. inputs := baseRCService.ControllerInputs()
Directories ¶
Path | Synopsis |
---|---|
Package builtin implements a remote control for a base.
|
Package builtin implements a remote control for a base. |
Package register registers all relevant baseremotecontrol models and also API specific functions
|
Package register registers all relevant baseremotecontrol models and also API specific functions |
Click to show internal directories.
Click to hide internal directories.