Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

import android.telecom.VideoProfile;

public class Main {
    /**
     * Converts the call type to string
     */
    public static String callTypeToString(int callType) {
        switch (callType) {
        case VideoProfile.STATE_BIDIRECTIONAL:
            return "VT";
        case VideoProfile.STATE_TX_ENABLED:
            return "VT_TX";
        case VideoProfile.STATE_RX_ENABLED:
            return "VT_RX";
        }
        return "";
    }
}