public interface CellularNetworkListener
Modifier and Type | Field and Description |
---|---|
static int |
NETWORK_CELL_CHANGED
Network event indicates current cell changed in one of the connected networks.
|
static int |
NETWORK_CONNECTED
Network event indicates the device connected to the cellular network.
|
static int |
NETWORK_DISCONNECTED
Network event indicates the device disconnected from the cellular network
This event is delivered when the device is unregistered to a cellular network.
|
static int |
NETWORK_PROTOCOL_CHANGED
Network event indicates the network data protocol has changed in one of the connected networks.
|
Modifier and Type | Method and Description |
---|---|
void |
notifyNetworkEvent(CellularNetwork network,
int networkEvent)
Notifies listener about network related event.
|
static final int NETWORK_CONNECTED
static final int NETWORK_DISCONNECTED
static final int NETWORK_PROTOCOL_CHANGED
static final int NETWORK_CELL_CHANGED
void notifyNetworkEvent(CellularNetwork network, int networkEvent)
network
- the network where the event occursnetworkEvent
- the occurred subscriber event, which can be one of
NETWORK_CONNECTED, NETWORK_DISCONNECTED,
NETWORK_PROTOCOL_CHANGED or NETWORK_CELL_CHANGED.Copyright (c) 2014, Oracle and/or its affiliates. All Rights Reserved. Use of this specification is subject to license terms.