% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/glass-intensity.R
\name{observe_glass_intensity}
\alias{observe_glass_intensity}
\title{Keep session intensity in sync with \code{\link[=glass_intensity_slider]{glass_intensity_slider()}}}
\usage{
observe_glass_intensity(input, session, inputId = "glass_intensity")
}
\arguments{
\item{input}{The server \code{input} object.}

\item{session}{A Shiny session object.}

\item{inputId}{Input id of the intensity slider.}
}
\value{
An \code{\link[shiny:observeEvent]{shiny::observeEvent()}} observer (invisibly).
}
\description{
The slider already updates glass live on the client. This observer optionally
echoes the value through \code{\link[=update_glass_theme]{update_glass_theme()}} so other clients / server
state stay aligned.
}
