Search code examples
alljoyn

About "Do not use custom signals to distribute property change information." in the AllJoyn Interface Design Guidelines v1.1


AllJoyn "Interface Design Guidelines v1.1" mentioned that"Do not use custom signals to distribute property change information."

So,If I defined an interface as following:

Interface Name: org.example.Fan Properties: IsOpened ... Methods: ...

And Set 'org.freedesktop.DBus.Property.EmitsChangedSignal' annotation value to true.

Then, I must not define a 'IsOpenedChanged' signal for this 'IsOpened' property. I should use 'org.freedesktop.DBus.Properties.PropertiesChanged' signal to inform interested observers.

Am I right?


Solution

  • Yes, you don't need to define a new signal named IsOpenedChanged. The property changed signal is handled behind the scene by the AJ library. You should only use