ApnSetting.Builder.SetMmsProxyAddress Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| Name | Description |
|---|---|
| SetMmsProxyAddress(InetAddress) |
Sets the address of an MMS proxy for the APN. |
| SetMmsProxyAddress(String) |
Sets the MMS proxy address of the APN. |
SetMmsProxyAddress(InetAddress)
Sets the address of an MMS proxy for the APN.
[Android.Runtime.Register("setMmsProxyAddress", "(Ljava/net/InetAddress;)Landroid/telephony/data/ApnSetting$Builder;", "GetSetMmsProxyAddress_Ljava_net_InetAddress_Handler", ApiSince=28)]
public virtual Android.Telephony.Data.ApnSetting.Builder? SetMmsProxyAddress(Java.Net.InetAddress? mmsProxy);
[<Android.Runtime.Register("setMmsProxyAddress", "(Ljava/net/InetAddress;)Landroid/telephony/data/ApnSetting$Builder;", "GetSetMmsProxyAddress_Ljava_net_InetAddress_Handler", ApiSince=28)>]
abstract member SetMmsProxyAddress : Java.Net.InetAddress -> Android.Telephony.Data.ApnSetting.Builder
override this.SetMmsProxyAddress : Java.Net.InetAddress -> Android.Telephony.Data.ApnSetting.Builder
Parameters
- mmsProxy
- InetAddress
the MMS proxy address to set for the APN
Returns
- Attributes
Remarks
This method was deprecated in API level 29. use setMmsProxyAddress(String) instead.
Sets the address of an MMS proxy for the APN. The MMS proxy address can be an IP address or hostname. If mmsProxy contains both an IP address and hostname, this method ignores the IP address.
The InetAddress methods getByName() and getAllByName() require DNS for hostname resolution. To avoid this requirement when setting a hostname, call InetAddress.getByAddress(java.lang.String, byte[]) with both the hostname and a placeholder IP address. See above for an example.
Android reference for android.telephony.data.ApnSetting.Builder.setMmsProxyAddress.
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
SetMmsProxyAddress(String)
Sets the MMS proxy address of the APN.
[Android.Runtime.Register("setMmsProxyAddress", "(Ljava/lang/String;)Landroid/telephony/data/ApnSetting$Builder;", "GetSetMmsProxyAddress_Ljava_lang_String_Handler", ApiSince=29)]
public virtual Android.Telephony.Data.ApnSetting.Builder SetMmsProxyAddress(string? mmsProxy);
[<Android.Runtime.Register("setMmsProxyAddress", "(Ljava/lang/String;)Landroid/telephony/data/ApnSetting$Builder;", "GetSetMmsProxyAddress_Ljava_lang_String_Handler", ApiSince=29)>]
abstract member SetMmsProxyAddress : string -> Android.Telephony.Data.ApnSetting.Builder
override this.SetMmsProxyAddress : string -> Android.Telephony.Data.ApnSetting.Builder
Parameters
- mmsProxy
- String
the MMS proxy address to set for the APN. This value may be null.
Returns
- Attributes
Remarks
Sets the MMS proxy address of the APN.
Android reference for android.telephony.data.ApnSetting.Builder.setMmsProxyAddress.
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.