Base class for a BluetoothEvent
.
More...
#include <BluetoothEvents.h>
◆ ~BluetoothEvent()
virtual alexaClientSDK::avsCommon::utils::bluetooth::BluetoothEvent::~BluetoothEvent |
( |
| ) |
|
|
virtualdefault |
◆ BluetoothEvent()
Constructor
- Parameters
-
type | Event type |
device | BluetoothDeviceInterface associated with the event |
deviceState | DeviceState associated with the event |
mediaStreamingState | MediaStreamingState associated with the event |
role | The A2DP role the AVS device is acting as |
mediaCommand | The received MediaCommand if applicable |
◆ getA2DPRole()
std::shared_ptr< A2DPRole > alexaClientSDK::avsCommon::utils::bluetooth::BluetoothEvent::getA2DPRole |
( |
| ) |
const |
|
inline |
Get A2DPRole
associated with the event
- Returns
A2DPRole
associated with the event or null if not applicable.
◆ getDevice()
Get BluetoothDeviceInterface
associated with the event. The value depends on the event type
- Returns
BluetoothDeviceInterface
associated with the event or nullptr
◆ getDeviceState()
Get DeviceState
associated with the event
- Returns
DeviceState
associated with the event
◆ getMediaCommand()
Get MediaCommand
associated with the event
- Returns
MediaCommand
associated with the event or null if not applicable
◆ getMediaStreamingState()
MediaStreamingState alexaClientSDK::avsCommon::utils::bluetooth::BluetoothEvent::getMediaStreamingState |
( |
| ) |
const |
|
inline |
Get MediaStreamingState
associated with the event
- Returns
MediaStreamingState
associated with the event
◆ getType()
BluetoothEventType alexaClientSDK::avsCommon::utils::bluetooth::BluetoothEvent::getType |
( |
| ) |
const |
|
inline |
Get event type
- Returns
- Event type.
◆ isA2DPEnabled()
bool alexaClientSDK::avsCommon::utils::bluetooth::BluetoothEvent::isA2DPEnabled |
( |
| ) |
const |
|
inline |
Get the current enable/disable state of the A2DP profiles.
- Returns
- Whether the event requires to enable the A2DP profiles.
◆ isScanning()
bool alexaClientSDK::avsCommon::utils::bluetooth::BluetoothEvent::isScanning |
( |
| ) |
const |
|
inline |
Get the current scanning state of the host device.
- Returns
- Whether the device is currently scanning for other devices.
The documentation for this class was generated from the following file:
- /workplace/avs-device-sdk/AVSCommon/Utils/include/AVSCommon/Utils/Bluetooth/BluetoothEvents.h
AlexaClientSDK 3.0.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
Licensed under the Apache License, Version 2.0