SmsMessageReceivedTriggerDetails SmsMessageReceivedTriggerDetails SmsMessageReceivedTriggerDetails SmsMessageReceivedTriggerDetails SmsMessageReceivedTriggerDetails Class

Definition

Contains event details for the event raised when an SMS message is received.

Note

This functionality is only available to mobile operator apps and UWP apps given privileged access by mobile network operators, mobile broadband adapter IHV, or OEM. For more information, see Mobile Broadband: device apps.

public : sealed class SmsMessageReceivedTriggerDetails : ISmsMessageReceivedTriggerDetails
struct winrt::Windows::Devices::Sms::SmsMessageReceivedTriggerDetails : ISmsMessageReceivedTriggerDetails
public sealed class SmsMessageReceivedTriggerDetails : ISmsMessageReceivedTriggerDetails
Public NotInheritable Class SmsMessageReceivedTriggerDetails Implements ISmsMessageReceivedTriggerDetails
// This class does not provide a public constructor.
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0 - for Xbox, see UWP features that aren't yet supported on Xbox)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)
Capabilities
sms cellularMessaging

Remarks

You access an SmsMessageReceivedTriggerDetails object through the function that you implement to handle the SmsMessageRegistration.MessageReceived event.

Your filtering code is required to acknowledge each filtered message by calling Drop or Accept before it can process the next message.

Properties

AppMessage AppMessage AppMessage AppMessage AppMessage

When MessageType is App, the message details for the message.

BroadcastMessage BroadcastMessage BroadcastMessage BroadcastMessage BroadcastMessage

When MessageType is Broadcast, the message details for the message.

MessageType MessageType MessageType MessageType MessageType

The SmsMessageType of the received message.

StatusMessage StatusMessage StatusMessage StatusMessage StatusMessage

When MessageType is Status, the message details for the message.

TextMessage TextMessage TextMessage TextMessage TextMessage

When MessageType is Text, the message details for the message.

VoicemailMessage VoicemailMessage VoicemailMessage VoicemailMessage VoicemailMessage

When MessageType is Voicemail, the message details for the message.

WapMessage WapMessage WapMessage WapMessage WapMessage

When MessageType is Wap, the message details for the message.

Methods

Accept() Accept() Accept() Accept() Accept()

Delivers the filtered message to the messaging app.

Drop() Drop() Drop() Drop() Drop()

Drops the filtered message, so that it is not passed on to the messaging app.