Class Information
Definition
- Namespace:
- Tizen.System
- Assembly:
- Tizen.System.Information.dll
- API Level:
- 4
The Information class provides functions to obtain various system information.
public static class Information
- Inheritance
-
Information
Methods
View SourceSetCallback(String, EventHandler<RuntimeFeatureStatusChangedEventArgs>)
Registers a change event callback for given runtime feature key.
Declaration
public static void SetCallback(string key, EventHandler<RuntimeFeatureStatusChangedEventArgs> callback)
Parameters
Type | Name | Description |
---|---|---|
String | key | The name of runtime feature which wants to register callback. |
EventHandler<RuntimeFeatureStatusChangedEventArgs> | callback | The callback function to subscribe. |
Remarks
This function is only for runtime feature.
Exceptions
Type | Condition |
---|---|
ArgumentException | Thrown when the |
NotSupportedException | Thrown when the feature related |
API Level: 4
View SourceTryGetValue<T>(String, out T)
Gets the value of the feature.
Declaration
public static bool TryGetValue<T>(string key, out T value)
Parameters
Type | Name | Description |
---|---|---|
String | key | The name of the feature. |
T | value | The value of the given feature. |
Returns
Type | Description |
---|---|
Boolean | Returns true on success, otherwise false. |
Type Parameters
Name | Description |
---|---|
T | The type of |
API Level: 4
View SourceUnsetCallback(String, EventHandler<RuntimeFeatureStatusChangedEventArgs>)
Unregisters a change event callback for given runtime feature key.
Declaration
public static void UnsetCallback(string key, EventHandler<RuntimeFeatureStatusChangedEventArgs> callback)
Parameters
Type | Name | Description |
---|---|---|
String | key | The name of runtime feature which wants to unregister callback. |
EventHandler<RuntimeFeatureStatusChangedEventArgs> | callback | The callback function to unsubscribe. |
Remarks
This function is only for runtime feature.
Exceptions
Type | Condition |
---|---|
ArgumentException | Thrown when the |
NotSupportedException | Thrown when the feature related |