Creates a new ObservableBoolean with the provided initial
boolean value.
方法
getData
getData():boolean
世界修改早期执行
返回 boolean
备注
Returns the current boolean value held by this observable.
setData
setData(data:boolean):void
世界修改早期执行
参数
data: boolean
The new boolean value to set.
返回 void
备注
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.
A function that receives the new boolean value each time the
observable changes.
返回 (arg0:boolean)=>void
备注
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.
An observable that holds a boolean value. Listeners are notified whenever the value changes.