Class MessagesManager
Definition
- Assembly:
- Tizen.Messaging.dll
This class is used for the message management. It allows applications to use the message service.
public static class MessagesManager
- Inheritance
-
objectMessages
Manager
Methods
View SourceSearchMessageAsync(MessagesSearchFilter)
Searches for messages.
Declaration
public static Task<IEnumerable<Message>> SearchMessageAsync(MessagesSearchFilter filter)
Parameters
Type | Name | Description |
---|---|---|
Messages |
filter | The search filter for searching messages. |
Returns
Type | Description |
---|---|
System. |
A task containing the messages, which match the search filter. |
Exceptions
Type | Condition |
---|---|
System. |
Thrown when the method failed due to an invalid operation. |
System. |
Thrown when the message service is not supported. |
System. |
Thrown when input coordinates are invalid. |
System. |
Thrown when failed due to out of memory. |
System. |
Thrown when an application does not have proper privileges. |
SendMessageAsync(Message, bool)
Sends a message.
Declaration
public static Task<SentResult> SendMessageAsync(Message message, bool saveToSentbox)
Parameters
Type | Name | Description |
---|---|---|
Message | message | The message to be sent. |
bool | saveToSentbox | The boolean variable used to indicate whether the sent message should be saved in the sentbox or not. |
Returns
Type | Description |
---|---|
System. |
A task containing the result of message sending. |
Exceptions
Type | Condition |
---|---|
System. |
Thrown when the method failed due to an invalid operation. |
System. |
Thrown when the message service is not supported. |
System. |
Thrown when input coordinates are invalid. |
System. |
Thrown when an application does not have proper privileges. |
Events
View SourceMessageReceived
The MessageReceived event that is raised when receiving a message.
Declaration
public static event EventHandler<MessageReceivedEventArgs> MessageReceived
Event Type
Type | Description |
---|---|
System. |