お知らせ:
2025 年 4 月 15 日より前に Earth Engine の使用を登録したすべての非商用プロジェクトは、Earth Engine へのアクセスを維持するために
非商用目的での利用資格を確認する必要があります。
ui.Checkbox.onChange
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
チェックボックスの値が変更されたときに呼び出されるコールバックを登録します。
コールバックの登録を解除するために unlisten() に渡すことができる ID を返します。
用途 | 戻り値 |
---|
Checkbox.onChange(callback) | 文字列 |
引数 | タイプ | 詳細 |
---|
これ: ui.checkbox | ui.Checkbox | ui.Checkbox インスタンス。 |
callback | 関数 | チェックボックスの値が変更されたときに呼び出すコールバック。コールバックには、チェックボックスが現在オンになっているかどうかを示すブール値とチェックボックス ウィジェットが渡されます。 |
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2025-07-26 UTC。
[null,null,["最終更新日 2025-07-26 UTC。"],[[["\u003cp\u003e\u003ccode\u003eCheckbox.onChange()\u003c/code\u003e registers a callback function that executes when the checkbox's value changes.\u003c/p\u003e\n"],["\u003cp\u003eThe callback function receives a boolean indicating the checkbox's checked state and the checkbox widget itself.\u003c/p\u003e\n"],["\u003cp\u003eThis method returns a unique ID used to unregister the callback via \u003ccode\u003eunlisten()\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["# ui.Checkbox.onChange\n\n\u003cbr /\u003e\n\nRegisters a callback that's fired when the value of the checkbox changes.\n\n\u003cbr /\u003e\n\nReturns an ID which can be passed to unlisten() to unregister the callback.\n\n| Usage | Returns |\n|-------------------------------|---------|\n| Checkbox.onChange`(callback)` | String |\n\n| Argument | Type | Details |\n|---------------------|-------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| this: `ui.checkbox` | ui.Checkbox | The ui.Checkbox instance. |\n| `callback` | Function | The callback to fire when the value of the checkbox changes. The callback is passed a boolean indicating whether the checkbox is now checked and the checkbox widget. |"]]