sos.management
The sos.management
API group provides methods for managing the device. Through this API things like device firmware,
battery status, brightness, network information, remote control, power, time or volume can be monitored.
Methods
factoryReset()
The factoryReset()
method initializes the factory reset of the device.
factoryReset(): Promise<void>;
getBatteryStatus()
The getBatteryStatus()
method returns information about the battery of the device.
getBatteryStatus(): Promise<IBatteryStatus>;
getBrand()
The getBrand()
method returns the manufacturer brand of the device.
getBrand(): Promise<string>;
getExtendedManagementUrl()
The getExtendedManagementUrl()
method returns the management url of the device.
This is currently only implemented for the MagicInfo on Tizen platform.
getExtendedManagementUrl(): Promise<string | null>;
getModel()
The getModel()
method returns the model of the device.
getModel(): Promise<string>;
getSerialNumber()
The getSerialNumber()
method returns the serial number of the device.
getSerialNumber(): Promise<string>;
getTemperature()
The getTemperature()
method returns the temperature of the device (in 0-100 range of degrees Celsius).
getTemperature(): Promise<number>;
isHardwareAccelerationEnabled()
The isHardwareAccelerationEnabled()
method returns whether hardware acceleration is enabled.
isHardwareAccelerationEnabled(): Promise<boolean>;
resetSettings()
The resetSettings()
method initializes the reset of the specific device settings.
This is currently only implemented on Linux platform.
resetSettings(): Promise<void>;
setExtendedManagementUrl()
The getExtendedManagementUrl()
set the management url of the device.
This is currently only implemented for the MagicInfo on Tizen platform.
setExtendedManagementUrl(url: string | null): Promise<void>;
Params
Name | Type | Description |
---|---|---|
url | string | null | The management URL to set. |
setHardwareAcceleration()
The setHardwareAcceleration()
method enables or disables hardware acceleration.
setHardwareAcceleration(enabled: boolean): Promise<void>;
Params
Name | Type | Description |
---|---|---|
enabled | boolean | Whether hardware acceleration should be enabled. |
supports()
The supports()
method determines whether a queried capability is supported.
supports(capability: ManagementCapability): Promise<boolean>;
Params
Name | Type | Description |
---|---|---|
capability | ManagementCapability | The capability to check for support. |
getNetworkInfo()
This method was deprecated. Use sos.management.network.listInterfaces()
instead.
getNetworkInfo(): Promise<INetworkInfo>;