类 EaseCallKitUtils
- java.lang.Object
-
- io.agora.chat.callkit.utils.EaseCallKitUtils
-
public class EaseCallKitUtils extends java.lang.Object
-
-
字段概要
字段 修饰符和类型 字段 说明 static java.lang.StringTAGstatic java.lang.StringUPDATE_CALLINFOstatic java.lang.StringUPDATE_USERINFO
-
构造器概要
构造器 构造器 说明 EaseCallKitUtils()
-
方法概要
所有方法 静态方法 具体方法 修饰符和类型 方法 说明 static voidbring2Front(android.content.Context context)When the app is in the background, switch it to the foregroundstatic org.json.JSONObjectconvertMapToJSONObject(java.util.Map<java.lang.String,java.lang.Object> map)static intdp2px(android.content.Context context, int dp)static java.lang.StringgetCallTimeFormatString(long secondTimePassed)static java.lang.StringgetPhoneSign()Get mobile phone unique identifierstatic java.lang.StringgetRandomString(int length)Randomly generate meeting passwordstatic java.lang.StringgetRingFile()Get user ringer filestatic intgetSupportedWindowType()static java.lang.StringgetUserHeadImage(java.lang.String userId)Get user avatarstatic java.lang.StringgetUserNickName(java.lang.String userId)Get user nicknamestatic java.lang.StringgetUUID()static booleanisAppRunningForeground(android.content.Context ctx)static booleanrealizeGetToken(EaseCallKitListener listener)Determine whether the user has rewritten EaseCallKitListener中的onGenerateToken
-
-
-
方法详细资料
-
getRandomString
public static java.lang.String getRandomString(int length)
Randomly generate meeting password- 参数:
length- represents the length of the generated password string- 返回:
-
getPhoneSign
public static java.lang.String getPhoneSign()
Get mobile phone unique identifier- 返回:
-
getUUID
public static java.lang.String getUUID()
-
getUserHeadImage
public static java.lang.String getUserHeadImage(java.lang.String userId)
Get user avatar- 参数:
userId-- 返回:
-
getUserNickName
public static java.lang.String getUserNickName(java.lang.String userId)
Get user nickname- 参数:
userId-- 返回:
-
getRingFile
public static java.lang.String getRingFile()
Get user ringer file- 返回:
-
isAppRunningForeground
public static boolean isAppRunningForeground(android.content.Context ctx)
-
bring2Front
public static void bring2Front(android.content.Context context)
When the app is in the background, switch it to the foreground- 参数:
context-
-
convertMapToJSONObject
public static org.json.JSONObject convertMapToJSONObject(java.util.Map<java.lang.String,java.lang.Object> map)
-
getSupportedWindowType
public static int getSupportedWindowType()
-
realizeGetToken
public static boolean realizeGetToken(EaseCallKitListener listener)
Determine whether the user has rewritten EaseCallKitListener中的onGenerateToken- 参数:
listener-- 返回:
-
dp2px
public static int dp2px(android.content.Context context, int dp)
-
getCallTimeFormatString
public static java.lang.String getCallTimeFormatString(long secondTimePassed)
-
-