Skip to content

API > MLWeatherData > OnWeatherDataUpdate


MLWeatherData.OnWeatherDataUpdate⚓︎

Read-Only

Read-only Property This property is Read-Only

Name Type
OnWeatherDataUpdate EventHandler

Event callback function requirement⚓︎

Info

This property is an event. It means that you need to add a listener function to it. Here how that function needs to look like.

function();

Usage⚓︎

--- @type 
local mlweatherdata;

--- callback function called when event triggers

local function CallBack()
    -- code to handle event call back
end


-- Regsiter callback function
mlweatherdata.OnWeatherDataUpdate.Add(CallBack);

Description⚓︎

Event handler called when the new weather data gets fetched.