Skip to main content

LifecycleManager

Functions

Create

LifecycleManager.Create(
namestring,
) → Lifecycle

Create a new lifecycle event. Creating it via the manager makes the passing a handler optional as it provides one by default.

Show raw api
{
    "functions": [
        {
            "name": "Create",
            "desc": "Create a new lifecycle event. Creating it via the manager makes the passing a\nhandler optional as it provides one by default.",
            "params": [
                {
                    "name": "name",
                    "desc": "",
                    "lua_type": "string"
                },
                {
                    "name": "handler",
                    "desc": "",
                    "lua_type": "LifecycleHandler?"
                }
            ],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "Lifecycle"
                }
            ],
            "function_type": "static",
            "source": {
                "line": 27,
                "path": "Source/Core/LifecycleManager.luau"
            }
        }
    ],
    "properties": [],
    "types": [],
    "name": "LifecycleManager",
    "desc": "",
    "source": {
        "line": 16,
        "path": "Source/Core/LifecycleManager.luau"
    }
}