Stay organized with collections
Save and categorize content based on your preferences.
MessageClass
class MessageClass
SMS Class enumeration. See TS 23.038.
Summary
Enum values
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,["# SmsMessage.MessageClass\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \nDeprecated in [API level 4](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nMessageClass\n============\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/telephony/gsm/SmsMessage.MessageClass \"View this page in Java\") \n\n```\nclass MessageClass\n```\n\n|---|---|----------------------------------------------------|\n| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) |||\n| ↳ | [kotlin.Enum](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-enum/index.html)\\\u003c[android.telephony.gsm.SmsMessage.MessageClass](#)\\\u003e ||\n| | ↳ | [android.telephony.gsm.SmsMessage.MessageClass](#) |\n\n|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Known Direct Subclasses [SmsMessage.MessageClass.CLASS_0](#ENUM_VALUE:CLASS_0), [SmsMessage.MessageClass.CLASS_1](#ENUM_VALUE:CLASS_1), [SmsMessage.MessageClass.CLASS_2](#ENUM_VALUE:CLASS_2), [SmsMessage.MessageClass.CLASS_3](#ENUM_VALUE:CLASS_3), [SmsMessage.MessageClass.UNKNOWN](#ENUM_VALUE:UNKNOWN) |--------------------------------------------------------|--------| | [SmsMessage.MessageClass.CLASS_0](#ENUM_VALUE:CLASS_0) | \u003cbr /\u003e | | [SmsMessage.MessageClass.CLASS_1](#ENUM_VALUE:CLASS_1) | \u003cbr /\u003e | | [SmsMessage.MessageClass.CLASS_2](#ENUM_VALUE:CLASS_2) | \u003cbr /\u003e | | [SmsMessage.MessageClass.CLASS_3](#ENUM_VALUE:CLASS_3) | \u003cbr /\u003e | | [SmsMessage.MessageClass.UNKNOWN](#ENUM_VALUE:UNKNOWN) | \u003cbr /\u003e | |\n\n*** ** * ** ***\n\n| **This enum was deprecated in API level 4.**\n|\n| Use android.telephony.SmsMessage.\n\nSMS Class enumeration. See TS 23.038.\n\nSummary\n-------\n\n| Enum values ||\n|---------------------------------------|---|\n| [CLASS_0](#ENUM_VALUE:CLASS_0) \u003cbr /\u003e |\n| [CLASS_1](#ENUM_VALUE:CLASS_1) \u003cbr /\u003e |\n| [CLASS_2](#ENUM_VALUE:CLASS_2) \u003cbr /\u003e |\n| [CLASS_3](#ENUM_VALUE:CLASS_3) \u003cbr /\u003e |\n| [UNKNOWN](#ENUM_VALUE:UNKNOWN) \u003cbr /\u003e |\n\nEnum values\n-----------\n\n### CLASS_0\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nenum val CLASS_0 : SmsMessage.MessageClass\n```\n\n**Deprecated:** *Deprecated in Java.* \n\n### CLASS_1\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nenum val CLASS_1 : SmsMessage.MessageClass\n```\n\n**Deprecated:** *Deprecated in Java.* \n\n### CLASS_2\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nenum val CLASS_2 : SmsMessage.MessageClass\n```\n\n**Deprecated:** *Deprecated in Java.* \n\n### CLASS_3\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nenum val CLASS_3 : SmsMessage.MessageClass\n```\n\n**Deprecated:** *Deprecated in Java.* \n\n### UNKNOWN\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nenum val UNKNOWN : SmsMessage.MessageClass\n```\n\n**Deprecated:** *Deprecated in Java.*"]]