যদি ব্যবহারকারী Google Assistant থেকে আপনার smart home অ্যাকশনটি আনলিঙ্ক করে, তাহলে আপনার ফুলফিলমেন্ট একটি action.devices.DISCONNECT ইন্টেন্ট পায়। এই ইন্টেন্টটি নির্দেশ করে যে Assistant এই ব্যবহারকারীর জন্য আর কোনো ইন্টেন্ট পাঠাবে না, এবং আপনার ক্লাউড পরিষেবা তাদের ডিভাইসগুলির জন্য Google Home Graph এপিআই (রিকোয়েস্ট সিঙ্ক এবং 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 ইন্টেন্ট রেফারেন্স ডকুমেন্টেশন দেখুন।