Stay organized with collections
Save and categorize content based on your preferences.
Builder
class Builder
Builder class for VisualVoicemailSmsFilterSettings
objects.
Summary
Public constructors
Public methods
setClientPrefix
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 |
setOriginatingNumbers
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 |
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-10 UTC."],[],[],null,["# VisualVoicemailSmsFilterSettings.Builder\n\nAdded in [API level 26](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nBuilder\n=======\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/telephony/VisualVoicemailSmsFilterSettings.Builder \"View this page in Java\") \n\n```\nclass Builder\n```\n\n|---|-----------------------------------------------------------------|\n| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) ||\n| ↳ | [android.telephony.VisualVoicemailSmsFilterSettings.Builder](#) |\n\nBuilder class for [VisualVoicemailSmsFilterSettings](/reference/kotlin/android/telephony/VisualVoicemailSmsFilterSettings) objects.\n\nSummary\n-------\n\n| Public constructors ||\n|----------------------------------|---|\n| [Builder](#Builder())`()` \u003cbr /\u003e |\n\n| Public methods ||\n|----------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| open [VisualVoicemailSmsFilterSettings](/reference/kotlin/android/telephony/VisualVoicemailSmsFilterSettings)! | [build](#build())`()` \u003cbr /\u003e |\n| open [VisualVoicemailSmsFilterSettings.Builder](#)! | [setClientPrefix](#setClientPrefix(kotlin.String))`(`clientPrefix:` `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!`)` Sets the client prefix for the visual voicemail SMS filter. |\n| open [VisualVoicemailSmsFilterSettings.Builder](#)! | [setDestinationPort](#setDestinationPort(kotlin.Int))`(`destinationPort:` `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`)` Sets the destination port for the visual voicemail SMS filter. |\n| open [VisualVoicemailSmsFilterSettings.Builder](#)! | [setOriginatingNumbers](#setOriginatingNumbers(kotlin.collections.MutableList))`(`originatingNumbers:` `[MutableList](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-list/index.html)\u003c[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!\u003e!`)` Sets the originating number allow list for the visual voicemail SMS filter. |\n\nPublic constructors\n-------------------\n\n### Builder\n\n```\nBuilder()\n```\n\nPublic methods\n--------------\n\n### build\n\nAdded in [API level 26](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nopen fun build(): VisualVoicemailSmsFilterSettings!\n``` \n\n### setClientPrefix\n\nAdded in [API level 26](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nopen fun setClientPrefix(clientPrefix: String!): VisualVoicemailSmsFilterSettings.Builder!\n```\n\nSets 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(:).\n\n| Exceptions ||\n|--------------------------------------|-----------------------------------------------------|\n| `java.lang.IllegalArgumentException` | if the string length is greater than 256 characters |\n\n### setDestinationPort\n\nAdded in [API level 26](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nopen fun setDestinationPort(destinationPort: Int): VisualVoicemailSmsFilterSettings.Builder!\n```\n\nSets the destination port for the visual voicemail SMS filter.\n\n| Parameters ||\n|-------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `destinationPort` | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html): The destination port, or [DESTINATION_PORT_ANY](/reference/kotlin/android/telephony/VisualVoicemailSmsFilterSettings#DESTINATION_PORT_ANY:kotlin.Int), or [DESTINATION_PORT_DATA_SMS](/reference/kotlin/android/telephony/VisualVoicemailSmsFilterSettings#DESTINATION_PORT_DATA_SMS:kotlin.Int) |\n\n### setOriginatingNumbers\n\nAdded in [API level 26](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nopen fun setOriginatingNumbers(originatingNumbers: MutableList\u003cString!\u003e!): VisualVoicemailSmsFilterSettings.Builder!\n```\n\nSets 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.\n\n| Exceptions ||\n|--------------------------------------|---------------------------------------------------------------------------------------|\n| `java.lang.IllegalArgumentException` | if an element within the originatingNumbers list has a string length greater than 256 |"]]