platform by Hojoki GmbH

Currently displaying version

platform: Platform information

The forge.platform namespace allows you to get platform information from within your app.

API

forge.platform.getVersion(success, error)

iOS, Android

Get the OS version.

Parameters:
success
function(version) invoked with the version string as its only argument (e.g. '7.0.4')
error
function(content) called with details of any error which may occur

forge.platform.getModel(success, error)

iOS, Android

Get the device model name.

Parameters:
success
function(model) invoked with the model name as its only argument (e.g. 'iPhone 5s')
error
function(content) called with details of any error which may occur

forge.platform.getAPILevel(success, error)

Android

Get the Android API Level.

Parameters:
success
function(level) invoked with the API level as its only argument
error
function(content) called with details of any error which may occur

forge.platform.getManufacturer(success, error)

Android

Get the Device Manufacturer.

Parameters:
success
function(level) invoked with the manufacturer as its only argument
error
function(content) called with details of any error which may occur