package com.datdo.mobilib.event;

import com.datdo.mobilib.util.MblUtils;

/**
 * Events frequently used in Android apps.
 */
public final class MblCommonEvents {
    /**
     * <pre>
     * Screen orientation is changed between Portrait <--> Landscape.
     * Call {@link MblUtils#isPortraitDisplay()} to get current orientation
     * </pre>
     */
    public static final String ORIENTATION_CHANGED              = MblCommonEvents.class + "#orientation_changed";

    /**
     * <pre>
     * Network is connected.
     * Call {@link MblUtils#isNetworkConnected()} to get current network status.
     * </pre>
     */
    public static final String NETWORK_ON                       = MblCommonEvents.class + "#network_on";

    /**
     * <pre>
     * Network is disconnected.
     * Call {@link MblUtils#isNetworkConnected()} to get current network status.
     * </pre>
     */
    public static final String NETWORK_OFF                      = MblCommonEvents.class + "#network_off";

    /**
     * <pre>
     * Keyboard is shown.
     * </pre>
     * Call {@link MblUtils#isKeyboardOn()} to get current keyboard status.
     */
    public static final String KEYBOARD_SHOWN                   = MblCommonEvents.class + "#keyboard_shown";

    /**
     * <pre>
     * Keyboard is hidden.
     * </pre>
     * Call {@link MblUtils#isKeyboardOn()} to get current keyboard status.
     */
    public static final String KEYBOARD_HIDDEN                  = MblCommonEvents.class + "#keyboard_hidden";

    /**
     * <pre>
     * App goes to background (to Home screen, to other app, or screen is locked).
     * Call {@link MblUtils#isAppInForeGround()} to get background/foreground status.
     * </pre>
     */
    public static final String GO_TO_BACKGROUND                 = MblCommonEvents.class + "#go_to_background";

    /**
     * <pre>
     * App goes to foreground.
     * Call {@link MblUtils#isAppInForeGround()} to get background/foreground status.
     * </pre>
     */
    public static final String GO_TO_FOREGROUND                 = MblCommonEvents.class + "#go_to_foreground";

    /**
     * <pre>
     * Activity 's onXxx methods (onCreate, onResume, onPause, onDestroy, onActivityResult)
     * The activity object and corresponding data are attached in args of {@link MblEventListener#onEvent(Object, String, Object...)}.
     * </pre> 
     */
    public static final String ACTIVITY_CREATED                 = MblCommonEvents.class + "#activity_created";
    public static final String ACTIVITY_RESUMED                 = MblCommonEvents.class + "#activity_resumed";
    public static final String ACTIVITY_PAUSED                  = MblCommonEvents.class + "#activity_paused";
    public static final String ACTIVITY_DESTROYED               = MblCommonEvents.class + "#activity_destroyed";
    public static final String ACTIVITY_RESULT                  = MblCommonEvents.class + "#activity_result";
}

@@ -2136,78 +2136,23 @@
 s on
-Xxx methods (onCreate, onResume, onPause, onDestroy, onActivityResult)
+Create methods.
 %0A   
@@ -2421,341 +2421,1217 @@
 d%22;%0A
-    public static final String ACTIVITY_RESUMED                 = MblCommonEvents.class + %22#activity_resumed%22;%0A    public static final String ACTIVITY_PAUSED                  = MblCommonEvents.class + %22#activity_paused%22;%0A    public static final String ACTIVITY_DESTROYED               = MblCommonEvents.class + %22#activity_destroyed%22;
+%0A    /**%0A     * %3Cpre%3E%0A     * Activity 's onResume methods.%0A     * The activity object and corresponding data are attached in args of %7B@link MblEventListener#onEvent(Object, String, Object...)%7D.%0A     * %3C/pre%3E %0A     */%0A    public static final String ACTIVITY_RESUMED                 = MblCommonEvents.class + %22#activity_resumed%22;%0A%0A    /**%0A     * %3Cpre%3E%0A     * Activity 's onPause methods.%0A     * The activity object and corresponding data are attached in args of %7B@link MblEventListener#onEvent(Object, String, Object...)%7D.%0A     * %3C/pre%3E %0A     */%0A    public static final String ACTIVITY_PAUSED                  = MblCommonEvents.class + %22#activity_paused%22;%0A%0A    /**%0A     * %3Cpre%3E%0A     * Activity 's onDestroy methods.%0A     * The activity object and corresponding data are attached in args of %7B@link MblEventListener#onEvent(Object, String, Object...)%7D.%0A     * %3C/pre%3E %0A     */%0A    public static final String ACTIVITY_DESTROYED               = MblCommonEvents.class + %22#activity_destroyed%22;%0A%0A    /**%0A     * %3Cpre%3E%0A     * Activity 's onActivityResult methods.%0A     * The activity object and corresponding data are attached in args of %7B@link MblEventListener#onEvent(Object, String, Object...)%7D.%0A     * %3C/pre%3E %0A     */
 %0A   

Add javadoc for ACTIVITY_XXX events