Class Util
- java.lang.Object
-
- com.blitzllama.androidSDK.utility.Util
-
public class Util extends Object
Sdk Utility class
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classUtil.LogLevel
-
Constructor Summary
Constructors Constructor Description Util()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voiddismissDialog()static StringgetCurrentZoneOffset()static intgetDebugLevel()Returns the log level setstatic voidsetDebugLevel(int level)Enables or disables debugging.static voidshowAlertDialog(Activity activity, String message, String btnPosText, String btnNegText)static voidshowToast(Context context, String message)
-
-
-
Method Detail
-
getDebugLevel
public static int getDebugLevel()
Returns the log level set- Returns:
- The int value
-
setDebugLevel
public static void setDebugLevel(int level)
Enables or disables debugging. If enabled, see debug messages in Android's logcat utility. Debug messages are tagged .- Parameters:
level- Can be one of the following: -1 (disables all debugging), 0 (default, shows minimal SDK integration related logging), 1(shows debug output)
-
getCurrentZoneOffset
public static String getCurrentZoneOffset()
-
showAlertDialog
public static void showAlertDialog(Activity activity, String message, String btnPosText, String btnNegText)
-
dismissDialog
public static void dismissDialog()
-
-