NativeScript 9.1 Released → V8 14.9, Vite 8 HMR, built for rapid agentic visual iteration
Dig in
ts
function getString(key: string, defaultValue?: string): string;

Defined in: application-settings/index.d.ts:19

Gets a value (if existing) for a key as a String Object. A default value can be provided in case there is no existing value.

Parameters ​

ParameterTypeDescription
keystringThe key to check for.
defaultValue?stringAn optional value to be returned in case there is no existing value.

Returns ​

string

Previous
getNumber
Next
hasKey