Skip to content

@valoranchi/riot-client / raw / PlayerPreferencesApi

Class: PlayerPreferencesApi ​

Defined in: src/local/PlayerPreferencesApi.ts:129

Constructors ​

Constructor ​

new PlayerPreferencesApi(localApi, options?): PlayerPreferencesApi

Defined in: src/local/PlayerPreferencesApi.ts:132

Parameters ​

localApi ​

RiotClientLocalApi

options? ​

PlayerPreferencesOptions = {}

Returns ​

PlayerPreferencesApi

Methods ​

read() ​

read(type?): Promise<PreferenceRead | null>

Defined in: src/local/PlayerPreferencesApi.ts:143

Parameters ​

type? ​

string = PLAYER_SETTINGS_TYPE

Returns ​

Promise<PreferenceRead | null>


write() ​

write(data, type?): Promise<PreferenceSource | null>

Defined in: src/local/PlayerPreferencesApi.ts:151

Parameters ​

data ​

PreferenceBlob

type? ​

string = PLAYER_SETTINGS_TYPE

Returns ​

Promise<PreferenceSource | null>

Not affiliated with Riot Games