VisualVoicemailSmsFilterSettings.Builder


public static class VisualVoicemailSmsFilterSettings.Builder
extends Object

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


Builder class for VisualVoicemailSmsFilterSettings objects.

Summary

Public constructors

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 allow list for the visual voicemail SMS filter.

Inherited methods

Public constructors

Builder

public 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 allow list 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