actions SDK GoogleHome と スマホ で処理を分けたくなった時に使うTIPS

github.com actions sdk を使っている時、GoogleHome と スマホ で処理を分けたくなった時に使うTIPS こんな感じで処理を記述すると、画面の有無を取得することができるので処理を分けることができる if (app.hasSurfaceCapability(app.SurfaceCapabilities.SCREEN_OUTPUT)) { smart phone 用の処理 } else { google home …