/**@class android.telephony.gsm.SmsManager @extends java.lang.Object Manages SMS operations such as sending data, text, and pdu SMS messages. Get this object by calling the static method SmsManager.getDefault(). @deprecated Replaced by android.telephony.SmsManager that supports both GSM and CDMA. */ var SmsManager = { /**Free space (TS 51.011 10.5.3). @deprecated Use android.telephony.SmsManager. */ STATUS_ON_SIM_FREE : "0", /**Received and read (TS 51.011 10.5.3). @deprecated Use android.telephony.SmsManager. */ STATUS_ON_SIM_READ : "1", /**Received and unread (TS 51.011 10.5.3). @deprecated Use android.telephony.SmsManager. */ STATUS_ON_SIM_UNREAD : "3", /**Stored and sent (TS 51.011 10.5.3). @deprecated Use android.telephony.SmsManager. */ STATUS_ON_SIM_SENT : "5", /**Stored and unsent (TS 51.011 10.5.3). @deprecated Use android.telephony.SmsManager. */ STATUS_ON_SIM_UNSENT : "7", /**Generic failure cause @deprecated Use android.telephony.SmsManager. */ RESULT_ERROR_GENERIC_FAILURE : "1", /**Failed because radio was explicitly turned off @deprecated Use android.telephony.SmsManager. */ RESULT_ERROR_RADIO_OFF : "2", /**Failed because no pdu provided @deprecated Use android.telephony.SmsManager. */ RESULT_ERROR_NULL_PDU : "3", /**Failed because service is currently unavailable @deprecated Use android.telephony.SmsManager. */ RESULT_ERROR_NO_SERVICE : "4", /**Get the default instance of the SmsManager @return {Object {android.telephony.gsm.SmsManager}} the default instance of the SmsManager @deprecated Use android.telephony.SmsManager. */ getDefault : function( ) {}, /**Send a text based SMS. @param {String} destinationAddress the address to send the message to @param {String} scAddress is the service center address or null to use the current default SMSC @param {String} text the body of the message to send @param {Object {PendingIntent}} sentIntent if not NULL this <code>PendingIntent</code> is broadcast when the message is successfully sent, or failed. The result code will be <code>Activity.RESULT_OK<code> for success, or one of these errors: <code>RESULT_ERROR_GENERIC_FAILURE</code> <code>RESULT_ERROR_RADIO_OFF</code> <code>RESULT_ERROR_NULL_PDU</code>. The per-application based SMS control checks sentIntent. If sentIntent is NULL the caller will be checked against all unknown applications, which cause smaller number of SMS to be sent in checking period. @param {Object {PendingIntent}} deliveryIntent if not NULL this <code>PendingIntent</code> is broadcast when the message is delivered to the recipient. The raw pdu of the status report is in the extended data ("pdu"). @throws IllegalArgumentException if destinationAddress or text are empty @deprecated Use android.telephony.SmsManager. */ sendTextMessage : function( ) {}, /**Divide a text message into several messages, none bigger than the maximum SMS message size. @param {String} text the original message. Must not be null. @return {Object {java.util.ArrayList}} an <code>ArrayList</code> of strings that, in order, comprise the original message @deprecated Use android.telephony.SmsManager. */ divideMessage : function( ) {}, /**Send a multi-part text based SMS. The callee should have already divided the message into correctly sized parts by calling <code>divideMessage</code>. @param {String} destinationAddress the address to send the message to @param {String} scAddress is the service center address or null to use the current default SMSC @param {Object {java.util.ArrayList}} parts an <code>ArrayList</code> of strings that, in order, comprise the original message @param {Object {java.util.ArrayList}} sentIntents if not null, an <code>ArrayList</code> of <code>PendingIntent</code>s (one for each message part) that is broadcast when the corresponding message part has been sent. The result code will be <code>Activity.RESULT_OK<code> for success, or one of these errors: <code>RESULT_ERROR_GENERIC_FAILURE</code> <code>RESULT_ERROR_RADIO_OFF</code> <code>RESULT_ERROR_NULL_PDU</code>. The per-application based SMS control checks sentIntent. If sentIntent is NULL the caller will be checked against all unknown applicaitons, which cause smaller number of SMS to be sent in checking period. @param {Object {java.util.ArrayList}} deliveryIntents if not null, an <code>ArrayList</code> of <code>PendingIntent</code>s (one for each message part) that is broadcast when the corresponding message part has been delivered to the recipient. The raw pdu of the status report is in the extended data ("pdu"). @throws IllegalArgumentException if destinationAddress or data are empty @deprecated Use android.telephony.SmsManager. */ sendMultipartTextMessage : function( ) {}, /**Send a data based SMS to a specific application port. @param {String} destinationAddress the address to send the message to @param {String} scAddress is the service center address or null to use the current default SMSC @param {Number} destinationPort the port to deliver the message to @param {Object {byte[]}} data the body of the message to send @param {Object {PendingIntent}} sentIntent if not NULL this <code>PendingIntent</code> is broadcast when the message is sucessfully sent, or failed. The result code will be <code>Activity.RESULT_OK<code> for success, or one of these errors: <code>RESULT_ERROR_GENERIC_FAILURE</code> <code>RESULT_ERROR_RADIO_OFF</code> <code>RESULT_ERROR_NULL_PDU</code>. The per-application based SMS control checks sentIntent. If sentIntent is NULL the caller will be checked against all unknown applicaitons, which cause smaller number of SMS to be sent in checking period. @param {Object {PendingIntent}} deliveryIntent if not NULL this <code>PendingIntent</code> is broadcast when the message is delivered to the recipient. The raw pdu of the status report is in the extended data ("pdu"). @throws IllegalArgumentException if destinationAddress or data are empty @deprecated Use android.telephony.SmsManager. */ sendDataMessage : function( ) {}, /**Copy a raw SMS PDU to the SIM. @param {Object {byte[]}} smsc the SMSC for this message, or NULL for the default SMSC @param {Object {byte[]}} pdu the raw PDU to store @param {Number} status message status (STATUS_ON_SIM_READ, STATUS_ON_SIM_UNREAD, STATUS_ON_SIM_SENT, STATUS_ON_SIM_UNSENT) @return {Boolean} true for success @deprecated Use android.telephony.SmsManager. {@hide} */ copyMessageToSim : function( ) {}, /**Delete the specified message from the SIM. @param {Number} messageIndex is the record index of the message on SIM @return {Boolean} true for success @deprecated Use android.telephony.SmsManager. {@hide} */ deleteMessageFromSim : function( ) {}, /**Update the specified message on the SIM. @param {Number} messageIndex record index of message to update @param {Number} newStatus new message status (STATUS_ON_SIM_READ, STATUS_ON_SIM_UNREAD, STATUS_ON_SIM_SENT, STATUS_ON_SIM_UNSENT, STATUS_ON_SIM_FREE) @param {Object {byte[]}} pdu the raw PDU to store @return {Boolean} true for success @deprecated Use android.telephony.SmsManager. {@hide} */ updateMessageOnSim : function( ) {}, /**Retrieves all messages currently stored on SIM. @return {Object {java.util.ArrayList}} <code>ArrayList</code> of <code>SmsMessage</code> objects @deprecated Use android.telephony.SmsManager. {@hide} */ getAllMessagesFromSim : function( ) {}, };