![]() |
AlexaClientSDK
3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
|
#include <BlockingPolicy.h>
Classes | |
struct | Medium |
Public Types | |
using | Mediums = std::bitset< Medium::COUNT > |
The mediums used by the policy owner. More... | |
Public Member Functions | |
BlockingPolicy (const Mediums &mediums=MEDIUMS_NONE, bool isBlocking=true) | |
bool | isValid () const |
bool | isBlocking () const |
Mediums | getMediums () const |
Static Public Attributes | |
static const avscommon_EXPORT Mediums | MEDIUM_AUDIO |
Policy uses AUDIO medium. More... | |
static const avscommon_EXPORT Mediums | MEDIUM_VISUAL |
Policy uses VISUAL medium. More... | |
static const avscommon_EXPORT Mediums | MEDIUMS_AUDIO_AND_VISUAL |
Policy uses AUDIO and VISUAL mediums. More... | |
static const avscommon_EXPORT Mediums | MEDIUMS_NONE |
A Blocking
policy is a way to express what mediums are required by the policy owner and whether the policy owner is blocking subsequent directives using the medium.
using alexaClientSDK::avsCommon::avs::BlockingPolicy::Mediums = std::bitset<Medium::COUNT> |
The mediums used by the policy owner.
alexaClientSDK::avsCommon::avs::BlockingPolicy::BlockingPolicy | ( | const Mediums & | mediums = MEDIUMS_NONE , |
bool | isBlocking = true |
||
) |
Constructor
mediums | The Mediums used by the policy owner. |
isBlocking | Should this policy block another usage of owned mediums until completion. |
Mediums alexaClientSDK::avsCommon::avs::BlockingPolicy::getMediums | ( | ) | const |
What Mediums
are used by this policy.
Mediums
used by the policy bool alexaClientSDK::avsCommon::avs::BlockingPolicy::isBlocking | ( | ) | const |
Is this policy blocking a Medium
.
true
if the given policy is blocking, false
otherwise. bool alexaClientSDK::avsCommon::avs::BlockingPolicy::isValid | ( | ) | const |
Is the policy valid.
true
if the policy is valid, false
otherwise.
|
static |
Policy uses AUDIO
medium.
|
static |
Policy uses VISUAL
medium.
|
static |
Policy uses AUDIO
and VISUAL
mediums.
|
static |
Policy uses no medium. This should be used for System of setting-type directives.
AlexaClientSDK 3.0.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0