Class BadgeControl
Definition
- Namespace:
- Tizen.Applications
- Assembly:
- Tizen.Applications.Badge.dll
The class for badge operation.
[Obsolete("Deprecated since API12. Will be removed in API14.")]
public static class BadgeControl
- Inheritance
-
objectBadge
Control
Methods
View SourceAdd(Badge)
Adds the badge information.
Declaration
[Obsolete("Deprecated since API12. Will be removed in API14.")]
public static void Add(Badge badge)
Parameters
Type | Name | Description |
---|---|---|
Badge | badge | The Badge object. |
Exceptions
Type | Condition |
---|---|
System. |
Thrown when failed because of an invalid argument. |
System. |
Thrown when an application does not have the privilege to access. |
System. |
Thrown in case of failed conditions. |
System. |
Thrown when Badge is not supported. |
Find(string)
Gets the badge information from the application ID.
Declaration
[Obsolete("Deprecated since API12. Will be removed in API14.")]
public static Badge Find(string appId)
Parameters
Type | Name | Description |
---|---|---|
string | appId | Application ID. |
Returns
Type | Description |
---|---|
Badge | The Badge object with inputted application ID |
Exceptions
Type | Condition |
---|---|
System. |
Thrown when failed because of an invalid argument. |
System. |
Thrown when an application does not have the privilege to access. |
System. |
Thrown in case of failed conditions. |
System. |
Thrown when Badge is not supported. |
GetBadges()
Gets all the badge information.
Declaration
[Obsolete("Deprecated since API12. Will be removed in API14.")]
public static IEnumerable<Badge> GetBadges()
Returns
Type | Description |
---|---|
System. |
List of all Badge instances. |
Exceptions
Type | Condition |
---|---|
System. |
Thrown when an application does not have the privilege to access. |
System. |
Thrown in case of failed conditions. |
System. |
Thrown when Badge is not supported. |
Remove(string)
Removes the badge information.
Declaration
[Obsolete("Deprecated since API12. Will be removed in API14.")]
public static void Remove(string appId)
Parameters
Type | Name | Description |
---|---|---|
string | appId | Application ID. |
Exceptions
Type | Condition |
---|---|
System. |
Thrown when failed because of a an invalid argument. |
System. |
Thrown when an application does not have the privilege to access. |
System. |
Thrown in case of failed conditions. |
System. |
Thrown when Badge is not supported. |
Remove(Badge)
Removes the badge information.
Declaration
[Obsolete("Deprecated since API12. Will be removed in API14.")]
public static void Remove(Badge badge)
Parameters
Type | Name | Description |
---|---|---|
Badge | badge | The Badge object. |
Exceptions
Type | Condition |
---|---|
System. |
Thrown when failed because of an invalid argument. |
System. |
Thrown when an application does not have the privilege to access. |
System. |
Thrown in case of failed conditions. |
System. |
Thrown when Badge is not supported. |
Update(Badge)
Updates the badge information.
Declaration
[Obsolete("Deprecated since API12. Will be removed in API14.")]
public static void Update(Badge badge)
Parameters
Type | Name | Description |
---|---|---|
Badge | badge | The Badge object. |
Exceptions
Type | Condition |
---|---|
System. |
Thrown when failed because of an invalid argument. |
System. |
Thrown when an application does not have the privilege to access. |
System. |
Thrown in case of failed conditions. |
System. |
Thrown when Badge is not supported. |
Events
View SourceChanged
Event handler for receiving badge events.
Declaration
[Obsolete("Deprecated since API12. Will be removed in API14.")]
public static event EventHandler<BadgeEventArgs> Changed
Event Type
Type | Description |
---|---|
System. |
Exceptions
Type | Condition |
---|---|
System. |
Thrown in case of failed conditions. |
System. |
Thrown when an application does not have the privilege to access. |
System. |
Thrown when Badge is not supported. |