SettingsService
Up and coming: shot check knows this class and its members today, and programs run it once the native runtime lands.
Up and coming
Open your program's settings, or any JSON file other programs share, as a store you read and write.
GetStoreAsync(name) opens a JSON file of that name in ProgramService's DataFolder, and OpenFileAsync(path) an existing JSON file that other programs also write. Each store is a SettingsStore, a child of SettingsService.
A service: write use SettingsService.
local function example(x : SettingsService)
local store, why = x:GetStoreAsync("teams")
print(store and store.Unsaved, why)
endMethods
| Name | Arguments | Returns | Description |
|---|---|---|---|
| GetStoreAsync yields | (name: string) | (SettingsStore?, string?) | Opens the store kept as a JSON file of that name in ProgramService.DataFolder. |
| OpenFileAsync yields | (path: string) | (SettingsStore?, string?) | Opens an existing JSON file that other programs also write as a store. |
From ShotInstance 33
ClassNameNameParentAncestryChangedAttributeChangedChangedChildAddedChildRemovedDestroyingAddTagClearAllChildrenCloneDestroyFindFirstAncestorFindFirstAncestorOfClassFindFirstAncestorWhichIsAFindFirstChildFindFirstChildOfClassFindFirstChildWhichIsAGetAttributeGetAttributeChangedSignalGetAttributesGetChildrenGetDescendantsGetFullNameGetPropertyChangedSignalGetTagsHasTagIsAIsAncestorOfIsDescendantOfRemoveTagSetAttribute
