Skip to content
Hugo Gresse edited this page Aug 13, 2015 · 1 revision

Welcome to the AndroidVuMeter wiki!

Available methodd on VuMeterView :

    /**
     * Gets the color of the VuMeter
     *
     * @return The color value.
     */
    public int getColor()

    /**
     * Sets the VuMeter color value.
     *
     * @param color The example color attribute value to use.
     */
    public void setColor(int color)

    /**
     * Get the number of block/rect that the VuMeter will display.
     *
     * @return The number of block
     */
    public int getBlockNumber()

    /**
     * Set the number of block/rect that the VuMeter will display.
     *
     * @param blockNumber The number of block you want to display
     */
    public void setBlockNumber(int blockNumber) 
    /**
     * Return the spacing between each block
     *
     * @return Spacing value, in px
     */
    public float getBlockSpacing()

    /**
     * Set the spacing between each block
     *
     * @param blockSpacing dp space between block
     */
    public void setBlockSpacing(float blockSpacing)

    /**
     * Get the current animation speed
     *
     * @return the speed
     */
    public int getSpeed()

    /**
     * Set the current animation speed
     *
     * @param speed The desired speed value
     */
    public void setSpeed(int speed)

    /**
     * Pause the player.
     *
     * Call {@link #resume(boolean)} to replay the VuMeter
     */
    public void pause()

    /**
     * Stop the VuMeterAnimation by going to the minimum values.
     *
     * @param withAnimation if you want to have an animation from current state to stop state
     */
    public void stop(boolean withAnimation)

    /**
     * Resume/play the VuMeter animation.
     *
     * @param withAnimation if you want to have transition from stop to resume state, set to true
     */
    public void resume(boolean withAnimation)
Clone this wiki locally