The following members of NewGadget are deprecated. They're provided to keep old source code working, but we strongly advise against using them in new code.
NewGadget reference page
Properties
serialNumber : string (deprecated in 6.5) |
The gadget serial number. |
Signals
void broke() (deprecated in 6.10) |
Emitted when the gadget breaks. |
Methods
void close() (deprecated in 6.5) |
Closes the gadget. |
Property Documentation
serialNumber : string (deprecated in 6.5)
This property is deprecated since DeprecationNotes 6.5. We strongly advise against using it in new code.
The gadget serial number.
The serial number the gadget reports. New code should use the platform-assigned identifier instead.
Signal Documentation
void broke() (deprecated in 6.10)
This signal is deprecated since DeprecationNotes 6.10. We strongly advise against using it in new code.
Emitted when the gadget breaks.
Notifies listeners that the gadget broke. New code should track the status property instead.
Method Documentation
void close() (deprecated in 6.5)
This method is deprecated since DeprecationNotes 6.5. We strongly advise against using it in new code.
Closes the gadget.