Android Open Source - mobilib Mbl Common Events






From Project

Back to project page mobilib.

License

The source code is released under:

MIT License

If you think the Android project mobilib listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package com.datdo.mobilib.event;
//from  ww  w .  jav a 2s .co  m
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>
     * An activity is resumed.
     * The activity is attached in args of {@link MblEventListener#onEvent(Object, String, Object...)}.
     * </pre> 
     */
    public static final String ACTIVITY_RESUMED                 = MblCommonEvents.class + "#activity_resumed";
}




Java Source Code List

com.datdo.mobilib.api.DBBase.java
com.datdo.mobilib.api.DBHelper.java
com.datdo.mobilib.api.MblApi.java
com.datdo.mobilib.api.MblCache.java
com.datdo.mobilib.api.MblException.java
com.datdo.mobilib.api.MblSSLCertificateUtils.java
com.datdo.mobilib.base.MblActivityPlugin.java
com.datdo.mobilib.base.MblBaseActionBarActivity.java
com.datdo.mobilib.base.MblBaseActivity.java
com.datdo.mobilib.base.MblBaseAdapter.java
com.datdo.mobilib.base.MblBaseApplication.java
com.datdo.mobilib.base.MblBaseFragmentActivity.java
com.datdo.mobilib.base.MblDecorView.java
com.datdo.mobilib.base.MblNetworkStatusChangedReceiver.java
com.datdo.mobilib.event.MblCommonEvents.java
com.datdo.mobilib.event.MblEventCenter.java
com.datdo.mobilib.event.MblEventListener.java
com.datdo.mobilib.event.MblStrongEventListener.java
com.datdo.mobilib.event.MblWeakArrayList.java
com.datdo.mobilib.imageinput.MblAutoResizeSquareImageView.java
com.datdo.mobilib.imageinput.MblDataInputActivity.java
com.datdo.mobilib.imageinput.MblImageFolderScanner.java
com.datdo.mobilib.imageinput.MblImageInput.java
com.datdo.mobilib.imageinput.MblImagePickingScanEngine.java
com.datdo.mobilib.imageinput.MblPickImageActivity.java
com.datdo.mobilib.imageinput.MblPickImageGridViewAdapter.java
com.datdo.mobilib.imageinput.MblTakeImageActivity.java
com.datdo.mobilib.util.MblAsyncTask.java
com.datdo.mobilib.util.MblImageLoader.java
com.datdo.mobilib.util.MblLinkMovementMethod.java
com.datdo.mobilib.util.MblUrlRecognizer.java
com.datdo.mobilib.util.MblUtils.java
com.datdo.mobilib.widget.MblHorizontalViewPager.java
com.datdo.mobilib.widget.MblListViewWithScrollableItems.java
com.datdo.mobilib.widget.MblSequenceImage.java
com.datdo.mobilib.widget.MblSideMenuEnabledLayout.java
com.datdo.mobilib.widget.MblTouchImageView.java