google glass - Sharing a photo with text -
the "add cat that" example explains how share photo service.
but there way share photo text (using voice recorder) in single item ?
yup! can using reply built-in menu item.
however, flow bit different add cat that flow. works this:
- subscribe updates
timeline
collection. insert timeline item reply built in action specified shown here. optionally, can rename menu item , customize icon.
{ "text": "hello world", "menuitems": [ { "action": "reply" } ] }
the timeline card have reply option in menu. when user selects it, prompted speak.
- a new timeline card created contains text transcription , has attached audio recording. glassware has access card.
your glassware notified item insertion. notification looks this:
{ "collection": "timeline", "itemid": "3hidvm0xez6r8_dacdb3103b8b604_h8rpllg", "operation": "insert", "usertoken": "harold_penguin", "verifytoken": "random_hash_to_verify_referer", "useractions": [ { "type": "reply" } ] }
- fetch indicated timeline item access transcribed text (in
text
property) , attached audio recording
Comments
Post a Comment