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:

  1. subscribe updates timeline collection.
  2. insert timeline item reply built in action specified shown here. optionally, can rename menu item , customize icon.

    {   "text": "hello world",   "menuitems": [     {       "action": "reply"     }   ] } 
  3. the timeline card have reply option in menu. when user selects it, prompted speak.

  4. a new timeline card created contains text transcription , has attached audio recording. glassware has access card.
  5. 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"     }   ] } 
  6. fetch indicated timeline item access transcribed text (in text property) , attached audio recording

Comments

Popular posts from this blog

c# - Send Image in Json : 400 Bad request -

jquery - Fancybox - apply a function to several elements -

An easy way to program an Android keyboard layout app -