setNetworkEnabled
Sets whether the specified network type is enabled for transmission of analytics events.
Return
false if the network type cannot be disabled because it is currently the only network type that is enabled for analytics event transmission, otherwise true.
Parameters
type
the type of the network.
enabled
true, if the network should be enabled for analytics transmission, otherwise false.