Example usage for android.telecom TelecomManager EXTRA_START_CALL_WITH_VIDEO_STATE

List of usage examples for android.telecom TelecomManager EXTRA_START_CALL_WITH_VIDEO_STATE

Introduction

In this page you can find the example usage for android.telecom TelecomManager EXTRA_START_CALL_WITH_VIDEO_STATE.

Prototype

String EXTRA_START_CALL_WITH_VIDEO_STATE

To view the source code for android.telecom TelecomManager EXTRA_START_CALL_WITH_VIDEO_STATE.

Click Source Link

Document

Optional extra for android.content.Intent#ACTION_CALL containing an integer that determines the desired video state for an outgoing call.

Usage

From source file:com.mobileglobe.android.customdialer.common.CallUtil.java

/**
 * A variant of {@link #getCallIntent} for starting a video call.
 *///from  w w  w. j  a v a  2s  .  c o m
public static Intent getVideoCallIntent(String number, String callOrigin) {
    final Intent intent = new Intent(Intent.ACTION_CALL, getCallUri(number));
    intent.putExtra(TelecomManager.EXTRA_START_CALL_WITH_VIDEO_STATE, VideoProfile.STATE_BIDIRECTIONAL);
    if (!TextUtils.isEmpty(callOrigin)) {
        intent.putExtra(PhoneConstants.EXTRA_CALL_ORIGIN, callOrigin);
    }
    return intent;
}