AlexaClientSDK
3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
|
#include <SampleApplicationCBLAuthRequester.h>
Public Member Functions | |
void | setUIAuthNotifier (std::shared_ptr< acsdkSampleApplicationInterfaces::UIAuthNotifierInterface > uiAuthNotifier) |
CBLAuthorizationObserverInterface methods | |
void | onRequestAuthorization (const std::string &url, const std::string &code) override |
void | onCheckingForAuthorization () override |
void | onCustomerProfileAvailable (const acsdkAuthorizationInterfaces::lwa::CBLAuthorizationObserverInterface::CustomerProfile &customerProfile) override |
Public Member Functions inherited from alexaClientSDK::acsdkAuthorizationInterfaces::lwa::CBLAuthorizationObserverInterface | |
virtual | ~CBLAuthorizationObserverInterface ()=default |
Destructor. More... | |
Static Public Member Functions | |
static std::shared_ptr< acsdkAuthorizationInterfaces::lwa::CBLAuthorizationObserverInterface > | createCBLAuthorizationObserverInterface (const std::shared_ptr< acsdkSampleApplicationInterfaces::UIManagerInterface > &uiManager) |
Implementation of CBLAuthRequesterInterface.
|
static |
Create a new instance of CBLAuthorizationObserverInterface
.
uiManager | The instance of UIManagerInterface to use to message the user. |
CBLAuthorizationObserverInterface
.
|
overridevirtual |
Legacy API for notifying the application when token requests are being made.
This notification can be noisy, a preferred alternative is for applications to observe AuthObserverInterface::State::AUTHORIZING
via AuthObserverInterface::onAuthStateChange
.
Implements alexaClientSDK::acsdkAuthorizationInterfaces::lwa::CBLAuthorizationObserverInterface.
|
overridevirtual |
A callback if CustomerProfile is available.
customerProfile | The customerProfile that's returned. |
Implements alexaClientSDK::acsdkAuthorizationInterfaces::lwa::CBLAuthorizationObserverInterface.
|
overridevirtual |
A callback that requests the observer to display the following information to the user as part of the CBL process.
url | The url to be displayed. |
code | The CBL code. |
Implements alexaClientSDK::acsdkAuthorizationInterfaces::lwa::CBLAuthorizationObserverInterface.
void alexaClientSDK::acsdkSampleApplicationCBLAuthRequester::SampleApplicationCBLAuthRequester::setUIAuthNotifier | ( | std::shared_ptr< acsdkSampleApplicationInterfaces::UIAuthNotifierInterface > | uiAuthNotifier | ) |
Set a notifier that bridges Authorization state from authorization requester to the user interface.
uiAuthNotifier | An instance of UIAuthNotifierInterface . |
AlexaClientSDK 3.0.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0