13 lines
334 B
Go
13 lines
334 B
Go
package bluetooth
|
|
|
|
// SetEventHandler sets the callback that gets called on incoming events.
|
|
//
|
|
// Warning: must only be called when the Bluetooth stack has not yet been
|
|
// initialized!
|
|
func (a *Adapter) SetEventHandler(handler func(Event)) {
|
|
a.handler = handler
|
|
}
|
|
|
|
// Event is a global Bluetooth stack event.
|
|
type Event interface{}
|