WeatherChangeAfterEventSignal Class

Manages callbacks that are connected to weather changing.

Methods

subscribe

subscribe(callback: (arg: WeatherChangeAfterEvent) => void): (arg: WeatherChangeAfterEvent) => void

Adds a callback that will be called when weather changes.

Parameters

Returns (arg: WeatherChangeAfterEvent) => void

Important

This function can't be called in read-only mode.

unsubscribe

unsubscribe(callback: (arg: WeatherChangeAfterEvent) => void): void

Removes a callback from being called when weather changes.

Parameters

Important

This function can't be called in read-only mode.