সংযোগ বিচ্ছিন্ন করুন

যদি ব্যবহারকারী আপনার smart home অ্যাকশনকে Google Assistant থেকে আনলিঙ্ক করে, তাহলে আপনার পূরণ একটি action.devices.DISCONNECT ইন্টেন্ট পাবে। এই ইন্টেন্টটি নির্দেশ করে যে Assistant এই ব্যবহারকারীর জন্য আর কোনও ইন্টেন্ট পাঠাবে না এবং আপনার ক্লাউড পরিষেবা তাদের ডিভাইসের জন্য Google Home Graph API (Request Sync and Report State ) কল করা বন্ধ করবে।

অনুরোধ
{
    "requestId": "ff36a3cc-ec34-11e6-b1a0-64510650abcf",
    "inputs": [{
      "intent": "action.devices.DISCONNECT",
    }]
}
JSON সম্পর্কে
{}
নোড.জেএস
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 ইন্টেন্ট রেফারেন্স ডকুমেন্টেশন দেখুন।