Added in API level 26

Builder


class Builder
kotlin.Any
   ↳ android.telephony.VisualVoicemailSmsFilterSettings.Builder

Builder class for VisualVoicemailSmsFilterSettings objects.

Summary

Public constructors

Public methods
open VisualVoicemailSmsFilterSettings!

open VisualVoicemailSmsFilterSettings.Builder!
setClientPrefix(clientPrefix: String!)

Sets the client prefix for the visual voicemail SMS filter.

open VisualVoicemailSmsFilterSettings.Builder!
setDestinationPort(destinationPort: Int)

Sets the destination port for the visual voicemail SMS filter.

open VisualVoicemailSmsFilterSettings.Builder!
setOriginatingNumbers(originatingNumbers: MutableList<String!>!)

Sets the originating number allow list for the visual voicemail SMS filter.

Public constructors

Builder

Builder()

Public methods

build

Added in API level 26
open fun build(): VisualVoicemailSmsFilterSettings!

setClientPrefix

Added in API level 26
open fun setClientPrefix(clientPrefix: String!): VisualVoicemailSmsFilterSettings.Builder!

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(:).

Exceptions
java.lang.IllegalArgumentException if the string length is greater than 256 characters

setDestinationPort

Added in API level 26
open fun setDestinationPort(destinationPort: Int): VisualVoicemailSmsFilterSettings.Builder!

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

setOriginatingNumbers

Added in API level 26
open fun setOriginatingNumbers(originatingNumbers: MutableList<String!>!): VisualVoicemailSmsFilterSettings.Builder!

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.

Exceptions
java.lang.IllegalArgumentException if an element within the originatingNumbers list has a string length greater than 256