Package com.zing.zalo.zbrowser.util
Class ZBrowserUtil
- java.lang.Object
-
- com.zing.zalo.zbrowser.util.ZBrowserUtil
-
public class ZBrowserUtil extends Object
-
-
Constructor Summary
Constructors Constructor Description ZBrowserUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StringbuildUrlWithTrackingParam(String request, String rawUrl)static NetworkInfogetNetworkInfo(Context context)Get the network infostatic booleanisConnectedWifi(Context context)Check if there is any connectivity to a Wifi networkstatic StringremoveTrackingParam(String url, ConfigCache configCache)
-
-
-
Method Detail
-
buildUrlWithTrackingParam
public static String buildUrlWithTrackingParam(@NonNull String request, @NonNull String rawUrl)
-
removeTrackingParam
public static String removeTrackingParam(String url, ConfigCache configCache)
-
getNetworkInfo
public static NetworkInfo getNetworkInfo(Context context)
Get the network info- Parameters:
context-- Returns:
-
isConnectedWifi
public static boolean isConnectedWifi(Context context)
Check if there is any connectivity to a Wifi network- Parameters:
context-- Returns:
-
-