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::MediaStreamingStateChangedEvent Class Reference

#include <BluetoothEvents.h>

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

Public Member Functions

 MediaStreamingStateChangedEvent (MediaStreamingState newState, A2DPRole role, std::shared_ptr< avsCommon::sdkInterfaces::bluetooth::BluetoothDeviceInterface > device)
 
- 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's streaming state has changed. This refers to the A2DP profile. This must be sent on transitions between MediaStreamingState.

Constructor & Destructor Documentation

◆ MediaStreamingStateChangedEvent()

alexaClientSDK::avsCommon::utils::bluetooth::MediaStreamingStateChangedEvent::MediaStreamingStateChangedEvent ( MediaStreamingState  newState,
A2DPRole  role,
std::shared_ptr< avsCommon::sdkInterfaces::bluetooth::BluetoothDeviceInterface device 
)
inlineexplicit

Constructor

Parameters
newStateNew media streaming state
roleThe A2DPRole associated with the device running the SDK
deviceThe peer device that is connected and whose streaming status changed

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