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

#include <BluetoothMediaInputTransformer.h>

Inheritance diagram for alexaClientSDK::acsdkBluetooth::BluetoothMediaInputTransformer:
Inheritance graph
[legend]
Collaboration diagram for alexaClientSDK::acsdkBluetooth::BluetoothMediaInputTransformer:
Collaboration graph
[legend]

Static Public Member Functions

static std::shared_ptr< BluetoothMediaInputTransformercreate (std::shared_ptr< avsCommon::utils::bluetooth::BluetoothEventBus > eventBus, std::shared_ptr< avsCommon::sdkInterfaces::PlaybackRouterInterface > playbackRouter)
 

Protected Member Functions

BluetoothEventBusListenerInterface Functions
void onEventFired (const avsCommon::utils::bluetooth::BluetoothEvent &event) override
 

Additional Inherited Members

- Public Member Functions inherited from alexaClientSDK::avsCommon::utils::bluetooth::BluetoothEventListenerInterface
virtual ~BluetoothEventListenerInterface ()=default
 

Detailed Description

A class which will convert Media commands to the related PlaybackRouterInterface commands.

Member Function Documentation

◆ create()

static std::shared_ptr<BluetoothMediaInputTransformer> alexaClientSDK::acsdkBluetooth::BluetoothMediaInputTransformer::create ( std::shared_ptr< avsCommon::utils::bluetooth::BluetoothEventBus eventBus,
std::shared_ptr< avsCommon::sdkInterfaces::PlaybackRouterInterface playbackRouter 
)
static

Creates an instance of the BluetoothMediaInputTransformer.

Parameters
eventBusThe BluetoothEventBus in which MediaCommandReceivedEvent events will appear.
playbackRouterThe PlaybackRouterInterface in which Media commands will be transformed to.
Returns
An instance if successful else a nullptr.

◆ onEventFired()

void alexaClientSDK::acsdkBluetooth::BluetoothMediaInputTransformer::onEventFired ( const avsCommon::utils::bluetooth::BluetoothEvent event)
overrideprotectedvirtual

Method called to process an event of the specific type.

Parameters
eventEvent to be processed

Implements alexaClientSDK::avsCommon::utils::bluetooth::BluetoothEventListenerInterface.


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