io2015-codelabs icon indicating copy to clipboard operation
io2015-codelabs copied to clipboard

"Say Cheese" shouldn't be a string?

Open DanFloodTechnologies opened this issue 9 years ago • 1 comments
trafficstars

In the example code the line is:

getActivity().getVoiceInteractor() .submitRequest(new PickOptionRequest( "Say Cheese", new Option[]{option}, null) {

But it seems that it should be:

getActivity().getVoiceInteractor() .submitRequest(new PickOptionRequest( new VoiceInteractor.Prompt("Say Cheese"), new Option[]{option}, null) {

or am I misunderstanding something?

DanFloodTechnologies avatar Oct 17 '16 18:10 DanFloodTechnologies

Nope, you are correct. The constructor taking in a String has an @hide annotation in the source, so it's not available for use (without reflection). Anything marked with @hide will also not appear in the docs.

StephenBrough avatar Jan 29 '17 03:01 StephenBrough