Documentation
¶
Overview ¶
Package systemvolume implements the KDE Connect System Volume plugin. It allows the phone to query and control the PC's audio volume.
Index ¶
- type SinkInfo
- type SystemVolumePlugin
- func (p *SystemVolumePlugin) Handle(ctx context.Context, dev device.Sender, pkt *protocol.Packet) error
- func (p *SystemVolumePlugin) IncomingTypes() []string
- func (p *SystemVolumePlugin) Name() string
- func (p *SystemVolumePlugin) OnConnect(dev device.Sender)
- func (p *SystemVolumePlugin) OnDisconnect(dev device.Sender)
- func (p *SystemVolumePlugin) OutgoingTypes() []string
- func (p *SystemVolumePlugin) Timeout() time.Duration
- type VolumeBody
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SystemVolumePlugin ¶
type SystemVolumePlugin struct {
// contains filtered or unexported fields
}
SystemVolumePlugin handles volume control packets from the phone.
func NewSystemVolumePlugin ¶
func NewSystemVolumePlugin(logger *zap.Logger) *SystemVolumePlugin
func (*SystemVolumePlugin) IncomingTypes ¶
func (p *SystemVolumePlugin) IncomingTypes() []string
func (*SystemVolumePlugin) Name ¶
func (p *SystemVolumePlugin) Name() string
func (*SystemVolumePlugin) OnConnect ¶
func (p *SystemVolumePlugin) OnConnect(dev device.Sender)
func (*SystemVolumePlugin) OnDisconnect ¶
func (p *SystemVolumePlugin) OnDisconnect(dev device.Sender)
func (*SystemVolumePlugin) OutgoingTypes ¶
func (p *SystemVolumePlugin) OutgoingTypes() []string
func (*SystemVolumePlugin) Timeout ¶
func (p *SystemVolumePlugin) Timeout() time.Duration
Click to show internal directories.
Click to hide internal directories.