OSDN Git Service

Allow 3P apps to provide structured data within AssistContent.
authorChirag Shah <chirags@google.com>
Mon, 15 Jun 2015 20:09:38 +0000 (13:09 -0700)
committerChirag Shah <chirags@google.com>
Tue, 16 Jun 2015 00:48:41 +0000 (17:48 -0700)
commit61f794a70ffb05a343ef8fda91f3fd7ca5ac59f7
tree2c7074a62a724a9e981a19179787e57fe77c9185
parent2d4dc8db64d0f75e530451acb2c0bea97b9264ff
Allow 3P apps to provide structured data within AssistContent.

For providing structured metadata to the assistant, we've decided to
standardize on JSON-LD (met with Paige/Ulas/Fabian), and decided the
data to be specified via:

AssistContent.setStructuredData(String structuredDataJson)

This method can be documented for 3P developers as allowing developers
to provide metadata to the assistant with the JSON-LD standard.

This would be centered more about content displayed on the screen,
rather than actions based, so we added it to the AssistContent class

Updated doc: go/setStructuredData

Change-Id: I816f69fd6896df822e30d6c71d840bd01f47e544
api/current.txt
api/system-current.txt
core/java/android/app/AssistContent.java