MmTelFeature.MmTelCapabilities


public static class MmTelFeature.MmTelCapabilities
extends Object

java.lang.Object
   ↳ 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

int CAPABILITY_TYPE_CALL_COMPOSER

This MmTelFeature supports Call Composer (section 2.4 of RC.20).

int CAPABILITY_TYPE_CALL_COMPOSER_BUSINESS_ONLY

This MmTelFeature supports Business-only Call Composer.

int CAPABILITY_TYPE_SMS

This MmTelFeature supports SMS (IR.92)

int CAPABILITY_TYPE_UT

This MmTelFeature supports XCAP over Ut for supplementary services.

int CAPABILITY_TYPE_VIDEO

This MmTelFeature supports Video (IR.94)

int CAPABILITY_TYPE_VOICE

This MmTelFeature supports Voice calling (IR.92)

Public methods

final boolean isCapable(int capabilities)

Inherited methods

Constants

CAPABILITY_TYPE_CALL_COMPOSER

Added in API level 31
public static final int CAPABILITY_TYPE_CALL_COMPOSER

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

Constant Value: 16 (0x00000010)

CAPABILITY_TYPE_CALL_COMPOSER_BUSINESS_ONLY

Added in API level 35
public static final int CAPABILITY_TYPE_CALL_COMPOSER_BUSINESS_ONLY

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.

Constant Value: 32 (0x00000020)

CAPABILITY_TYPE_SMS

Added in API level 30
public static final int CAPABILITY_TYPE_SMS

This MmTelFeature supports SMS (IR.92)

Constant Value: 8 (0x00000008)

CAPABILITY_TYPE_UT

Added in API level 30
public static final int CAPABILITY_TYPE_UT

This MmTelFeature supports XCAP over Ut for supplementary services. (IR.92)

Constant Value: 4 (0x00000004)

CAPABILITY_TYPE_VIDEO

Added in API level 30
public static final int CAPABILITY_TYPE_VIDEO

This MmTelFeature supports Video (IR.94)

Constant Value: 2 (0x00000002)

CAPABILITY_TYPE_VOICE

Added in API level 30
public static final int CAPABILITY_TYPE_VOICE

This MmTelFeature supports Voice calling (IR.92)

Constant Value: 1 (0x00000001)

Public methods

isCapable

Added in API level 31
public final boolean isCapable (int capabilities)

Parameters
capabilities int: a bitmask of one or more capabilities. Value is either 0 or a combination of CAPABILITY_TYPE_VOICE, CAPABILITY_TYPE_VIDEO, CAPABILITY_TYPE_UT, CAPABILITY_TYPE_SMS, CAPABILITY_TYPE_CALL_COMPOSER, and CAPABILITY_TYPE_CALL_COMPOSER_BUSINESS_ONLY

Returns
boolean true if all queried capabilities are true, otherwise false.