ESPHome  2024.10.2
Public Member Functions | Protected Member Functions | Protected Attributes
esphome::key_provider::KeyProvider Class Reference

interface for components that provide keypresses More...

#include <key_provider.h>

Inheritance diagram for esphome::key_provider::KeyProvider:
esphome::lvgl::LvButtonMatrixType esphome::lvgl::LvKeyboardType esphome::matrix_keypad::MatrixKeypad esphome::wiegand::Wiegand

Public Member Functions

void add_on_key_callback (std::function< void(uint8_t)> &&callback)
 

Protected Member Functions

void send_key_ (uint8_t key)
 

Protected Attributes

CallbackManager< void(uint8_t)> key_callback_ {}
 

Detailed Description

interface for components that provide keypresses

Definition at line 10 of file key_provider.h.

Member Function Documentation

◆ add_on_key_callback()

void esphome::key_provider::KeyProvider::add_on_key_callback ( std::function< void(uint8_t)> &&  callback)

Definition at line 6 of file key_provider.cpp.

◆ send_key_()

void esphome::key_provider::KeyProvider::send_key_ ( uint8_t  key)
protected

Definition at line 10 of file key_provider.cpp.

Field Documentation

◆ key_callback_

CallbackManager<void(uint8_t)> esphome::key_provider::KeyProvider::key_callback_ {}
protected

Definition at line 17 of file key_provider.h.


The documentation for this class was generated from the following files: