sendnotification

package
v1.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 21, 2026 License: MIT Imports: 9 Imported by: 0

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

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

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL