Udostępnij za pośrednictwem


ChatMessageManager Class

Definition

Provides access to message transports and the message store. Also provides a method to display the UI to compose messages.

public ref class ChatMessageManager abstract sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class ChatMessageManager final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public static class ChatMessageManager
Public Class ChatMessageManager
Inheritance
Object Platform::Object IInspectable ChatMessageManager
Attributes

Windows requirements

Device family
Windows 10 (introduced in 10.0.10240.0 - for Xbox, see UWP features that aren't yet supported on Xbox)
API contract
Windows.Foundation.UniversalApiContract (introduced in v1.0)
App capabilities
chat chatSystem smsSend

Remarks

Version history

Windows version SDK version Value added
1607 14393 RequestSyncManagerAsync

Methods

GetTransportAsync(String)

Asynchronously gets theChatMessageTransport.

GetTransportsAsync()

Asynchronously gets the chat message transports available on the device.

RegisterTransportAsync()

Asynchronously registers the app as a ChatMessageTransport in order to post messages to the ChatMessageStore.

RequestStoreAsync()

Returns the SMS messaging store for the phone.

RequestSyncManagerAsync()

Gets the ChatSyncManager instance.

ShowComposeSmsMessageAsync(ChatMessage)

Shows the compose SMS dialog, pre-populated with data from the supplied ChatMessage object, allowing the user to send an SMS message.

ShowSmsSettings()

Launches the device's SMS settings app.

Applies to