Class BadgeControl
Definition
- Namespace:
- Tizen.Applications
- Assembly:
- Tizen.Applications.Badge.dll
The class for badge operation.
C#Copypublic static class BadgeControl
- Inheritance
-
objectBadgeControl
Methods
Declaration
C#Copypublic static void Add(Badge badge)
Parameters
| Type | Name | Description |
|---|---|---|
| Badge | badge | The Badge object. |
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentException | Thrown when failed because of an invalid argument. |
| System.UnauthorizedAccessException | Thrown when an application does not have the privilege to access. |
| System.InvalidOperationException | Thrown in case of failed conditions. |
| System.NotSupportedException | Thrown when Badge is not supported. |
Declaration
C#Copypublic 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.ArgumentException | Thrown when failed because of an invalid argument. |
| System.UnauthorizedAccessException | Thrown when an application does not have the privilege to access. |
| System.InvalidOperationException | Thrown in case of failed conditions. |
| System.NotSupportedException | Thrown when Badge is not supported. |
Declaration
C#Copypublic static IEnumerable<Badge> GetBadges()
Returns
| Type | Description |
|---|---|
| System.Collections.Generic.IEnumerable<T><Badge> | List of all Badge instances. |
Exceptions
| Type | Condition |
|---|---|
| System.UnauthorizedAccessException | Thrown when an application does not have the privilege to access. |
| System.InvalidOperationException | Thrown in case of failed conditions. |
| System.NotSupportedException | Thrown when Badge is not supported. |
Declaration
C#Copypublic static void Remove(string appId)
Parameters
| Type | Name | Description |
|---|---|---|
| string | appId | Application ID. |
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentException | Thrown when failed because of a an invalid argument. |
| System.UnauthorizedAccessException | Thrown when an application does not have the privilege to access. |
| System.InvalidOperationException | Thrown in case of failed conditions. |
| System.NotSupportedException | Thrown when Badge is not supported. |
Declaration
C#Copypublic static void Remove(Badge badge)
Parameters
| Type | Name | Description |
|---|---|---|
| Badge | badge | The Badge object. |
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentException | Thrown when failed because of an invalid argument. |
| System.UnauthorizedAccessException | Thrown when an application does not have the privilege to access. |
| System.InvalidOperationException | Thrown in case of failed conditions. |
| System.NotSupportedException | Thrown when Badge is not supported. |
Declaration
C#Copypublic static void Update(Badge badge)
Parameters
| Type | Name | Description |
|---|---|---|
| Badge | badge | The Badge object. |
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentException | Thrown when failed because of an invalid argument. |
| System.UnauthorizedAccessException | Thrown when an application does not have the privilege to access. |
| System.InvalidOperationException | Thrown in case of failed conditions. |
| System.NotSupportedException | Thrown when Badge is not supported. |
Events
Declaration
C#Copypublic static event EventHandler<BadgeEventArgs> Changed
Event Type
| Type | Description |
|---|---|
| System.EventHandler<TEventArgs><BadgeEventArgs> |
Exceptions
| Type | Condition |
|---|---|
| System.InvalidOperationException | Thrown in case of failed conditions. |
| System.UnauthorizedAccessException | Thrown when an application does not have the privilege to access. |
| System.NotSupportedException | Thrown when Badge is not supported. |