Incorrect code example for SystemEvent docs page (BB and Tablet)
Closed this issue · 3 comments
There are 2 examples at the bottom of the SystemEvent docs for BB 5/6.
The last one references a "notifyOnBatteryLevelChange" function, which does not seem to fit the functions being documented above.
The same is also true for the opposite. On the Playbook (Tablet) page for SystemEvent, there are 2 examples at the bottom. The 1rst is the onHardwareKey example from the BB 5/6 which does not seem to fit the methods documented above.
Both examples seem fine.
notifyOnBatteryLevelChange calls blackberry.system.event.deviceBatteryLevelChange.
Just checked the examples as well and they are correct. It's just unfortunate the names of functions are so close to the parameter names etc which makes it really confusing
Fixed by #301