ESPHome  2024.10.2
Public Member Functions | Protected Attributes
esphome::media_player::MediaPlayerTraits Class Reference

#include <media_player.h>

Public Member Functions

 MediaPlayerTraits ()=default
 
void set_supports_pause (bool supports_pause)
 
bool get_supports_pause () const
 
std::vector< MediaPlayerSupportedFormat > & get_supported_formats ()
 

Protected Attributes

bool supports_pause_ {false}
 
std::vector< MediaPlayerSupportedFormatsupported_formats_ {}
 

Detailed Description

Definition at line 45 of file media_player.h.

Constructor & Destructor Documentation

◆ MediaPlayerTraits()

esphome::media_player::MediaPlayerTraits::MediaPlayerTraits ( )
default

Member Function Documentation

◆ get_supported_formats()

std::vector<MediaPlayerSupportedFormat>& esphome::media_player::MediaPlayerTraits::get_supported_formats ( )
inline

Definition at line 53 of file media_player.h.

◆ get_supports_pause()

bool esphome::media_player::MediaPlayerTraits::get_supports_pause ( ) const
inline

Definition at line 51 of file media_player.h.

◆ set_supports_pause()

void esphome::media_player::MediaPlayerTraits::set_supports_pause ( bool  supports_pause)
inline

Definition at line 49 of file media_player.h.

Field Documentation

◆ supported_formats_

std::vector<MediaPlayerSupportedFormat> esphome::media_player::MediaPlayerTraits::supported_formats_ {}
protected

Definition at line 57 of file media_player.h.

◆ supports_pause_

bool esphome::media_player::MediaPlayerTraits::supports_pause_ {false}
protected

Definition at line 56 of file media_player.h.


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