new EuRoamingManager()
EuRoamingManager observes the mobile codes of the current connected operator and display a notification when necessary.
EuRoamingManager observes the mobile codes of the current connected operator and display a notification when necessary.
- Source:
Methods
_addDataChangeListener()
Add listeners on events related to the change of the mobile codes of the currently connected data network.
Add listeners on events related to the change of the mobile codes of the currently connected data network.
- Source:
_addSimChangeListener()
Add listeners on events related to the change of the mobile codes stored on the icc card.
Add listeners on events related to the change of the mobile codes stored on the icc card.
- Source:
_clearNotifications() → {Promise}
Clear all notifications of EU roaming.
Clear all notifications of EU roaming.
- Source:
Returns:
- Type
- Promise
_init() → {Promise}
Load the EU roaming file and register related listeners when necessary.
Load the EU roaming file and register related listeners when necessary.
- Source:
Returns:
- Type
- Promise
_initValues()
Initialzes values.
Initialzes values.
- Source:
_isEURoamingForeignOperator(mcc, mnc) → {Boolean}
Check if the mobile codes is a valid EU romaing foreign operator.
Check if the mobile codes is a valid EU romaing foreign operator.
Parameters:
Name | Type | Description |
---|---|---|
mcc |
String | |
mnc |
String |
- Source:
Returns:
- Type
- Boolean
_isEURoamingHomeOperator(mcc, mnc) → {Boolean}
Check if the mobile codes is a valid EU romaing home operator.
Check if the mobile codes is a valid EU romaing home operator.
Parameters:
Name | Type | Description |
---|---|---|
mcc |
String | |
mnc |
String |
- Source:
Returns:
- Type
- Boolean
_onSimChanged()
The function stores the mobile codes of the currently used sim card and try to display the notification.
The function stores the mobile codes of the currently used sim card and try to display the notification.
- Source:
_showNotification(serviceId)
Shows the EU roaming notification of a sim card.
Shows the EU roaming notification of a sim card.
Parameters:
Name | Type | Description |
---|---|---|
serviceId |
Number |
- Source:
_start()
Starts the module.
Starts the module.
- Source:
_triggerSettingsActivity(serviceId)
Invokes an activity for setting the EU roaming apn.
Invokes an activity for setting the EU roaming apn.
Parameters:
Name | Type | Description |
---|---|---|
serviceId |
Number |
- Source:
_tryShowEuRoamingNotification(connection, index) → {Promise}
The function displays the EU roaming notification when:
- Roaming on the newly connected data network.
The function displays the EU roaming notification when:
- Roaming on the newly connected data network.
- The mobile codes of the operators of the sim card are listed in the "home" section of the EU roaming file.
- The mobile codes of the operators of the connected data network are listed in the "foreign" section of the EU roaming file.
Parameters:
Name | Type | Description |
---|---|---|
connection |
MobileConnection | |
index |
Number |
- Source:
Returns:
- Type
- Promise