UssdMessageUssdMessageUssdMessageUssdMessage
Class

Definition

Represents a USSD message that is used for sending messages to and receiving messages from the network.

Note

This functionality is only available to mobile operator apps and Windows Store apps given privileged access by mobile network operators.

If you want to use this API and publish your app to the Store, you will need special approval. For more information, see the Special and restricted capabilities section under App capability declarations.

Constructors

Creates a new instance of a UssdMessage and encodes the supplied string into the message payload.

Note

This functionality is only available to mobile operator apps and Windows Store apps given privileged access by mobile network operators.

If you want to use this API and publish your app to the Store, you will need special approval. For more information, see the Special and restricted capabilities section under App capability declarations.

public : UssdMessage(PlatForm::String messageText)public UssdMessage(String messageText)Public Sub New(messageText As String)// You can use this method in JavaScript.

Properties

DataCodingSchemeDataCodingSchemeDataCodingSchemeDataCodingScheme

Note

This functionality is only available to mobile operator apps and Windows Store apps given privileged access by mobile network operators.

If you want to use this API and publish your app to the Store, you will need special approval. For more information, see the Special and restricted capabilities section under App capability declarations.

PayloadAsTextPayloadAsTextPayloadAsTextPayloadAsText

Note

This functionality is only available to mobile operator apps and Windows Store apps given privileged access by mobile network operators.

If you want to use this API and publish your app to the Store, you will need special approval. For more information, see the Special and restricted capabilities section under App capability declarations.

Remarks

The PayloadAsText property can be used with the default DataCodingScheme value, which supports only ASCII characters. The maximum length of a message is using the default data-coding scheme is 182 characters.

Methods

GetPayload()GetPayload()GetPayload()GetPayload()

Note

This functionality is only available to mobile operator apps and Windows Store apps given privileged access by mobile network operators.

If you want to use this API and publish your app to the Store, you will need special approval. For more information, see the Special and restricted capabilities section under App capability declarations.

public : byte[] GetPayload()public byte[] GetPayload()Public Function GetPayload() As byte[]// You can use this method in JavaScript.

Note

This functionality is only available to mobile operator apps and Windows Store apps given privileged access by mobile network operators.

If you want to use this API and publish your app to the Store, you will need special approval. For more information, see the Special and restricted capabilities section under App capability declarations.

public : void SetPayload(Byte[] value)public void SetPayload(Byte[] value)Public Function SetPayload(value As Byte[]) As void// You can use this method in JavaScript.

Remarks

When you set the raw payload for a UssdMessage, you must first set the DataCodingScheme property to the encoding scheme for the message. If you do not set the DataCodingScheme property, the default coding scheme is used.

If you use the default coding scheme, you can access the payload as text using the PayloadAsText property.