BetaThe initial boolean value for this observable.
Optionaloptions: ObservableOptionsOptional configuration for the observable, such as whether the value can be written by the client.
Creates a new ObservableBoolean with the provided initial boolean value.
This function can't be called in restricted-execution mode.
This function can be called in early-execution mode.
Returns the current boolean value held by this observable.
This function can't be called in restricted-execution mode.
This function can be called in early-execution mode.
The new boolean value to set.
Updates the boolean value held by this observable. If the new value differs from the current value, all subscribed listeners are notified with the new value.
This function can't be called in restricted-execution mode.
This function can be called in early-execution mode.
A function that receives the new boolean value each time the observable changes.
Registers a callback to be invoked whenever the observable's value changes. Returns the callback, which can be passed to unsubscribe to remove the listener.
This function can't be called in restricted-execution mode.
This function can be called in early-execution mode.
The callback handle previously returned by subscribe.
Removes a previously registered listener from this observable. Returns true if the listener was found and removed, false if it was not found.
This function can't be called in restricted-execution mode.
This function can be called in early-execution mode.
An observable that holds a boolean value. Listeners are notified whenever the value changes.
Source