Class MessagesManager
Definition
- Namespace:
- Tizen.Messaging.Messages
- Assembly:
- Tizen.Messaging.dll
- API Level:
- 3
- Privilege Level:
- public
- Privilege:
- http://tizen.org/privilege/message.read
This class is used for the message management. It allows applications to use the message service.
C#Copypublic static class MessagesManager
- Inheritance
-
MessagesManager
Methods
Declaration
C#Copypublic static Task<IEnumerable<Message>> SearchMessageAsync(MessagesSearchFilter filter)
Parameters
Type | Name | Description |
---|---|---|
MessagesSearchFilter | filter | The search filter for searching messages. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<Message>> | A task containing the messages, which match the search filter. |
Exceptions
Type | Condition |
---|---|
System.InvalidOperationException | Thrown when the method failed due to an invalid operation. |
System.NotSupportedException | Thrown when the message service is not supported. |
System.ArgumentException | Thrown when input coordinates are invalid. |
OutOfMemoryException | Thrown when failed due to out of memory. |
UnauthorizedAccessException | Thrown when an application does not have proper privileges. |
API Level: 3
Privilege Level: public
Privilege: http://tizen.org/privilege/message.read
Declaration
C#Copypublic static Task<SentResult> SendMessageAsync(Message message, bool saveToSentbox)
Parameters
Type | Name | Description |
---|---|---|
Message | message | The message to be sent. |
System.Boolean | saveToSentbox | The boolean variable used to indicate whether the sent message should be saved in the sentbox or not. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<SentResult> | A task containing the result of message sending. |
Exceptions
Type | Condition |
---|---|
System.InvalidOperationException | Thrown when the method failed due to an invalid operation. |
System.NotSupportedException | Thrown when the message service is not supported. |
System.ArgumentException | Thrown when input coordinates are invalid. |
UnauthorizedAccessException | Thrown when an application does not have proper privileges. |
API Level: 3
Privilege Level: public
Privilege: http://tizen.org/privilege/message.write
Events
Declaration
C#Copypublic static event EventHandler<MessageReceivedEventArgs> MessageReceived
Event Type
Type | Description |
---|---|
System.EventHandler<MessageReceivedEventArgs> |