ToggleButton
ToggleButton copied to clipboard
How to check the on / off state of the toggle button
Hello,
I want to know how can I check a toggle button is on or off. Please help me out.
Thank You
You have to manage state from your end
toggleBtn.setOnToggleChanged {
if(it){
toggleState = true;
}else{
toggleState = false;
}
}
这是来自QQ邮箱的假期自动回复邮件。您好,我最近正在休假中,无法亲自回复您的邮件。我将在假期结束后,尽快给您回复。