AlexaClientSDK
3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
|
#include <BasicDeviceConnectionRule.h>
Public Member Functions | |
BluetoothDeviceConnectionRuleInterface | |
bool | shouldExplicitlyConnect () override |
bool | shouldExplicitlyDisconnect () override |
std::set< std::shared_ptr< BluetoothDeviceInterface > > | devicesToDisconnect (std::map< DeviceCategory, std::set< std::shared_ptr< BluetoothDeviceInterface >>> connectedDevices) override |
std::set< DeviceCategory > | getDeviceCategories () override |
std::set< std::string > | getDependentProfiles () override |
Public Member Functions inherited from alexaClientSDK::avsCommon::sdkInterfaces::bluetooth::BluetoothDeviceConnectionRuleInterface | |
virtual | ~BluetoothDeviceConnectionRuleInterface ()=default |
Static Public Member Functions | |
static std::shared_ptr< BasicDeviceConnectionRule > | create () |
A class represents the basic connection rule the following Bluetooth device needs to follow: 1) DeviceCategory::PHONE 2) DeviceCategory::AUDIO_VIDEO 3) DeviceCategory::OTHER 4) DeviceCategory::UNKNOWN
This rule is created by default and enforces Bluetooth devices falling into the above DeviceCategory to follow. Any rule change for a certain DeviceCategory in the above list might need to refactor the Bluetooth CapabilityAgent.
|
static |
A factory method to create a new instance of BasicDeviceConnectionRule
.
BasicConnectionRule
.
|
overridevirtual |
The rule to get a set of Bluetooth devices needed to disconnect when the Bluetooth device connects.
connectedDevices | the current connected devices. |
Implements alexaClientSDK::avsCommon::sdkInterfaces::bluetooth::BluetoothDeviceConnectionRuleInterface.
|
overridevirtual |
Get the set of profile uuids which support those device categories defined in the connection rule.
Implements alexaClientSDK::avsCommon::sdkInterfaces::bluetooth::BluetoothDeviceConnectionRuleInterface.
|
overridevirtual |
Get the set of device categories using the connection rule.
DeviceCategory
of the connection rule. Implements alexaClientSDK::avsCommon::sdkInterfaces::bluetooth::BluetoothDeviceConnectionRuleInterface.
|
overridevirtual |
The rule to explicitly connect the Bluetooth device after pair.
Implements alexaClientSDK::avsCommon::sdkInterfaces::bluetooth::BluetoothDeviceConnectionRuleInterface.
|
overridevirtual |
The rule to explicitly disconnect the Bluetooth device before unpair.
Implements alexaClientSDK::avsCommon::sdkInterfaces::bluetooth::BluetoothDeviceConnectionRuleInterface.
AlexaClientSDK 3.0.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0