埋点事件参数构建器

用于构建埋点事件参数,提供链式调用方式设置各项参数

Constructors

Properties

_type: JRTCTrackingActionType = JRTCTrackingActionType.EVENT

事件类型

_result: boolean = true

事件结果

_contentMap: HashMap<string, string>

自定义内容映射

Methods

  • 设置行为诊断事件结果

    Parameters

    • result: boolean

      事件结果

    Returns JRTCTrackingParamBuilder

    当前构建器实例,用于链式调用

    当事件类型为 ACTION 时有效,默认为 true

  • 设置错误码和错误原因描述

    Parameters

    • errorCode: string

      错误码

    • errorDesc: string

      错误描述

    Returns JRTCTrackingParamBuilder

    当前构建器实例,用于链式调用

  • 添加自定义信息

    Parameters

    • key: string

      自定义信息的键

    • value: string

      自定义信息的值

    Returns JRTCTrackingParamBuilder

    当前构建器实例,用于链式调用