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

#include <InterruptModel.h>

Public Member Functions

avsCommon::avs::MixingBehavior getMixingBehavior (const std::string &lowPriorityChannel, avsCommon::avs::ContentType lowPriorityContentType, const std::string &highPriorityChannel, avsCommon::avs::ContentType highPriorityContentType) const
 

Static Public Member Functions

static std::shared_ptr< InterruptModelcreateInterruptModel (const std::shared_ptr< avsCommon::utils::configuration::ConfigurationNode > &config)
 
static std::shared_ptr< InterruptModelcreate (avsCommon::utils::configuration::ConfigurationNode interactionConfiguration)
 

Detailed Description

This class contains the interrupt model implementation for the device. This class uses the InterruptModelConfiguration passed in during creation to determine the MixingBehavior During Focus State transitions, the AFML shall invoke this class to determine the MixingBehavior to be taken by the ChannelObservers corresponding to the lower priority channel being backgrounded when a higher priority channel barges-in.

Member Function Documentation

◆ create()

std::shared_ptr< InterruptModel > alexaClientSDK::afml::interruptModel::InterruptModel::create ( avsCommon::utils::configuration::ConfigurationNode  interactionConfiguration)
static

Creates an instance of InterruptModel

Parameters
interactionConfigurationinterrupt model configuration for device.
Deprecated:
Use createInterruptModel
Returns
instance of InterruptModel.

◆ createInterruptModel()

std::shared_ptr< InterruptModel > alexaClientSDK::afml::interruptModel::InterruptModel::createInterruptModel ( const std::shared_ptr< avsCommon::utils::configuration::ConfigurationNode > &  config)
static

Creates an instance of InterruptModel

Parameters
configRoot configuration node.
Returns
instance of InterruptModel.

◆ getMixingBehavior()

MixingBehavior alexaClientSDK::afml::interruptModel::InterruptModel::getMixingBehavior ( const std::string &  lowPriorityChannel,
avsCommon::avs::ContentType  lowPriorityContentType,
const std::string &  highPriorityChannel,
avsCommon::avs::ContentType  highPriorityContentType 
) const

get Mixing Behavior for the lower priority channel

Parameters
lowPriorityChannelthe lower priority channel
lowPriorityContentTypethe current content type
highPriorityChannelthe channel barging in
highPriorityContentTypethe content type barging in
Returns
MixingBehavior which must be taken by the lower priority channel

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

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