urbanairship-core/src/main/java/com/urbanairship/ActivityMonitor.java
public static ActivityMonitor shared(@NonNull Context context) {
        if (singleton != null) {
            return singleton;
        }

        singleton = new ActivityMonitor();
        singleton.registerListener(context);
        return singleton;
    }
/**
     * Creates and retrieves the shared activity monitor instance.
     *
     * @param context The application context.
     * @return The singleton.
     */
Creates and retrieves the shared activity monitor instance.
@param context The application context.
@return The singleton.
Creates and retrieves the shared activity monitor instance . @param context The application context . @return The singleton .
public static ActivityMonitor shared(@NonNull Context context) {
        if (singleton != null) {
            return singleton;
        }
        singleton = new ActivityMonitor();
        singleton.registerListener(context);
        return singleton;
    }
public static ActivityMonitor shared ( @ NonNull Context context ) { if ( singleton != null ) { return singleton ; } singleton = new ActivityMonitor ( ) ; singleton . registerListener ( context ) ; return singleton ; }
Creates and retrieves the shared activity monitor instance.
Creates and retrieves the shared activity monitor instance .