AlexaClientSDK  3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
Public Member Functions | List of all members
alexaClientSDK::avsCommon::utils::bluetooth::DeviceStateChangedEvent Class Reference

#include <BluetoothEvents.h>

Inheritance diagram for alexaClientSDK::avsCommon::utils::bluetooth::DeviceStateChangedEvent:
Inheritance graph
[legend]
Collaboration diagram for alexaClientSDK::avsCommon::utils::bluetooth::DeviceStateChangedEvent:
Collaboration graph
[legend]

Public Member Functions

 DeviceStateChangedEvent (std::shared_ptr< avsCommon::sdkInterfaces::bluetooth::BluetoothDeviceInterface > device, avsCommon::sdkInterfaces::bluetooth::DeviceState newState)
 
- Public Member Functions inherited from alexaClientSDK::avsCommon::utils::bluetooth::BluetoothEvent
virtual ~BluetoothEvent ()=default
 
BluetoothEventType getType () const
 
std::shared_ptr< avsCommon::sdkInterfaces::bluetooth::BluetoothDeviceInterfacegetDevice () const
 
avsCommon::sdkInterfaces::bluetooth::DeviceState getDeviceState () const
 
MediaStreamingState getMediaStreamingState () const
 
std::shared_ptr< A2DPRolegetA2DPRole () const
 
std::shared_ptr< avsCommon::sdkInterfaces::bluetooth::services::MediaCommandgetMediaCommand () const
 
bool isScanning () const
 
bool isA2DPEnabled () const
 

Additional Inherited Members

- Protected Member Functions inherited from alexaClientSDK::avsCommon::utils::bluetooth::BluetoothEvent
 BluetoothEvent (BluetoothEventType type, std::shared_ptr< avsCommon::sdkInterfaces::bluetooth::BluetoothDeviceInterface > device=nullptr, avsCommon::sdkInterfaces::bluetooth::DeviceState deviceState=avsCommon::sdkInterfaces::bluetooth::DeviceState::IDLE, MediaStreamingState mediaStreamingState=MediaStreamingState::IDLE, std::shared_ptr< A2DPRole > role=nullptr, std::shared_ptr< avsCommon::sdkInterfaces::bluetooth::services::MediaCommand > mediaCommand=nullptr, bool scanningState=false, bool a2dpEnable=false)
 

Detailed Description

Event indicating that a device undergoes a state transition. The available states are dictated by DeviceState. This must be sent with a reference to the BluetoothDeviceInterface.

Constructor & Destructor Documentation

◆ DeviceStateChangedEvent()

alexaClientSDK::avsCommon::utils::bluetooth::DeviceStateChangedEvent::DeviceStateChangedEvent ( std::shared_ptr< avsCommon::sdkInterfaces::bluetooth::BluetoothDeviceInterface device,
avsCommon::sdkInterfaces::bluetooth::DeviceState  newState 
)
inline

Constructor

Parameters
deviceDevice associated with the event
newStateNew state of the devices

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

AlexaClientSDK 3.0.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0