package com.foxx.androidcast.receiver;

/*********************************************************************
 * PlaybackViewState.java
 * Created at: Sat 16 May 2026 13:35:48 +0200
 * Updated at: Wed 20 May 2026 15:17:13 +0200 by Anton Afanasyeu <a.afanasieff@gmail.com>
 * Commit: 5d8e82d2e60a21fff3138d2a394ee4e8b4c6dcb8
 * class PlaybackViewState
 * Contributors:
 *    - Anton Afanasyeu <a.afanasieff@gmail.com> (2 commits, 28 lines)
 *    - Cursor Agent (project assistant)
 * Digest: SHA256	9fcecc11dc789abfa9db81d9829d4caa3c8d17f41733d5d36c01e344652004cf
**********************************************************************/
/** Zoom/pan state for receiver diagnostics (updated from playback UI). */
public final class PlaybackViewState {
    private static volatile int zoomPercent;

    private PlaybackViewState() {}

    public static void setZoomPercent(int percent) {
        zoomPercent = percent;
    }

    /** Deviation from 100% scale, e.g. +15 or −10. */
    public static int getZoomPercent() {
        return zoomPercent;
    }

    public static void reset() {
        zoomPercent = 0;
    }
}
