# RouteUtils

public class RouteUtils

## Constructors

RouteUtils
Link copied to clipboard
public void RouteUtils()

## Types

RongActivityType
Link copied to clipboard
public enum RongActivityType

## Properties

CHANNEL_ID
Link copied to clipboard
public final static String CHANNEL_ID
CONVERSATION_IDENTIFIER
Link copied to clipboard
public final static String CONVERSATION_IDENTIFIER
CONVERSATION_TYPE
Link copied to clipboard
public final static String CONVERSATION_TYPE
CREATE_CHATROOM
Link copied to clipboard
public final static String CREATE_CHATROOM
CUSTOM_SERVICE_INFO
Link copied to clipboard
public final static String CUSTOM_SERVICE_INFO
DISABLE_SYSTEM_EMOJI
Link copied to clipboard
public final static String DISABLE_SYSTEM_EMOJI
FORWARD_TYPE
Link copied to clipboard
public final static String FORWARD_TYPE
INDEX_MESSAGE_TIME
Link copied to clipboard
public final static String INDEX_MESSAGE_TIME
MESSAGE
Link copied to clipboard
public final static String MESSAGE
MESSAGE_ID
Link copied to clipboard
public final static String MESSAGE_ID
MESSAGE_IDS
Link copied to clipboard
public final static String MESSAGE_IDS
TARGET_ID
Link copied to clipboard
public final static String TARGET_ID
TITLE
Link copied to clipboard
public final static String TITLE

## Functions

getActivity
Link copied to clipboard
public static Class<? extends Activity> getActivity(RouteUtils.RongActivityType type)
registerActivity
Link copied to clipboard
public static void registerActivity(RouteUtils.RongActivityType activityType, Class<? extends Activity> activity)
routeToCombinePicturePagerActivity
Link copied to clipboard
public static void routeToCombinePicturePagerActivity(Context context, Message message)
启动合并转发消息的图片展示页面
routeToCombineWebViewActivity
Link copied to clipboard
public static void routeToCombineWebViewActivity(Context context, int messageId, String uri, String type, String title)
启动合并转发消息的在线展示页面
routeToConversationActivity
Link copied to clipboard
public static void routeToConversationActivity(Context context, ConversationIdentifier conversationIdentifier)
public static void routeToConversationActivity(Context context, ConversationIdentifier conversationIdentifier, Bundle bundle)
public static void routeToConversationActivity(Context context, ConversationType type, String targetId, Bundle bundle)
public static void routeToConversationActivity(Context context, ConversationIdentifier conversationIdentifier, boolean disableSystemEmoji, Bundle bundle)
public static void routeToConversationActivity(Context context, ConversationType type, String targetId, boolean disableSystemEmoji, Bundle bundle)
启动会话页面
public static void routeToConversationActivity(Context context, ConversationType type, String targetId)
public static void routeToConversationActivity(Context context, ConversationType type, String targetId, boolean disableSystemEmoji)
routeToConversationListActivity
Link copied to clipboard
public static void routeToConversationListActivity(Context context, String title)
routeToFilePreviewActivity
Link copied to clipboard
public static void routeToFilePreviewActivity(Context context, Message message, FileMessage content, int progress)
routeToForwardSelectConversationActivity
Link copied to clipboard
public static void routeToForwardSelectConversationActivity(Fragment fragment, ForwardType type, ArrayList<Integer> messageIds)
启动转发时选择会话页面
routeToMentionMemberSelectActivity
Link copied to clipboard
public static void routeToMentionMemberSelectActivity(Context context, String targetId, ConversationType type)
启动 @ 功能选人页面
routeToSubConversationListActivity
Link copied to clipboard
public static void routeToSubConversationListActivity(Context context, ConversationType type, String title)
启动聚合会话页面
routeToWebActivity
Link copied to clipboard
public static void routeToWebActivity(Context context, String url)
public static void routeToWebActivity(Context context, String url, String title)
启动 web view 页面
routeToWebFilePreviewActivity
Link copied to clipboard
public static void routeToWebFilePreviewActivity(Context context, String fileUrl, String fileName, String fileSize)
启动文件在线浏览页面