VisitorsLike
Properties
Section titled “Properties”consent
Section titled “consent”
readonlyconsent: {recognition?:string;tokenKind?:string; } |null
The consent state the token was issued under.
readonlytoken:string|null
The current visitor token, or null. Read at the moment of each request.
Methods
Section titled “Methods”subscribe()?
Section titled “subscribe()?”
optionalsubscribe(listener): () =>void
Calls the listener whenever the token or consent changes. After forget() both are null.
Parameters
Section titled “Parameters”listener
Section titled “listener”(snapshot) => void
Returns
Section titled “Returns”() => void