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 Windows Store app 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 : ISmsMessageReceivedTriggerDetailspublic sealed class SmsMessageReceivedTriggerDetails : ISmsMessageReceivedTriggerDetailsPublic NotInheritable Class SmsMessageReceivedTriggerDetails Implements ISmsMessageReceivedTriggerDetails// You can use this class in JavaScript.
- Attributes
| 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 |
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
When MessageType is App, the message details for the message.
public : SmsAppMessage AppMessage { get; }public SmsAppMessage AppMessage { get; }Public ReadOnly Property AppMessage As SmsAppMessage// You can use this property in JavaScript.
Message details for the received message, when it is an app message.
| 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 |
cellularMessaging
|
BroadcastMessage BroadcastMessage BroadcastMessage BroadcastMessage
When MessageType is Broadcast, the message details for the message.
public : SmsBroadcastMessage BroadcastMessage { get; }public SmsBroadcastMessage BroadcastMessage { get; }Public ReadOnly Property BroadcastMessage As SmsBroadcastMessage// You can use this property in JavaScript.
Message details for the received message, when it is a broadcast message.
| 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 |
cellularMessaging
|
MessageType MessageType MessageType MessageType
The SmsMessageType of the received message.
public : SmsMessageType MessageType { get; }public SmsMessageType MessageType { get; }Public ReadOnly Property MessageType As SmsMessageType// You can use this property in JavaScript.
The type of the received message. Use this value to determine which of the other properties of this instance is valid.
| 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 |
cellularMessaging
|
StatusMessage StatusMessage StatusMessage StatusMessage
When MessageType is Status, the message details for the message.
public : SmsStatusMessage StatusMessage { get; }public SmsStatusMessage StatusMessage { get; }Public ReadOnly Property StatusMessage As SmsStatusMessage// You can use this property in JavaScript.
Message details for the received message, when it is a status message.
| 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 |
cellularMessaging
|
TextMessage TextMessage TextMessage TextMessage
When MessageType is Text, the message details for the message.
public : SmsTextMessage2 TextMessage { get; }public SmsTextMessage2 TextMessage { get; }Public ReadOnly Property TextMessage As SmsTextMessage2// You can use this property in JavaScript.
Message details for the received message, when it is a text message.
| 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 |
cellularMessaging
|
VoicemailMessage VoicemailMessage VoicemailMessage VoicemailMessage
When MessageType is Voicemail, the message details for the message.
public : SmsVoicemailMessage VoicemailMessage { get; }public SmsVoicemailMessage VoicemailMessage { get; }Public ReadOnly Property VoicemailMessage As SmsVoicemailMessage// You can use this property in JavaScript.
Message details for the received message, when it is a voicemail message.
| 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 |
cellularMessaging
|
WapMessage WapMessage WapMessage WapMessage
When MessageType is Wap, the message details for the message.
public : SmsWapMessage WapMessage { get; }public SmsWapMessage WapMessage { get; }Public ReadOnly Property WapMessage As SmsWapMessage// You can use this property in JavaScript.
Message details for the received message, when it is a WAP message.
| 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 |
cellularMessaging
|
Methods
Accept() Accept() Accept() Accept()
Delivers the filtered message to the messaging app.
public : void Accept()public void Accept()Public Function Accept() As void// You can use this method in JavaScript.
| 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 |
cellularMessaging
|
Drop() Drop() Drop() Drop()
Drops the filtered message, so that it is not passed on to the messaging app.
public : void Drop()public void Drop()Public Function Drop() As void// You can use this method in JavaScript.
| 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 |
cellularMessaging
|