Stay organized with collections
Save and categorize content based on your preferences.
MmTelCapabilities
open class MmTelCapabilities
Contains the capabilities defined and supported by a MmTelFeature in the form of a Bitmask. The capabilities that are used in MmTelFeature are defined as MmTelCapabilities.CAPABILITY_TYPE_VOICE
, MmTelCapabilities.CAPABILITY_TYPE_VIDEO
, MmTelCapabilities.CAPABILITY_TYPE_UT
, MmTelCapabilities.CAPABILITY_TYPE_SMS
, and MmTelCapabilities.CAPABILITY_TYPE_CALL_COMPOSER
. The capabilities of this MmTelFeature will be set by the framework.
Summary
Constants |
static Int |
This MmTelFeature supports Call Composer (section 2.4 of RC.20).
|
static Int |
This MmTelFeature supports Business-only Call Composer.
|
static Int |
This MmTelFeature supports SMS (IR.92)
|
static Int |
This MmTelFeature supports XCAP over Ut for supplementary services.
|
static Int |
This MmTelFeature supports Video (IR.94)
|
static Int |
This MmTelFeature supports Voice calling (IR.92)
|
Constants
CAPABILITY_TYPE_CALL_COMPOSER
static val CAPABILITY_TYPE_CALL_COMPOSER: Int
This MmTelFeature supports Call Composer (section 2.4 of RC.20). This is the superset Call Composer, meaning that all subset types of Call Composers must be enabled when this capability is enabled
Value: 16
CAPABILITY_TYPE_CALL_COMPOSER_BUSINESS_ONLY
static val CAPABILITY_TYPE_CALL_COMPOSER_BUSINESS_ONLY: Int
This MmTelFeature supports Business-only Call Composer. This is a subset of CAPABILITY_TYPE_CALL_COMPOSER
that only supports business related information for calling (e.g. information to signal if the call is a business call) in the SIP header. When enabling CAPABILITY_TYPE_CALL_COMPOSER
, the CAPABILITY_TYPE_CALL_COMPOSER_BUSINESS_ONLY
capability must also be enabled.
Value: 32
CAPABILITY_TYPE_SMS
static val CAPABILITY_TYPE_SMS: Int
This MmTelFeature supports SMS (IR.92)
Value: 8
CAPABILITY_TYPE_UT
static val CAPABILITY_TYPE_UT: Int
This MmTelFeature supports XCAP over Ut for supplementary services. (IR.92)
Value: 4
CAPABILITY_TYPE_VIDEO
static val CAPABILITY_TYPE_VIDEO: Int
This MmTelFeature supports Video (IR.94)
Value: 2
CAPABILITY_TYPE_VOICE
static val CAPABILITY_TYPE_VOICE: Int
This MmTelFeature supports Voice calling (IR.92)
Value: 1
Public methods
isCapable
fun isCapable(capabilities: Int): Boolean
Return |
Boolean |
true if all queried capabilities are true, otherwise false. |
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,["# MmTelFeature.MmTelCapabilities\n\nAdded in [API level 30](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nMmTelCapabilities\n=================\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/telephony/ims/feature/MmTelFeature.MmTelCapabilities \"View this page in Java\") \n\n```\nopen class MmTelCapabilities\n```\n\n|---|-------------------------------------------------------------------|\n| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) ||\n| ↳ | [android.telephony.ims.feature.MmTelFeature.MmTelCapabilities](#) |\n\nContains the capabilities defined and supported by a MmTelFeature in the form of a Bitmask. The capabilities that are used in MmTelFeature are defined as [MmTelCapabilities.CAPABILITY_TYPE_VOICE](#CAPABILITY_TYPE_VOICE:kotlin.Int), [MmTelCapabilities.CAPABILITY_TYPE_VIDEO](#CAPABILITY_TYPE_VIDEO:kotlin.Int), [MmTelCapabilities.CAPABILITY_TYPE_UT](#CAPABILITY_TYPE_UT:kotlin.Int), [MmTelCapabilities.CAPABILITY_TYPE_SMS](#CAPABILITY_TYPE_SMS:kotlin.Int), and [MmTelCapabilities.CAPABILITY_TYPE_CALL_COMPOSER](#CAPABILITY_TYPE_CALL_COMPOSER:kotlin.Int). The capabilities of this MmTelFeature will be set by the framework.\n\nSummary\n-------\n\n| Constants ||\n|-----------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| static [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [CAPABILITY_TYPE_CALL_COMPOSER](#CAPABILITY_TYPE_CALL_COMPOSER:kotlin.Int) This MmTelFeature supports Call Composer (section 2.4 of RC.20). |\n| static [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [CAPABILITY_TYPE_CALL_COMPOSER_BUSINESS_ONLY](#CAPABILITY_TYPE_CALL_COMPOSER_BUSINESS_ONLY:kotlin.Int) This MmTelFeature supports Business-only Call Composer. |\n| static [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [CAPABILITY_TYPE_SMS](#CAPABILITY_TYPE_SMS:kotlin.Int) This MmTelFeature supports SMS (IR.92) |\n| static [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [CAPABILITY_TYPE_UT](#CAPABILITY_TYPE_UT:kotlin.Int) This MmTelFeature supports XCAP over Ut for supplementary services. |\n| static [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [CAPABILITY_TYPE_VIDEO](#CAPABILITY_TYPE_VIDEO:kotlin.Int) This MmTelFeature supports Video (IR.94) |\n| static [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [CAPABILITY_TYPE_VOICE](#CAPABILITY_TYPE_VOICE:kotlin.Int) This MmTelFeature supports Voice calling (IR.92) |\n\n| Public methods ||\n|------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------|\n| [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | [isCapable](#isCapable(kotlin.Int))`(`capabilities:` `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`)` \u003cbr /\u003e |\n\nConstants\n---------\n\n### CAPABILITY_TYPE_CALL_COMPOSER\n\nAdded in [API level 31](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nstatic val CAPABILITY_TYPE_CALL_COMPOSER: Int\n```\n\nThis MmTelFeature supports Call Composer (section 2.4 of RC.20). This is the superset Call Composer, meaning that all subset types of Call Composers must be enabled when this capability is enabled \n\n Value: 16\n\n### CAPABILITY_TYPE_CALL_COMPOSER_BUSINESS_ONLY\n\nAdded in [API level 35](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nstatic val CAPABILITY_TYPE_CALL_COMPOSER_BUSINESS_ONLY: Int\n```\n\nThis MmTelFeature supports Business-only Call Composer. This is a subset of `CAPABILITY_TYPE_CALL_COMPOSER` that only supports business related information for calling (e.g. information to signal if the call is a business call) in the SIP header. When enabling `CAPABILITY_TYPE_CALL_COMPOSER`, the `CAPABILITY_TYPE_CALL_COMPOSER_BUSINESS_ONLY` capability must also be enabled. \n\n Value: 32\n\n### CAPABILITY_TYPE_SMS\n\nAdded in [API level 30](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nstatic val CAPABILITY_TYPE_SMS: Int\n```\n\nThis MmTelFeature supports SMS (IR.92) \n\n Value: 8\n\n### CAPABILITY_TYPE_UT\n\nAdded in [API level 30](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nstatic val CAPABILITY_TYPE_UT: Int\n```\n\nThis MmTelFeature supports XCAP over Ut for supplementary services. (IR.92) \n\n Value: 4\n\n### CAPABILITY_TYPE_VIDEO\n\nAdded in [API level 30](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nstatic val CAPABILITY_TYPE_VIDEO: Int\n```\n\nThis MmTelFeature supports Video (IR.94) \n\n Value: 2\n\n### CAPABILITY_TYPE_VOICE\n\nAdded in [API level 30](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nstatic val CAPABILITY_TYPE_VOICE: Int\n```\n\nThis MmTelFeature supports Voice calling (IR.92) \n\n Value: 1\n\nPublic methods\n--------------\n\n### isCapable\n\nAdded in [API level 31](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nfun isCapable(capabilities: Int): Boolean\n```\n\n| Parameters ||\n|----------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `capabilities` | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html): a bitmask of one or more capabilities. Value is either `0` or a combination of [android.telephony.ims.feature.MmTelFeature.MmTelCapabilities#CAPABILITY_TYPE_VOICE](#CAPABILITY_TYPE_VOICE:kotlin.Int), [android.telephony.ims.feature.MmTelFeature.MmTelCapabilities#CAPABILITY_TYPE_VIDEO](#CAPABILITY_TYPE_VIDEO:kotlin.Int), [android.telephony.ims.feature.MmTelFeature.MmTelCapabilities#CAPABILITY_TYPE_UT](#CAPABILITY_TYPE_UT:kotlin.Int), [android.telephony.ims.feature.MmTelFeature.MmTelCapabilities#CAPABILITY_TYPE_SMS](#CAPABILITY_TYPE_SMS:kotlin.Int), [android.telephony.ims.feature.MmTelFeature.MmTelCapabilities#CAPABILITY_TYPE_CALL_COMPOSER](#CAPABILITY_TYPE_CALL_COMPOSER:kotlin.Int), and [android.telephony.ims.feature.MmTelFeature.MmTelCapabilities#CAPABILITY_TYPE_CALL_COMPOSER_BUSINESS_ONLY](#CAPABILITY_TYPE_CALL_COMPOSER_BUSINESS_ONLY:kotlin.Int) |\n\n| Return ||\n|------------------------------------------------------------------------------------|-------------------------------------------------------------|\n| [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | true if all queried capabilities are true, otherwise false. |"]]