Skip to main content

ScreenshotHudModel

Functions

SetCloseButtonVisible

ScreenshotHudModel:SetCloseButtonVisible(closeButtonVisibleboolean) → ()

Sets whether the close button is visible

ObserveCloseButtonVisible

ScreenshotHudModel:ObserveCloseButtonVisible() → Observable<boolean>

Observes close button visiblity

SetCameraButtonVisible

ScreenshotHudModel:SetCameraButtonVisible(cameraButtonVisibleboolean) → ()

Sets whether the camera button is visible

ObserveCameraButtonVisible

ScreenshotHudModel:ObserveCameraButtonVisible() → Observable<boolean>

Observes camera button visiblity

SetKeepOpen

ScreenshotHudModel:SetKeepOpen(keepOpenboolean) → ()

Sets whether we should try to keep the UI open

GetKeepOpen

ScreenshotHudModel:GetKeepOpen() → boolean

Gets whether we should try to keep the UI open

SetVisible

ScreenshotHudModel:SetVisible(visibleboolean) → ()

Sets whether we are visible or not

SetCloseButtonPosition

ScreenshotHudModel:SetCloseButtonPosition(positionUDim2 | nil) → ()

Sets the close button's position

ObserveCloseButtonPosition

ScreenshotHudModel:ObserveCloseButtonPosition() → Observable<UDim2>

Observes the close button's position

SetCameraButtonPosition

ScreenshotHudModel:SetCameraButtonPosition(positionUDim2 | nil) → ()

Sets the camera button's position

ObserveCameraButtonPosition

ScreenshotHudModel:ObserveCameraButtonPosition() → Observable<UDim2>

Observes the camera button's position

SetOverlayFont

ScreenshotHudModel:SetOverlayFont(overlayFontFont) → ()

Sets the overlay font

ObserveOverlayFont

ScreenshotHudModel:ObserveOverlayFont() → Observable<Font>

Observes the overlay font

SetCameraButtonIcon

ScreenshotHudModel:SetCameraButtonIcon(iconstring | nil) → ()

Sets the camera button's icon.

ObserveCameraButtonIcon

ScreenshotHudModel:ObserveCameraButtonIcon() → Observable<string>

Observes the camera button's icon

SetCloseWhenScreenshotTaken

ScreenshotHudModel:SetCloseWhenScreenshotTaken(closeWhenScreenshotTakenboolean) → ()

Sets whether to close after a screenshot if taken

GetCloseWhenScreenshotTaken

ScreenshotHudModel:GetCloseWhenScreenshotTaken() → boolean

Returns whether the model will try to close if a screenshot is taken

ObserveCloseWhenScreenshotTaken

ScreenshotHudModel:ObserveCloseWhenScreenshotTaken() → Observable<boolean>

Observes whether a screenshot is taken

SetExperienceNameOverlayEnabled

ScreenshotHudModel:SetExperienceNameOverlayEnabled(experienceNameOverlayEnabledboolean) → ()

Sets whether to experience name overlay should be enabled

ObserveExperienceNameOverlayEnabled

ScreenshotHudModel:ObserveExperienceNameOverlayEnabled() → Observable<boolean>

Observes whether the experience name overlay is enabled

SetUsernameOverlayEnabled

ScreenshotHudModel:SetUsernameOverlayEnabled(usernameOverlayEnabledboolean) → ()

Sets whether to username overlay should be enabled

ObserveUsernameOverlayEnabled

ScreenshotHudModel:ObserveUsernameOverlayEnabled() → Observable<boolean>

Observes whether the username name overlay is enabled

ObserveVisible

ScreenshotHudModel:ObserveVisible() → Observable<boolean>

Observes whilet he model is visible

Show raw api
{
    "functions": [
        {
            "name": "SetCloseButtonVisible",
            "desc": "Sets whether the close button is visible",
            "params": [
                {
                    "name": "closeButtonVisible",
                    "desc": "",
                    "lua_type": "boolean"
                }
            ],
            "returns": [],
            "function_type": "method",
            "source": {
                "line": 61,
                "path": "src/screenshothudservice/src/Client/ScreenshotHudModel.lua"
            }
        },
        {
            "name": "ObserveCloseButtonVisible",
            "desc": "Observes close button visiblity",
            "params": [],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "Observable<boolean>"
                }
            ],
            "function_type": "method",
            "source": {
                "line": 71,
                "path": "src/screenshothudservice/src/Client/ScreenshotHudModel.lua"
            }
        },
        {
            "name": "SetCameraButtonVisible",
            "desc": "Sets whether the camera button is visible",
            "params": [
                {
                    "name": "cameraButtonVisible",
                    "desc": "",
                    "lua_type": "boolean"
                }
            ],
            "returns": [],
            "function_type": "method",
            "source": {
                "line": 79,
                "path": "src/screenshothudservice/src/Client/ScreenshotHudModel.lua"
            }
        },
        {
            "name": "ObserveCameraButtonVisible",
            "desc": "Observes camera button visiblity",
            "params": [],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "Observable<boolean>"
                }
            ],
            "function_type": "method",
            "source": {
                "line": 89,
                "path": "src/screenshothudservice/src/Client/ScreenshotHudModel.lua"
            }
        },
        {
            "name": "SetKeepOpen",
            "desc": "Sets whether we should try to keep the UI open",
            "params": [
                {
                    "name": "keepOpen",
                    "desc": "",
                    "lua_type": "boolean"
                }
            ],
            "returns": [],
            "function_type": "method",
            "source": {
                "line": 97,
                "path": "src/screenshothudservice/src/Client/ScreenshotHudModel.lua"
            }
        },
        {
            "name": "GetKeepOpen",
            "desc": "Gets whether we should try to keep the UI open",
            "params": [],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "boolean"
                }
            ],
            "function_type": "method",
            "source": {
                "line": 107,
                "path": "src/screenshothudservice/src/Client/ScreenshotHudModel.lua"
            }
        },
        {
            "name": "SetVisible",
            "desc": "Sets whether we are visible or not",
            "params": [
                {
                    "name": "visible",
                    "desc": "",
                    "lua_type": "boolean"
                }
            ],
            "returns": [],
            "function_type": "method",
            "source": {
                "line": 116,
                "path": "src/screenshothudservice/src/Client/ScreenshotHudModel.lua"
            }
        },
        {
            "name": "SetCloseButtonPosition",
            "desc": "Sets the close button's position",
            "params": [
                {
                    "name": "position",
                    "desc": "",
                    "lua_type": "UDim2 | nil"
                }
            ],
            "returns": [],
            "function_type": "method",
            "source": {
                "line": 127,
                "path": "src/screenshothudservice/src/Client/ScreenshotHudModel.lua"
            }
        },
        {
            "name": "ObserveCloseButtonPosition",
            "desc": "Observes the close button's position",
            "params": [],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "Observable<UDim2>"
                }
            ],
            "function_type": "method",
            "source": {
                "line": 137,
                "path": "src/screenshothudservice/src/Client/ScreenshotHudModel.lua"
            }
        },
        {
            "name": "SetCameraButtonPosition",
            "desc": "Sets the camera button's position",
            "params": [
                {
                    "name": "position",
                    "desc": "",
                    "lua_type": "UDim2 | nil"
                }
            ],
            "returns": [],
            "function_type": "method",
            "source": {
                "line": 145,
                "path": "src/screenshothudservice/src/Client/ScreenshotHudModel.lua"
            }
        },
        {
            "name": "ObserveCameraButtonPosition",
            "desc": "Observes the camera button's position",
            "params": [],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "Observable<UDim2>"
                }
            ],
            "function_type": "method",
            "source": {
                "line": 155,
                "path": "src/screenshothudservice/src/Client/ScreenshotHudModel.lua"
            }
        },
        {
            "name": "SetOverlayFont",
            "desc": "Sets the overlay font",
            "params": [
                {
                    "name": "overlayFont",
                    "desc": "",
                    "lua_type": "Font"
                }
            ],
            "returns": [],
            "function_type": "method",
            "source": {
                "line": 163,
                "path": "src/screenshothudservice/src/Client/ScreenshotHudModel.lua"
            }
        },
        {
            "name": "ObserveOverlayFont",
            "desc": "Observes the overlay font",
            "params": [],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "Observable<Font>"
                }
            ],
            "function_type": "method",
            "source": {
                "line": 173,
                "path": "src/screenshothudservice/src/Client/ScreenshotHudModel.lua"
            }
        },
        {
            "name": "SetCameraButtonIcon",
            "desc": "Sets the camera button's icon.",
            "params": [
                {
                    "name": "icon",
                    "desc": "",
                    "lua_type": "string | nil"
                }
            ],
            "returns": [],
            "function_type": "method",
            "source": {
                "line": 182,
                "path": "src/screenshothudservice/src/Client/ScreenshotHudModel.lua"
            }
        },
        {
            "name": "ObserveCameraButtonIcon",
            "desc": "Observes the camera button's icon",
            "params": [],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "Observable<string>"
                }
            ],
            "function_type": "method",
            "source": {
                "line": 193,
                "path": "src/screenshothudservice/src/Client/ScreenshotHudModel.lua"
            }
        },
        {
            "name": "SetCloseWhenScreenshotTaken",
            "desc": "Sets whether to close after a screenshot if taken",
            "params": [
                {
                    "name": "closeWhenScreenshotTaken",
                    "desc": "",
                    "lua_type": "boolean"
                }
            ],
            "returns": [],
            "function_type": "method",
            "source": {
                "line": 202,
                "path": "src/screenshothudservice/src/Client/ScreenshotHudModel.lua"
            }
        },
        {
            "name": "GetCloseWhenScreenshotTaken",
            "desc": "Returns whether the model will try to close if a screenshot is taken",
            "params": [],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "boolean"
                }
            ],
            "function_type": "method",
            "source": {
                "line": 212,
                "path": "src/screenshothudservice/src/Client/ScreenshotHudModel.lua"
            }
        },
        {
            "name": "ObserveCloseWhenScreenshotTaken",
            "desc": "Observes whether a screenshot is taken",
            "params": [],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "Observable<boolean>"
                }
            ],
            "function_type": "method",
            "source": {
                "line": 220,
                "path": "src/screenshothudservice/src/Client/ScreenshotHudModel.lua"
            }
        },
        {
            "name": "SetExperienceNameOverlayEnabled",
            "desc": "Sets whether to experience name overlay should be enabled",
            "params": [
                {
                    "name": "experienceNameOverlayEnabled",
                    "desc": "",
                    "lua_type": "boolean"
                }
            ],
            "returns": [],
            "function_type": "method",
            "source": {
                "line": 228,
                "path": "src/screenshothudservice/src/Client/ScreenshotHudModel.lua"
            }
        },
        {
            "name": "ObserveExperienceNameOverlayEnabled",
            "desc": "Observes whether the experience name overlay is enabled",
            "params": [],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "Observable<boolean>"
                }
            ],
            "function_type": "method",
            "source": {
                "line": 238,
                "path": "src/screenshothudservice/src/Client/ScreenshotHudModel.lua"
            }
        },
        {
            "name": "SetUsernameOverlayEnabled",
            "desc": "Sets whether to username overlay should be enabled",
            "params": [
                {
                    "name": "usernameOverlayEnabled",
                    "desc": "",
                    "lua_type": "boolean"
                }
            ],
            "returns": [],
            "function_type": "method",
            "source": {
                "line": 246,
                "path": "src/screenshothudservice/src/Client/ScreenshotHudModel.lua"
            }
        },
        {
            "name": "ObserveUsernameOverlayEnabled",
            "desc": "Observes whether the username name overlay is enabled",
            "params": [],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "Observable<boolean>"
                }
            ],
            "function_type": "method",
            "source": {
                "line": 256,
                "path": "src/screenshothudservice/src/Client/ScreenshotHudModel.lua"
            }
        },
        {
            "name": "ObserveVisible",
            "desc": "Observes whilet he model is visible",
            "params": [],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "Observable<boolean>"
                }
            ],
            "function_type": "method",
            "source": {
                "line": 264,
                "path": "src/screenshothudservice/src/Client/ScreenshotHudModel.lua"
            }
        }
    ],
    "properties": [],
    "types": [],
    "name": "ScreenshotHudModel",
    "desc": "",
    "source": {
        "line": 4,
        "path": "src/screenshothudservice/src/Client/ScreenshotHudModel.lua"
    }
}