https://www.sourcebaran.com/learn/nativescript_native_apis_using_javascript/