bluetooth

package
v0.0.0-...-9474aff Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2022 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Overview

Package bluetooth provides the control of bluetooth settings from the OS settings window.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConnectDevice

func ConnectDevice(ctx context.Context, deviceName string) error

ConnectDevice connects to a Bluetooth device by the given name.

func Disable

func Disable(ctx context.Context) error

Disable disables bluetooth.

func DisconnectDevice

func DisconnectDevice(ctx context.Context, deviceName string) error

DisconnectDevice disconnects the Bluetooth device by the given name.

func Enable

func Enable(ctx context.Context) error

Enable enables Bluetooth.

func IsEnabled

func IsEnabled(ctx context.Context) (bool, error)

IsEnabled checks bluetooth is enabled.

Types

This section is empty.

Jump to

Keyboard shortcuts

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