Android.Telephony.SmsMessage Members

The members of Android.Telephony.SmsMessage are listed below.

See Also: Inherited members from Java.Lang.Object

Protected Constructors

A constructor used when creating managed representations of JNI objects; called by the runtime.

Public Fields

const
MaxUserDataBytesint (140). The maximum number of payload bytes per message
const
MaxUserDataBytesWithHeaderint (134). The maximum number of payload bytes per message if a user data header is present.
const
MaxUserDataSeptetsint (160). The maximum number of payload septets per message
const
MaxUserDataSeptetsWithHeaderint (153). The maximum number of payload septets per message if a user data header is present.

Public Properties

[read-only]
DisplayMessageBodystring. Returns the message body, or email message body if this message was from an email gateway.
[read-only]
DisplayOriginatingAddressstring. Returns the originating address, or email from address if this message was from an email gateway.
[read-only]
EmailBodystring.
[read-only]
EmailFromstring.
[read-only]
IndexOnIccint. Returns the record index of the message on the ICC (1-based index).
[read-only]
IndexOnSimint. Returns the record index of the message on the SIM (1-based index).
[read-only]
IsCphsMwiMessagebool. Returns true for CPHS MWI toggle message.
[read-only]
IsEmailbool. Returns true if message is an email.
[read-only]
IsMWIClearMessagebool. returns true if this message is a CPHS voicemail / message waiting indicator (MWI) clear message
[read-only]
IsMwiDontStorebool. returns true if this message is a "Message Waiting Indication Group: Discard Message" notification and should not be stored.
[read-only]
IsMWISetMessagebool. returns true if this message is a CPHS voicemail / message waiting indicator (MWI) set message
[read-only]
IsReplacebool. See TS 23.040 9.2.3.9 returns true if this is a "replace short message" SMS
[read-only]
IsReplyPathPresentbool. Returns true iff the TP-Reply-Path bit is set in this message.
[read-only]
IsStatusReportMessagebool. Return true iff the message is a SMS-STATUS-REPORT message.
[read-only]
MessageBodystring. Returns the message body as a String, if it exists and is text based.
[read-only]
OriginatingAddressstring. Returns the originating address (sender) of this SMS message in String form or null if unavailable
[read-only]
ProtocolIdentifierint. Get protocol identifier.
[read-only]
PseudoSubjectstring. Unofficial convention of a subject line enclosed in parens empty string if not present
[read-only]
ServiceCenterAddressstring. Returns the address of the SMS service center that relayed this message or null if there is none.
[read-only]
Statusint. GSM: For an SMS-STATUS-REPORT message, this returns the status field from the status report.
[read-only]
StatusOnIccSmsStatus. Returns the status of the message on the ICC (read, unread, sent, unsent).
[read-only]
StatusOnSimAndroid.Telephony.Gsm.SmsStatusOnSim. Returns the status of the message on the SIM (read, unread, sent, unsent).
[read-only]
TimestampMillislong. Returns the service centre timestamp in currentTimeMillis() format

Protected Properties

[read-only]
override
ThresholdClassIntPtr. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.
[read-only]
override
ThresholdTypeType. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

Public Methods

static
CalculateLength(Java.Lang.ICharSequence, bool) : int[]
Calculates the number of SMS's required to encode the message body and the number of characters remaining until the next message.
static
CalculateLength(string, bool) : int[]
Calculates the number of SMS's required to encode the message body and the number of characters remaining until the next message, given the current encoding.
static
CreateFromPdu(byte[]) : SmsMessage
Create an SmsMessage from a raw PDU.
GetMessageClass() : SmsMessage.MessageClass
Returns the class of this message.
GetPdu() : byte[]
Returns the raw PDU for the message.
static
GetSubmitPdu(string, string, string, bool) : SmsMessage.SubmitPdu
Get an SMS-SUBMIT PDU for a destination address and a message.
static
GetSubmitPdu(string, string, short, byte[], bool) : SmsMessage.SubmitPdu
Get an SMS-SUBMIT PDU for a data message to a destination address & port.
static
GetTPLayerLengthForPDU(string) : int
Get the TP-Layer-Length for the given SMS-SUBMIT PDU Basically, the length in bytes (not hex chars) less the SMSC header FIXME: This method is only used by a CTS test case that isn't run on CDMA devices.
GetUserData() : byte[]
returns the user data section minus the user data header if one was present.