Dela via


SmsMessage.OriginatingAddress Property

Definition

Returns the originating address (sender) of this SMS message in String form or null if unavailable.

public virtual string? OriginatingAddress { [Android.Runtime.Register("getOriginatingAddress", "()Ljava/lang/String;", "GetGetOriginatingAddressHandler")] get; }
[<get: Android.Runtime.Register("getOriginatingAddress", "()Ljava/lang/String;", "GetGetOriginatingAddressHandler")>]
member this.OriginatingAddress : string

Property Value

a String representation of the address; null if unavailable.

Attributes

Remarks

Returns the originating address (sender) of this SMS message in String form or null if unavailable.

If the address is a GSM-formatted address, it will be in a format specified by 3GPP 23.040 Sec 9.1.2.5. If it is a CDMA address, it will be a format specified by 3GPP2 C.S005-D Table 2.7.1.3.2.4-2. The choice of format is carrier-specific, so callers of the should be careful to avoid assumptions about the returned content.

Java documentation for android.telephony.SmsMessage.getOriginatingAddress().

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to