Alexa Auto SDK  2.0.0
Classes | Public Member Functions | Protected Member Functions | List of all members
com.amazon.aace.cbl.CBL Class Referenceabstract

Classes

enum  CBLState
 
enum  CBLStateChangedReason
 

Public Member Functions

void cblStateChanged (CBLState state, CBLStateChangedReason reason, String url, String code)
 
void clearRefreshToken ()
 
void setRefreshToken (String refreshToken)
 
String getRefreshToken ()
 
void setUserProfile (String name, String email)
 

Protected Member Functions

final void start ()
 
final void cancel ()
 
final void reset ()
 

Detailed Description

PhoneCallController should be extended to perform CBL authentication

Member Function Documentation

◆ cblStateChanged()

void com.amazon.aace.cbl.CBL.cblStateChanged ( CBLState  state,
CBLStateChangedReason  reason,
String  url,
String  code 
)

Notifies the platform implementation of an authorization flow state change

◆ clearRefreshToken()

void com.amazon.aace.cbl.CBL.clearRefreshToken ( )

Notifies the platform implementation to clear the refresh token

◆ setRefreshToken()

void com.amazon.aace.cbl.CBL.setRefreshToken ( String  refreshToken)

Notifies the platform implementation to set the refresh token

◆ getRefreshToken()

String com.amazon.aace.cbl.CBL.getRefreshToken ( )

Returns the refresh token stored by the platform implementation, otherwise return an empty string

◆ setUserProfile()

void com.amazon.aace.cbl.CBL.setUserProfile ( String  name,
String  email 
)

Notifies the platform implementation to set the user profile, this is requested one time after authorization requestUserProfile must be enabled in configuration

◆ start()

final void com.amazon.aace.cbl.CBL.start ( )
protected

Notifies the Engine to begin the authorization process

◆ cancel()

final void com.amazon.aace.cbl.CBL.cancel ( )
protected

Notifies the Engine to cancel the authorization process

◆ reset()

final void com.amazon.aace.cbl.CBL.reset ( )
protected

Notifies the Engine to reset the authorization state


Alexa Auto SDK 2.0.0 - Copyright 2017-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0