Files
shiny/man/onBookmark.Rd
2016-07-25 10:52:41 -05:00

32 lines
1.1 KiB
R

% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/bookmark-state.R
\name{onBookmark}
\alias{onBookmark}
\title{Add callbacks for Shiny session bookmarkingevents}
\usage{
onBookmark(fun, session = getDefaultReactiveDomain())
}
\arguments{
\item{fun}{A callback function.}
\item{session}{A shiny session object.}
\item{once}{Should the function be run once, and then cleared, or should it
re-run each time the event occurs. (Only for \code{onFlush} and
\code{onFlushed}.)}
}
\description{
These functions are for registering callbacks on Shiny session events.
\code{onBookmark} registers a function that will be called before Shiny flushes
the reactive system. \code{onFlushed} registers a function that will be
called after Shiny flushes the reactive system. \code{onSessionEnded}
registers a function to be called after the client has disconnected.
}
\details{
These functions should be called within the application's server function.
All of these functions return a function which can be called with no
arguments to cancel the registration.
}