Create a gist now

Instantly share code, notes, and snippets.

Embed
What would you like to do?
@Provides
@Singleton
AssistantActions provideAssistantActions(ResponseHandler responseHandler,
MainRequestHandler.Factory mainRequestHandlerFactory,
TrendingRequestHandler.Factory trendingRequestHandlerFactory) {
return new AssistantActions.Builder(responseHandler)
.addRequestHandlerFactory(StandardIntents.MAIN, mainRequestHandlerFactory)
.addRequestHandlerFactory(Intents.TRENDING, trendingRequestHandlerFactory)
.build();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment