profile Singleton

User profile

profile()

Members

ageRating :Number static readonly

Indicates what ageRating the profile has.

country :String static readonly

Contains the full length country name in english. For example 'Netherlands'

countryCode :String static readonly

Contains a lowercase iso code of the country. For example (nl, en, uk, fr, us)

household :String static readonly

Unique household operator id.

id :String static readonly

Unique profile id.

ip :String static readonly

IP address of the device the framework is running on.

language :String static readonly

Contains the full length language name. For example 'English'.

languageCode :String static readonly

Contains the ISO 639-1 language code. For example 'en'.

latlon :Array static readonly

Contains the latitude and longitude coordinates of the device location.

locale :String static readonly

Contains the combination of language and country iso codes. For example 'en-NL'

locked :Boolean static readonly

Indicates if the profile is locked after for example to many incorrect pin entries.

mac :String static readonly

Contains the mac address of the device.

name :String static readonly

Contains the name of the profile.

operator :String static readonly

Contains the operator name.

packages :Array static readonly

{String} city :String static readonly

Contains the full length city name where the application is running.

Methods

getCountry()

Deprecated Use profile.countryCode instead. This will no longer be available in the next major version.

getLanguage()

Deprecated Use profile.languageCode instead. This will no longer be available in the next major version.

hasPin(type) → {Boolean}

Ask the system if a certain section is password protected.

Parameters:

Name Type Description
type String

Indicates what section to check if it has a password. Possible options: master, adult, youth, purchase and passport

Returns:

True if a password is set.