New Year Sale Special Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: xmasmnth

When a developer is developing a smart home application, the Switch component will be used...

When a developer is developing a smart home application, the Switch component will be used to represent the switch of some devices, and ON should be displayed on the ON status component and OFF should be displayed on the closed state component, what are the following options that can meet the requirements?

A.

Switch btnSwitch=(Switch)findComponentByld(Resource Table.ld_btn_switch);

btnSwitch.setStateOffText("OFF");

btnSwitch.setStateONText("ON");

B.

ohos:text_state_off="ON"

ohos:text_state_on="OFF">

C.

Switch btnSwitch=(Switch)findComponentByld(Resource Table.ld_btn_switch);

btnSwitch.setStateOffText("ON");

btnSwitch.setStateONText("OFF");

D.

ohos:text_state_off="OFF"

ohos:text_state_on="ON">

Huawei H14-231_V1.0 Summary

  • Vendor: Huawei
  • Product: H14-231_V1.0
  • Update on: Jan 3, 2026
  • Questions: 695
Price: $52.5  $149.99
Buy Now H14-231_V1.0 PDF + Testing Engine Pack

Payments We Accept

Your purchase with ExamsVCE is safe and fast. Your products will be available for immediate download after your payment has been received.
The ExamsVCE website is protected by 256-bit SSL from McAfee, the leader in online security.

examsvce payment method