Google Home Developer Center へようこそ。スマートホーム アクションの開発方法を学習できます。注: アクションの構築は、引き続き Actions Console で行います。
接続解除
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
ユーザーが smart home アクションと Google Assistant のリンクを解除すると、フルフィルメントは action.devices.DISCONNECT
インテントを受け取ります。このインテントは、Assistant がこのユーザーに対してこれ以上インテントを送信せず、クラウド サービスがデバイスの Google Home Graph API(Request Sync と Report State)の呼び出しを停止する必要があることを示します。
{
"requestId": "ff36a3cc-ec34-11e6-b1a0-64510650abcf",
"inputs": [{
"intent": "action.devices.DISCONNECT",
}]
}
{}
const {smarthome} = require('actions-on-google');
const app = smarthome();
// ...
app.onDisconnect((body, headers) => {
// TODO Disconnect user account from Google Assistant
// You can return an empty body
return {};
});
@Override
public void onDisconnect(
@NotNull DisconnectRequest disconnectRequest, @Nullable Map<?, ?> map) {
// TODO Disconnect user account from Google Assistant
// This function does not return anything
}
詳細については、DISCONNECT
インテントのリファレンス ドキュメントをご覧ください。
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2022-10-31 UTC。
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"必要な情報がない"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"複雑すぎる / 手順が多すぎる"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"最新ではない"
},{
"type": "thumb-down",
"id": "translationIssue",
"label":"翻訳に関する問題"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"サンプル / コードに問題がある"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"その他"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"わかりやすい"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"問題の解決に役立った"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"その他"
}]