mobicontrol.apn.ApnConfiguration

This class represents an APN configuration.

Instances of this class can be stringified with JSON.stringify and then converted back to the ApnConfiguration instance using JSON.parse with the mobicontrol.json.revive parameter.
Check JSON Serialization tutorial for details.

ApnConfiguration

Since:
  • Version 1.4 (API level 5)

Members

readonly apn :string

Access point name.
Since:
  • Version 1.4 (API level 5)

readonly apnType :string

Type of data connection.
Since:
  • Version 1.4 (API level 5)

readonly mcc :string

Mobile country code.
Since:
  • Version 1.4 (API level 5)

readonly mnc :string

Mobile network code.
Since:
  • Version 1.4 (API level 5)

readonly mvnoType :mobicontrol.apn.MvnoType

The matching algorithm used for matching APN configuration and MVNO value.
Since:
  • Version 1.5 (API level 6)

readonly mvnoValue :string

The MVNO that the APN configuration is restricted to.
Since:
  • Version 1.5 (API level 6)

readonly name :string

Display name.
Since:
  • Version 1.4 (API level 5)

Methods

toJSON() → {object}

Customize JSON stringification behavior.

This function customizes behavior of JSON.stringify(): instead of this APN configuration being serialized, the object returned by toJSON() will be serialized.

Note: This function is intended to be called internally by JSON.stringify(); it is not intended to be called directly.
Check JSON Serialization tutorial for details.

Returns:
object - Native JavaScript object representing this APN configuration.
Since:
  • Version 1.4 (API level 5)

withApnType(type) → {mobicontrol.apn.ApnConfiguration}

Set the APN type for the APN configuration.
Parameters:
Name Type Description
type string Types of data connection which should use this APN configuration. See APN type specification for the format of the string and for the available connection types.
Returns:
mobicontrol.apn.ApnConfiguration - This APN configuration.
Since:
  • Version 1.4 (API level 5)

withMvno(type, value) → {mobicontrol.apn.ApnConfiguration}

Set the MVNO for the APN configuration
Parameters:
Name Type Description
type mobicontrol.apn.MvnoType The matching algorithm used to match the APN configuration and MVNO value See APN MVNO type/value specification for the available MVNO types.
value string The MVNO that the APN configuration is matched with. Cannot be empty string, unless the type is NONE.
Returns:
mobicontrol.apn.ApnConfiguration - This APN configuration.
Since:
  • Version 1.5 (API level 6)

withName(name) → {mobicontrol.apn.ApnConfiguration}

Set the display name for the APN configuration.
Parameters:
Name Type Description
name string APN display name, must not be empty.
Returns:
mobicontrol.apn.ApnConfiguration - This APN configuration.
Since:
  • Version 1.4 (API level 5)