Interface IDataTrafficController
interface IDataTrafficController
Extends com.amazon.apmf.IStandard
Network data traffic control and management.
Provides capabilities for controlling network data traffic and
accessing traffic statistics.
Methods
getDataTrafficStats()
This API retrieves the transmitted and received data for the specified interface. The data is collected after device boots.IDataTrafficStatistics*getDataTrafficStats(stringinterfaceName)
Parameters
interfaceName
string — Required
The name of the network interface to
get the data traffic statistics.
Use empty string for total statistics for all interfaces.
Name cannot exceed ‘Contants.NETWORK_INTERFACE_NAME_MAX_LEN’.
Returns
IDataTrafficStatistics*
The data traffic statistics for the specified interface.
Throws
NotSupportedError— if the feature is not supported, or if the interface indiciated by interfaceName is not supported.SecurityError— if the app does not have the permission.InvalidArgumentError— if the interfaceName is invalid.

