Skip to content

DeviceSecurity::isDeviceSecured, isRunOnSimulator documentation #950

@jtara

Description

@jtara

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

Documentation for isRunOnSimulator and isDeviceSecured is incorrect.

  • isRunOnSimulator also applies to iOS, and returns true if run on Apple simulator. (I have not tested with RhoSimulator). Probably really moot, since simulator on iOS only runs with specially-built X86 image and would never apply with distributed application.

  • isDeviceSecured description should be reworded a bit, since simulator check is included on iOS.

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.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions