How to implement a helper with the Google Assist API

I was browsing and reading about Google Now on Tap (from http://developer.android.com/training/articles/assistant.html ).

It was very interesting to find from this article that the Google Assist API bundled with Marshmallow is now based on a click, and it seems to us that we can develop our own assistant (the Google term used in the article to refer to the application, as it is now on Tap) with using the API.

However, this article only briefly discusses how to use the Assist API, and I could not find any additional information on how to use it to develop a user assistant, even after spending several days searching the Internet. There is no documentation and no example.

I was wondering if any of you have any experience with the Assist API that you could share? Any help was appreciated.

thanks

+4
source share
1 answer

You can definitely implement a personal assistant like Google Now on Tap using the Assist API starting with Android 6.0. The official developer ( http://developer.android.com/training/articles/assistant.html ) will tell you exactly how you should implement it.

. 2, Android. - VoiceInteractionSession VoiceInteractionSession, , BIND_VOICE_INTERACTION. , AssistStructure onHandleAssist(). onHandleScreenshot().

Commonsware Assist API. TapOffNow (https://github.com/commonsguy/cw-omnibus/tree/master/Assist/TapOffNow) , .

onHandleScreenshot(), , AssistStructure onHandleAssist() ViewNode , .

, , ViewNode, , ViewNode.

+6

Source: https://habr.com/ru/post/1627935/


All Articles