Documentation
¶
Overview ¶
Package sendnotification implements the KDE Connect Send Notifications plugin. It monitors the local D-Bus Notifications interface and forwards desktop notifications to all paired, connected phone devices.
Index ¶
- type SendNotificationPlugin
- func (p *SendNotificationPlugin) Handle(ctx context.Context, dev device.Sender, pkt *protocol.Packet) error
- func (p *SendNotificationPlugin) IncomingTypes() []string
- func (p *SendNotificationPlugin) Name() string
- func (p *SendNotificationPlugin) OnConnect(dev device.Sender)
- func (p *SendNotificationPlugin) OnDisconnect(dev device.Sender)
- func (p *SendNotificationPlugin) OutgoingTypes() []string
- func (p *SendNotificationPlugin) Timeout() time.Duration
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SendNotificationPlugin ¶
type SendNotificationPlugin struct {
// contains filtered or unexported fields
}
SendNotificationPlugin forwards desktop notifications to the phone.
func NewSendNotificationPlugin ¶
func NewSendNotificationPlugin(logger *zap.Logger, devices *device.Registry) *SendNotificationPlugin
func (*SendNotificationPlugin) Handle ¶
func (p *SendNotificationPlugin) Handle(ctx context.Context, dev device.Sender, pkt *protocol.Packet) error
Handle is a no-op — this plugin only sends packets.
func (*SendNotificationPlugin) IncomingTypes ¶
func (p *SendNotificationPlugin) IncomingTypes() []string
func (*SendNotificationPlugin) Name ¶
func (p *SendNotificationPlugin) Name() string
func (*SendNotificationPlugin) OnConnect ¶
func (p *SendNotificationPlugin) OnConnect(dev device.Sender)
OnConnect starts monitoring D-Bus notifications when a device connects.
func (*SendNotificationPlugin) OnDisconnect ¶
func (p *SendNotificationPlugin) OnDisconnect(dev device.Sender)
OnDisconnect stops monitoring when the last device disconnects.
func (*SendNotificationPlugin) OutgoingTypes ¶
func (p *SendNotificationPlugin) OutgoingTypes() []string
func (*SendNotificationPlugin) Timeout ¶
func (p *SendNotificationPlugin) Timeout() time.Duration
Click to show internal directories.
Click to hide internal directories.