public object Lenient : NetworkingRules { override fun isHighBandwidthRequest(requestType: RequestType): Boolean { return requestType is RequestType.MediaRequest } override fun checkValidRequest( requestType: RequestType, currentNetworkType: NetworkType ): RequestCheck { return Allow } override fun getPreferredNetwork( networks: Networks, requestType: RequestType ): NetworkStatus? { return networks.networks.firstOrNull { it.type is NetworkType.Wifi } } }
This method sets the network rules