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_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_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 android.telephony.ims.feature.MmTelFeature.MmTelCapabilities.CAPABILITY_TYPE_CALL_COMPOSER_BUSINESS_ONLY

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