Package io.rong.imkit.utils

## Class RouteUtils

- All Implemented Interfaces:

      public class RouteUtils

- - ### Nested Class Summary

    Nested Classes
    Modifier and Type | Class | Description
    --- | --- | ---
    `public enum` | `RouteUtils.RongActivityType` |

  - ### Field Summary

    Fields
    Modifier and Type | Field | Description
    --- | --- | ---
    `public final static String` | `CONVERSATION_TYPE` |
    `public final static String` | `TARGET_ID` |
    `public final static String` | `CHANNEL_ID` |
    `public final static String` | `CONVERSATION_IDENTIFIER` |
    `public final static String` | `CREATE_CHATROOM` |
    `public final static String` | `TITLE` |
    `public final static String` | `INDEX_MESSAGE_TIME` |
    `public final static String` | `CUSTOM_SERVICE_INFO` |
    `public final static String` | `FORWARD_TYPE` |
    `public final static String` | `MESSAGE_IDS` |
    `public final static String` | `MESSAGE_ID` |
    `public final static String` | `MESSAGE` |
    `public final static String` | `DISABLE_SYSTEM_EMOJI` |

  - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---
    `RouteUtils()` |

  - ### Enum Constant Summary

    Enum Constants
    Enum Constant | Description
    --- | ---

  - ### Method Summary

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

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### RouteUtils

          RouteUtils()

  - ### Method Detail

    - #### routeToConversationListActivity

           static void routeToConversationListActivity(Context context, String title)

    - #### routeToConversationActivity

           static void routeToConversationActivity(Context context, ConversationType type, String targetId)

    - #### routeToConversationActivity

           static void routeToConversationActivity(Context context, ConversationType type, String targetId, boolean disableSystemEmoji)

    - #### routeToConversationActivity

           static void routeToConversationActivity(Context context, ConversationType type, String targetId, Bundle bundle)

      启动会话页面

      Parameters:
        `context` - 上下文
        `type` - 会话类型
        `targetId` - 目标 ID
        `bundle` - 启动 activity 时 intent 里需要携带的 bundle 信息。

    - #### routeToConversationActivity

           static void routeToConversationActivity(Context context, ConversationType type, String targetId, boolean disableSystemEmoji, Bundle bundle)

      启动会话页面

      Parameters:
        `context` - 上下文
        `type` - 会话类型
        `targetId` - 目标 ID
        `disableSystemEmoji` - 是否隐藏融云自带表情
        `bundle` - 启动 activity 时 intent 里需要携带的 bundle 信息。

    - #### routeToConversationActivity

           static void routeToConversationActivity(Context context, ConversationIdentifier conversationIdentifier)

      启动会话页面

      Parameters:
        `context` - 上下文
        `conversationIdentifier` - 会话标识

    - #### routeToConversationActivity

           static void routeToConversationActivity(Context context, ConversationIdentifier conversationIdentifier, Bundle bundle)

      启动会话页面

      Parameters:
        `context` - 上下文
        `conversationIdentifier` - 会话标识
        `bundle` - 启动 activity 时 intent 里需要携带的 bundle 信息。

    - #### routeToConversationActivity

           static void routeToConversationActivity(Context context, ConversationIdentifier conversationIdentifier, boolean disableSystemEmoji, Bundle bundle)

      启动会话页面

      Parameters:
        `context` - 上下文
        `conversationIdentifier` - 会话标识
        `disableSystemEmoji` - 是否隐藏融云自带表情
        `bundle` - 启动 activity 时 intent 里需要携带的 bundle 信息。

    - #### routeToSubConversationListActivity

           static void routeToSubConversationListActivity(Context context, ConversationType type, String title)

      启动聚合会话页面

      Parameters:
        `context` - 上下文
        `type` - 聚合会话类型
        `title` - 标题

    - #### routeToMentionMemberSelectActivity

           static void routeToMentionMemberSelectActivity(Context context, String targetId, ConversationType type)

      启动 @ 功能选人页面

      Parameters:
        `context` - 上下文
        `targetId` - 目标 ID
        `type` - 会话类型

    - #### routeToWebActivity

           static void routeToWebActivity(Context context, String url)

    - #### routeToWebActivity

           static void routeToWebActivity(Context context, String url, String title)

      启动 web view 页面

      Parameters:
        `context` - 上下文
        `url` - 远端 url 地址
        `title` - 标题

    - #### routeToFilePreviewActivity

           static void routeToFilePreviewActivity(Context context, Message message, FileMessage content, int progress)

    - #### routeToForwardSelectConversationActivity

           static void routeToForwardSelectConversationActivity(Fragment fragment, ForwardType type, ArrayList<Integer> messageIds)

      启动转发时选择会话页面

      Parameters:
        `fragment` - 当前 fragment
        `type` - 转发类型。ForwardClickActions.
        `messageIds` - 转发的消息 id 列表。

    - #### routeToCombinePicturePagerActivity

           static void routeToCombinePicturePagerActivity(Context context, Message message)

      启动合并转发消息的图片展示页面

      Parameters:
        `context` - 上下文
        `message` - 合并转发时携带的原始消息

    - #### routeToCombineWebViewActivity

           static void routeToCombineWebViewActivity(Context context, int messageId, String uri, String type, String title)

      启动合并转发消息的在线展示页面

      Parameters:
        `context` - 上下文
        `messageId` - 消息 id
        `uri` - 远端 url 地址
        `title` - 标题

    - #### routeToWebFilePreviewActivity

           static void routeToWebFilePreviewActivity(Context context, String fileUrl, String fileName, String fileSize)

      启动文件在线浏览页面

      Parameters:
        `context` - 上下文
        `fileUrl` - 文件远端地址
        `fileName` - 文件名称
        `fileSize` - 文件大小

    - #### registerActivity

           static void registerActivity(RouteUtils.RongActivityType activityType, Class<out Activity> activity)

    - #### getActivity

           static Class<out Activity> getActivity(RouteUtils.RongActivityType type)