VisualVoicemailSmsFilterSettings.Builder

public static class VisualVoicemailSmsFilterSettings.Builder
extends Object

java.lang.Object
   ↳ android.telephony.VisualVoicemailSmsFilterSettings.Builder


Builder class for VisualVoicemailSmsFilterSettings objects.

Summary

Public constructors

VisualVoicemailSmsFilterSettings.Builder()

Public methods

VisualVoicemailSmsFilterSettings build()
VisualVoicemailSmsFilterSettings.Builder setClientPrefix(String clientPrefix)

Sets the client prefix for the visual voicemail SMS filter.

VisualVoicemailSmsFilterSettings.Builder setDestinationPort(int destinationPort)

Sets the destination port for the visual voicemail SMS filter.

VisualVoicemailSmsFilterSettings.Builder setOriginatingNumbers(List<String> originatingNumbers)

Sets the originating number whitelist for the visual voicemail SMS filter.

Inherited methods

Public constructors

VisualVoicemailSmsFilterSettings.Builder

added in API level 26
public VisualVoicemailSmsFilterSettings.Builder ()

Public methods

setClientPrefix

added in API level 26
public VisualVoicemailSmsFilterSettings.Builder setClientPrefix (String clientPrefix)

Sets the client prefix for the visual voicemail SMS filter. The client prefix will appear at the start of a visual voicemail SMS message, followed by a colon(:).

Parameters
clientPrefix String

Returns
VisualVoicemailSmsFilterSettings.Builder

setDestinationPort

added in API level 26
public VisualVoicemailSmsFilterSettings.Builder setDestinationPort (int destinationPort)

Sets the destination port for the visual voicemail SMS filter.

Parameters
destinationPort int: The destination port, or VisualVoicemailSmsFilterSettings.DESTINATION_PORT_ANY, or VisualVoicemailSmsFilterSettings.DESTINATION_PORT_DATA_SMS

Returns
VisualVoicemailSmsFilterSettings.Builder

setOriginatingNumbers

added in API level 26
public VisualVoicemailSmsFilterSettings.Builder setOriginatingNumbers (List<String> originatingNumbers)

Sets the originating number whitelist for the visual voicemail SMS filter. If the list is not null only the SMS messages from a number in the list can be considered as a visual voicemail SMS. Otherwise, messages from any address will be considered.

Parameters
originatingNumbers List

Returns
VisualVoicemailSmsFilterSettings.Builder