haptic

package
v0.0.0-...-6789dc4 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2021 License: GPL-3.0, GPL-3.0 Imports: 6 Imported by: 0

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

Jump to

Keyboard shortcuts

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