Documentation ¶
Overview ¶
Package haptic can present notifications as a vibration pattern using the usensord/haptic interface
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var BusAddress bus.Address = bus.Address{
Interface: "com.canonical.usensord.haptic",
Path: "/com/canonical/usensord/haptic",
Name: "com.canonical.usensord",
}
usensord/haptic lives on a well-knwon bus.Address
Functions ¶
This section is empty.
Types ¶
type Haptic ¶
type Haptic struct {
// contains filtered or unexported fields
}
Haptic encapsulates info needed to call out to usensord/haptic
func New ¶
func New(endp bus.Endpoint, log logger.Logger, acc accounts.Accounts, fallback *launch_helper.Vibration) *Haptic
New returns a new Haptic that'll use the provided bus.Endpoint
func (*Haptic) Present ¶
func (haptic *Haptic) Present(app *click.AppId, nid string, notification *launch_helper.Notification) bool
Present presents the notification via a vibrate pattern
Click to show internal directories.
Click to hide internal directories.