use of com.cometchat.pro.uikit.ui_components.calls.call_manager.CometChatStartCallActivity in project android-java-chat-push-notification-app by cometchat-pro.
the class CallUtils method startCall.
/**
* This method is used to load <code>CometChatStartCallActivity</code> which starts a call in
* seperate screen
* @param context is object of Context
* @param call is object of Call
*/
public static void startCall(Context context, Call call) {
Intent intent = new Intent(context, CometChatStartCallActivity.class);
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
intent.putExtra(UIKitConstants.IntentStrings.TYPE, call.getReceiverType());
intent.putExtra(UIKitConstants.IntentStrings.SESSION_ID, call.getSessionId());
((Activity) context).finish();
intent.putExtra(UIKitConstants.IntentStrings.IS_DEFAULT_CALL, true);
context.startActivity(intent);
}
Aggregations