MmTelCapabilities
open class MmTelCapabilities
kotlin.Any | |
↳ | android.telephony.ims.feature.MmTelFeature.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 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) |
Public methods | |
---|---|
Boolean |
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_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
Parameters | |
---|---|
capabilities |
Int: a bitmask of one or more capabilities. Value is either 0 or a combination of android.telephony.ims.feature.MmTelFeature.MmTelCapabilities#CAPABILITY_TYPE_VOICE , android.telephony.ims.feature.MmTelFeature.MmTelCapabilities#CAPABILITY_TYPE_VIDEO , android.telephony.ims.feature.MmTelFeature.MmTelCapabilities#CAPABILITY_TYPE_UT , android.telephony.ims.feature.MmTelFeature.MmTelCapabilities#CAPABILITY_TYPE_SMS , android.telephony.ims.feature.MmTelFeature.MmTelCapabilities#CAPABILITY_TYPE_CALL_COMPOSER , and android.telephony.ims.feature.MmTelFeature.MmTelCapabilities.CAPABILITY_TYPE_CALL_COMPOSER_BUSINESS_ONLY |
Return | |
---|---|
Boolean |
true if all queried capabilities are true, otherwise false. |