core/src/main/java/org/hitogo/core/HitogoController.java
public long closeByState(int state) {
        synchronized (syncLock) {
            long longestClosingAnim = 0;
            internalCloseByState(currentViews.iterator(), state, longestClosingAnim);
            internalCloseByState(currentDialogs.iterator(), state, longestClosingAnim);
            internalCloseByState(currentPopups.iterator(), state, longestClosingAnim);
            internalCloseByState(currentOthers.iterator(), state, longestClosingAnim);
            return longestClosingAnim;
        }
    }
/**
     * Closes all alerts stored inside this controller by the given int.
     *
     * @param state Int value which is used as a reference to close the alerts.
     * @return Time in ms of the longest closing animation. That value can be used to
     * delay certain action until all alerts have been closed.
     * @since 1.0.0
     */
Closes all alerts stored inside this controller by the given int.
@param state Int value which is used as a reference to close the alerts.
@return Time in ms of the longest closing animation. That value can be used to
delay certain action until all alerts have been closed.
Closes all alerts stored inside this controller by the given int . @param state Int value which is used as a reference to close the alerts . @return Time in ms of the longest closing animation . That value can be used to delay certain action until all alerts have been closed .
public long closeByState(int state) {
        synchronized (syncLock) {
            long longestClosingAnim = 0;
            internalCloseByState(currentViews.iterator(), state, longestClosingAnim);
            internalCloseByState(currentDialogs.iterator(), state, longestClosingAnim);
            internalCloseByState(currentPopups.iterator(), state, longestClosingAnim);
            internalCloseByState(currentOthers.iterator(), state, longestClosingAnim);
            return longestClosingAnim;
        }
    }
public long closeByState ( int state ) { synchronized ( syncLock ) { long longestClosingAnim = 0 ; internalCloseByState ( currentViews . iterator ( ) , state , longestClosingAnim ) ; internalCloseByState ( currentDialogs . iterator ( ) , state , longestClosingAnim ) ; internalCloseByState ( currentPopups . iterator ( ) , state , longestClosingAnim ) ; internalCloseByState ( currentOthers . iterator ( ) , state , longestClosingAnim ) ; return longestClosingAnim ; } }
Closes all alerts stored inside this controller by the given int.
Closes all alerts stored inside this controller by the given int .