as

Settings
Sign out
Notifications
Alexa
亚马逊应用商店
Ring
AWS
文档
Support
Contact Us
My Cases
新手入门
设计和开发
应用发布
参考
支持
感谢您的访问。此页面目前仅提供英语版本。我们正在开发中文版本。谢谢您的理解。

default

Operating System information.

Implements

Constructors

new default()

new default(): default

Returns

default

Methods

getBuildInfo()

getBuildInfo(): default

Returns the instance of IBuildInfo for querying operating system build information.

Returns

default

Implementation of

default.getBuildInfo


getCodeName()

getCodeName(): Promise<string>

Returns the static codename of the operating system.

For example, "Kepler".

Returns

Promise<string>

Implementation of

default.getCodeName


getDisplayName()

getDisplayName(): Promise<string>

Returns the human-readable, localized name of the operating system.

The returned name is localized according to the following precedence:

  1. User's locale preferences
  2. System default locale
  3. Static codename as fallback if localization is unavailable

For example,

"Kepler" (en-US)
"केपलर" (hi-IN)

Returns

Promise<string>

Implementation of

default.getDisplayName


getVersion()

getVersion(): Promise<string>

Returns the version identifier of the operating system.

For example, "1.1".

The version string DOES NOT follow a fixed schema and must be considered unique string for each OS release.

Returns

Promise<string>

Implementation of

default.getVersion


Last updated: Jan 05, 2026