public class M
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
M.Type
Types of the Log
|
| Constructor and Description |
|---|
M() |
| Modifier and Type | Method and Description |
|---|---|
static void |
L(java.util.List<?> messages)
Log your message
|
static void |
L(M.Type type,
java.util.List<?> messages)
Log your message
|
static void |
L(M.Type type,
java.lang.Object... messages)
Log your message
|
static void |
L(M.Type type,
java.lang.Object message)
Log your message
|
static void |
L(M.Type type,
java.lang.String tag,
java.util.List<?> messages)
Log your message
|
static void |
L(M.Type type,
java.lang.String tag,
java.lang.Object... messages)
Log your message
|
static void |
L(M.Type type,
java.lang.String tag,
java.lang.Object message)
Log your message
|
static void |
L(java.lang.Object... messages)
Log your message
|
static void |
L(java.lang.Object message)
Log your message
|
static void |
L(java.lang.String tag,
java.util.List<?> messages)
Log your message
|
static void |
L(java.lang.String tag,
java.lang.Object... messages)
Log your message
|
static void |
L(java.lang.String tag,
java.lang.Object message)
Log your message
|
static void |
S(android.view.View parentView,
java.lang.Object message)
Shows a Snackbar
|
static void |
S(android.view.View parentView,
java.lang.Object message,
int length)
Shows a Snackbar with specified length
|
static void |
S(android.view.View parentView,
java.lang.Object message,
int length,
java.lang.String action,
int actionColor,
android.view.View.OnClickListener listener)
Shows a SnackBar with action that has specified color for action text and specified time
|
static void |
S(android.view.View parentView,
java.lang.Object message,
int length,
java.lang.String action,
android.view.View.OnClickListener listener)
Shows a SnackBar with and action
|
static void |
S(android.view.View parentView,
java.lang.Object message,
java.lang.String action,
int actionColor,
android.view.View.OnClickListener listener)
Shows a SnackBar with action that has specified color for action text
|
static void |
S(android.view.View parentView,
java.lang.Object message,
java.lang.String action,
android.view.View.OnClickListener listener)
Shows a SnackBar with and action
|
static void |
setLogType(M.Type t)
Set the type of Logging
|
static void |
setLogTypeToDefault()
Set the Logging type to Debug mode
|
static void |
setTag(java.lang.String s)
Set the tag for the logging
|
static void |
setTagToDefault()
Set the tag value to default
|
static void |
T(android.content.Context context,
int resID)
Toast your Custom View Message
|
static void |
T(android.content.Context context,
int resID,
int length)
Toast your Custom View Message
|
static void |
T(android.content.Context context,
int resID,
int gravity,
int xPos,
int yPos)
Toast your Custom View Message
|
static void |
T(android.content.Context context,
int resID,
int gravity,
int xPos,
int yPos,
int length)
Toast your Custom View Message
|
static void |
T(android.content.Context context,
java.lang.Object message)
Toast your message
|
static void |
T(android.content.Context context,
java.lang.Object message,
int length)
Toast your message
|
static void |
T(android.content.Context context,
java.lang.Object message,
int gravity,
int xPos,
int yPos)
Toast your message
|
static void |
T(android.content.Context context,
java.lang.Object message,
int gravity,
int xPos,
int yPos,
int length)
Toast your message
|
static void |
T(android.content.Context context,
android.view.View view)
Toast your Custom View Message
|
static void |
T(android.content.Context context,
android.view.View view,
int length)
Toast your Custom View Message
|
static void |
T(android.content.Context context,
android.view.View view,
int gravity,
int xPos,
int yPos)
Toast your Custom View Message
|
static void |
T(android.content.Context context,
android.view.View view,
int gravity,
int xPos,
int yPos,
int length)
Toast your Custom View Message
|
public static void setLogType(M.Type t)
t - Typepublic static void setLogTypeToDefault()
public static void setTag(java.lang.String s)
s - The name of the tagpublic static void setTagToDefault()
public static void L(java.lang.Object message)
message - Give your message to be loggedpublic static void L(M.Type type, java.lang.Object message)
type - The type of Loggingmessage - Give your message to be loggedpublic static void L(java.lang.Object... messages)
messages - Array of messagespublic static void L(M.Type type, java.lang.Object... messages)
type - The type of Loggingmessages - Array of messagespublic static void L(java.util.List<?> messages)
messages - List of messagespublic static void L(M.Type type, java.util.List<?> messages)
type - The type of Loggingmessages - List of messagespublic static void L(java.lang.String tag,
java.lang.Object message)
tag - Mention the tagmessage - Give your message to be loggedpublic static void L(M.Type type, java.lang.String tag, java.lang.Object message)
type - The type of Loggingtag - Mention the tagmessage - Give your message to be loggedpublic static void L(java.lang.String tag,
java.lang.Object... messages)
tag - tag for identificationmessages - array of messages to loggedpublic static void L(M.Type type, java.lang.String tag, java.lang.Object... messages)
type - The type of Loggingtag - tag for identificationmessages - array of messages to loggedpublic static void L(java.lang.String tag,
java.util.List<?> messages)
tag - tag for identificationmessages - List of messagespublic static void L(M.Type type, java.lang.String tag, java.util.List<?> messages)
type - The type of Loggingtag - tag for identificationmessages - List of messagespublic static void T(android.content.Context context,
java.lang.Object message)
context - Contextmessage - Message to be toastedpublic static void T(android.content.Context context,
java.lang.Object message,
int length)
context - Contextmessage - Message to be Toastedlength - LENGTH_LONG or LENGTH_SHORTpublic static void T(android.content.Context context,
java.lang.Object message,
int gravity,
int xPos,
int yPos)
context - Contextmessage - Message to be Toastedgravity - Gravity of the toastxPos - The xOffset of the toastyPos - The yOffset of the toastpublic static void T(android.content.Context context,
java.lang.Object message,
int gravity,
int xPos,
int yPos,
int length)
context - Contextmessage - Message to be Toastedgravity - Gravity of the toastxPos - The xOffset of the toastyPos - The yOffset of the toastlength - LENGTH_LONG or LENGTH_SHORTpublic static void T(android.content.Context context,
android.view.View view)
context - Contextview - Your Custom Viewpublic static void T(android.content.Context context,
android.view.View view,
int length)
context - Contextview - Your Custom Viewlength - Either LENGTH_SHORT or LENGTH_LONGpublic static void T(android.content.Context context,
android.view.View view,
int gravity,
int xPos,
int yPos)
context - Contextview - Your Custom Viewgravity - Gravity of the toastxPos - The xOffset of the toastyPos - The yOffset of the toastpublic static void T(android.content.Context context,
android.view.View view,
int gravity,
int xPos,
int yPos,
int length)
context - Contextview - Your Custom Viewgravity - Gravity of the toastxPos - The xOffset of the toastyPos - The yOffset of the toastlength - Either LENGTH_SHORT or LENGTH_LONGpublic static void T(android.content.Context context,
int resID)
context - ContextresID - Your Custom Layout IDpublic static void T(android.content.Context context,
int resID,
int length)
context - ContextresID - Your Custom Layout IDlength - Either LENGTH_SHORT or LENGTH_LONGpublic static void T(android.content.Context context,
int resID,
int gravity,
int xPos,
int yPos)
context - ContextresID - Your Custom Layout IDgravity - Gravity of the toastxPos - The xOffset of the toastyPos - The yOffset of the toastpublic static void T(android.content.Context context,
int resID,
int gravity,
int xPos,
int yPos,
int length)
context - ContextresID - Your Custom Layout IDgravity - Gravity of the toastxPos - The xOffset of the toastyPos - The yOffset of the toastlength - Either LENGTH_SHORT or LENGTH_LONGpublic static void S(android.view.View parentView,
java.lang.Object message)
parentView - Your parent viewmessage - Message to be shownpublic static void S(android.view.View parentView,
java.lang.Object message,
int length)
parentView - Your parent viewmessage - Message to be shownlength - LENGTH_LONG or LENGTH_SHORT or LENGTH_INDEFINITEpublic static void S(android.view.View parentView,
java.lang.Object message,
java.lang.String action,
android.view.View.OnClickListener listener)
parentView - Your parent viewmessage - Message to be shownaction - Name of the actionlistener - ClickListener for the actionpublic static void S(android.view.View parentView,
java.lang.Object message,
java.lang.String action,
int actionColor,
android.view.View.OnClickListener listener)
parentView - Your parent viewmessage - Message to be shownaction - Name of the actionactionColor - Color of the action textlistener - ClickListener for the actionpublic static void S(android.view.View parentView,
java.lang.Object message,
int length,
java.lang.String action,
android.view.View.OnClickListener listener)
parentView - Your parent viewmessage - Message to be shownlength - LENGTH_LONG or LENGTH_SHORT or LENGTH_INDEFINITEaction - Name of the actionlistener - ClickListener for the actionpublic static void S(android.view.View parentView,
java.lang.Object message,
int length,
java.lang.String action,
int actionColor,
android.view.View.OnClickListener listener)
parentView - Your parent viewmessage - Message to be shownlength - LENGTH_LONG or LENGTH_SHORT or LENGTH_INDEFINITEaction - Name of the actionactionColor - Color of the action textlistener - ClickListener for the action