Alexa Auto SDK  2.0.0
Public Member Functions | List of all members
com.amazon.maccandroid.MACCAndroidClient Class Reference

Public Member Functions

void initAndRunDiscovery ()
 
void onAuthorizedPlayers (List< AuthorizedPlayer > players)
 
void handleDirective (Directive directive)
 
ExternalMediaPlayerState getState (String playerId)
 

Detailed Description

MACCAndroidClient implementation that can be instantiated to provide a client to connect to MACC compatible apps, and provides callbacks to assist with the initialization process and reporting of events and states

Member Function Documentation

◆ initAndRunDiscovery()

void com.amazon.maccandroid.MACCAndroidClient.initAndRunDiscovery ( )

runs a single instance of the discovery scan, usually good to run at startup

◆ onAuthorizedPlayers()

void com.amazon.maccandroid.MACCAndroidClient.onAuthorizedPlayers ( List< AuthorizedPlayer >  players)

Call that is made to give a list of players that were authorized from the cloud

Parameters
playerslist of authorized players

◆ handleDirective()

void com.amazon.maccandroid.MACCAndroidClient.handleDirective ( Directive  directive)

handles a directive coming from AVS

Parameters
directivedirective coming from AVS

◆ getState()

ExternalMediaPlayerState com.amazon.maccandroid.MACCAndroidClient.getState ( String  playerId)

Gets the current state of a specific player. This state is ExternalMediaPlayerState

Parameters
playerId

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