public static interface AlexaClientManager.EventManager
Modifier and Type | Method and Description |
---|---|
void |
onAuthCompleted()
Called from AlexaClientAuthManager when LWA access token is ready.
|
void |
onVisibilityChanged(boolean isVisible)
Called from AlexaClientLifecycleHandler when visibility change is detected.
|
void |
reset()
Reset event manager.
|
boolean |
sendMessage(AlexaClientManager.EventType eventType,
boolean statusValue,
java.lang.String message)
Send provided JSON message to Alexa Service with status value.
|
boolean |
sendMessage(AlexaClientManager.EventType eventType,
java.lang.String message)
Send provided JSON message to Alexa Service.
|
void onAuthCompleted()
void onVisibilityChanged(boolean isVisible)
isVisible
- Current hosting application is visible or not.boolean sendMessage(AlexaClientManager.EventType eventType, java.lang.String message)
eventType
- type of current event to send. @{EventType}.message
- JSON message to send.boolean sendMessage(AlexaClientManager.EventType eventType, boolean statusValue, java.lang.String message)
eventType
- type of current event to send. @{EventType}.statusValue
- Current status value.message
- JSON message to send.void reset()