【发布时间】:2014-12-05 14:38:02
【问题描述】:
我已在 Microsoft Azure 网站上启动并运行 Google Mirror API 的 PHP 快速入门,并且可以与 Google Glass 通信。
我仔细研究了“请求/响应”示例之类的选项:
case 'insertItemWithAction':
$new_timeline_item = new Google_TimelineItem();
$new_timeline_item->setText("What did you have for lunch?");
$notification = new Google_NotificationConfig();
$notification->setLevel("DEFAULT");
$new_timeline_item->setNotification($notification);
$menu_items = array();
// A couple of built in menu items
$menu_item = new Google_MenuItem();
$menu_item->setAction("REPLY");
array_push($menu_items, $menu_item);
$menu_item = new Google_MenuItem();
$menu_item->setAction("READ_ALOUD");
array_push($menu_items, $menu_item);
$new_timeline_item->setSpeakableText("What did you eat? Bacon?");
$menu_item = new Google_MenuItem();
$menu_item->setAction("SHARE");
array_push($menu_items, $menu_item);
(来自https://github.com/googleglass/mirror-quickstart-php/blob/master/index.php)
我现在想知道是否可以使用 Google Glass Mirror API 来扫描二维码。
这个想法是取代必须说控制数字的用户,将控制数字转换为二维码,让用户无需说话即可扫描二维码。
这可能吗?
【问题讨论】:
标签: google-glass google-mirror-api