Skip to content

Most visited

Recently visited

navigation

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

From class java.lang.Object

Public constructors

VisualVoicemailSmsFilterSettings.Builder

added in API level 26
VisualVoicemailSmsFilterSettings.Builder ()

Public methods

setClientPrefix

added in API level 26
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
VisualVoicemailSmsFilterSettings.Builder setDestinationPort (int destinationPort)

Sets the destination port for the visual voicemail SMS filter.

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

Returns
VisualVoicemailSmsFilterSettings.Builder

setOriginatingNumbers

added in API level 26
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

This site uses cookies to store your preferences for site-specific language and display options.

Get the latest Android developer news and tips that will help you find success on Google Play.

* Required Fields

Hooray!

Browse this site in ?

You requested a page in , but your language preference for this site is .

Would you like to change your language preference and browse this site in ? If you want to change your language preference later, use the language menu at the bottom of each page.

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.

Take a one-minute survey?
Help us improve Android tools and documentation.