rhomobile / rhodes

The Rhodes framework is a platform for building locally executing, device-optimized mobile applications for all major smartphone devices.
http://tau-platform.com/
MIT License
1.05k stars 237 forks source link

DeviceSecurity::isDeviceSecured, isRunOnSimulator documentation #950

Open jtara opened 6 years ago

jtara commented 6 years ago

Filing these here because rhomobile-docs project doesn't seem to be updated.

Documentation for isRunOnSimulator and isDeviceSecured is incorrect.

All of the methods are actually available on iOS, but of course those that are not applicable return false. It might be good to mention this in the documentation, as it will save developers the trouble of writing conditional code.

jtara commented 6 years ago

I noticed another couple of issues with the documentation as well.

Documentation states that isDeviceSecured checks for installer issues. It does not. It will return true even if installer issue. You need to check for installer issue separately.

As well, I notice there is no link for DeviceSecurity under APIs. However, it is present in the left sidebar. It would be good to check for other APIs missing in the main list that are listed in the sidebar.