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#
Copy
public static class MessagesManager
Inheritance
System.Object
MessagesManager

Methods

View Source

SearchMessageAsync(MessagesSearchFilter)

Searches for messages.

Declaration
C#
Copy
public 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
View Source

SendMessageAsync(Message, Boolean)

Sends a message.

Declaration
C#
Copy
public static Task<SentResult> SendMessageAsync(Message message, bool saveToSentbox)
Parameters
Type Name Description
Message message

The message to be sent.

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

View Source

MessageReceived

The MessageReceived event that is raised when receiving a message.

Declaration
C#
Copy
public static event EventHandler<MessageReceivedEventArgs> MessageReceived
Event Type
Type Description
System.EventHandler<MessageReceivedEventArgs>
API Level: 3
Privilege Level: public
Privilege: http://tizen.org/privilege/message.read