SCStatistics class

Constructors

SCStatistics()
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
isInitialize bool
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

accessPage(SCAccessPageModel model) Future<bool>
进入或退出页面 action 页面动作
accessSource(SCAccessSourceModel model) Future<bool>
资源访问 action 页面动作
appStart(String channel) Future<bool>
app启动 channel – 渠道名称 : huawei、baidu、xiaomi ios 等
appStop(int startTime, int timeLength) Future<bool>
app退出 startTime 启动时间,时间戳 单位秒 timeLength 访问时长
collect({required SCSourceModel source, required SourceType sourceType, required bool isCollect}) Future<bool>
收藏 isCollect 收藏为true,取消收藏为false
comment({required SCSourceModel source, required String content, required SourceType sourceType}) Future<bool>
评论 content 评论内容
forward({required SCSourceModel source, required ShareType shareType, required SourceType sourceType}) Future<bool>
转发 shareType 分享类型
livePlay(SCSourceModel source, int heartbeatLength) Future<bool>
活动直播 播放心跳 heartbeatLength 心跳时间,第一次开启直播统计直播事件时心跳值为0,之后每次调用值为60;即每隔60秒上传一次直播日志
login(String userId, LoginType operateType) Future<bool>
用户登录或退出 userId 用户名(也可以是手机号) operateType // 1登录,2退出
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
report(SCReportModel source) Future<bool>
发布爆料
搜索 content 搜索内容
setNetType(String netType) Future<bool>
设置网络状态 netType 2G、3G、4G、5G、WiFi
setup(SCInitialOptions options) Future<bool>
app 启动后初始化调用
setUser(SCUserInfoModel user) Future<bool>
设置用户信息
thumbsUp({required SCSourceModel source, required bool isStar, required SourceType sourceType}) Future<bool>
点赞 isStar 是否点赞. 点赞为true,取消点赞为false
toString() String
A string representation of this object.
inherited
tvPlay({required SCSourceModel source, required int heartbeatLength, required LiveType liveType}) Future<bool>
电视频道 播放心跳 仅支持 android heartbeatLength 心跳时间,第一次开启直播统计直播事件时心跳值为0,之后每次调用值为60;即每隔60秒上传一次直播日志
videoPlay({required SCSourceModel source, required int contentLength, required bool isComplete}) Future<bool>
新闻 视频播放 contentLength 视频时长(无时长可传0) isComplete 是否播放完

Operators

operator ==(Object other) bool
The equality operator.
inherited