Class Information
Definition
- Assembly:
- Tizen.System.Information.dll
The Information class provides functions to obtain various system information.
public static class Information
- Inheritance
-
objectInformation
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. |
System.EventHandler<TEventArgs><RuntimeFeatureStatusChangedEventArgs> | callback | The callback function to subscribe. |
Remarks
This function is only for runtime feature.
Exceptions
Type | Condition |
---|---|
System.ArgumentException | Thrown when the |
System.NotSupportedException | Thrown when the feature related |
TryGetValue<T>(string, out T)
Gets the value of the feature. It accepts both system and runtime feature key.
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 |
---|---|
bool | Returns true on success, otherwise false. |
Type Parameters
Name | Description |
---|---|
T | The type of |
UnsetCallback(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. |
System.EventHandler<TEventArgs><RuntimeFeatureStatusChangedEventArgs> | callback | The callback function to unsubscribe. |
Remarks
This function is only for runtime feature.
Exceptions
Type | Condition |
---|---|
System.ArgumentException | Thrown when the |
System.NotSupportedException | Thrown when the feature related |