Home Reference Source
import SettingsServiceProvider from '@osjs/client/src/providers/settings.js'
public class | source

SettingsServiceProvider

Extends:

@osjs/common~ServiceProvider → SettingsServiceProvider

OS.js Settings Service Provider

Constructor Summary

Public Constructor
public

Member Summary

Public Members
public

Method Summary

Public Methods
public
public

Initializes settings

public

Get a list of services this provider registers

Public Constructors

public constructor(core: Core, options: SettingsServiceOptions) source

Params:

NameTypeAttributeDescription
core Core

OS.js Core

options SettingsServiceOptions
  • optional
  • default: {}

Public Members

public settings: Settings source

Public Methods

public createSettingsContract(): SettingsProviderContract source

public init(): Promise<undefined> source

Initializes settings

Return:

Promise<undefined>

public provides(): string[] source

Get a list of services this provider registers

Return:

string[]