| 类名 | 类描述 |
|---|---|
| VHallTimerObject | 计时器类 |
| 属性 | 属性描述 |
|---|---|
| delegate | 代理 |
| 方法 | 方法描述 |
|---|---|
| requestInteractsTimerInfoSuccess | 查询计时器进度 |
| 方法 | 方法描述 |
|---|---|
| vhTimerStartToDuration | 开始计时器 |
| vhTimerEnd | 结束计时器 |
| vhTimerPause | 暂停计时器 |
| vhTimerResumeToDuration | 恢复计时器 |
| vhTimerResetToDuration | 重置计时器 |
+ (void)requestInteractsTimerInfoSuccess:(void(^)(VHallTimerObjectModel *timerModel))success
fail:(void(^)(NSError *error))fail;| 参数名称 | 是否必须 | 示例 | 备注 |
|---|---|---|---|
| timerModel | 接口请求成功的返回参数 | 计时器详情 |
| 参数名称 | 备注 |
|---|---|
| duration | 总时间 秒 |
| remain_time | 剩余时间 秒 |
| status | 4=暂停 |
| is_all_show | 是否所有人可见 |
| is_timeout | 是否允许超时 |
[VHallTimerObject requestInteractsTimerInfoSuccess:^(VHallTimerObjectModel *timerModel) {
NSLog(@"当前计时器 时长:%ld === 剩余时间:%ld === 是否全部显示:%@ === 是否超时:%@",timerModel.duration,timerModel.remain_time,timerModel.is_all_show ? @"是" : @"否",timerModel.is_timeout ? @"是" : @"否");
} fail:^(NSError *error) {
}];- (void)vhTimerStartToDuration:(NSInteger)duration
is_all_show:(BOOL)is_all_show
is_timeout:(BOOL)is_timeout;| 参数名称 | 备注 |
|---|---|
| duration | 计时时间(单位秒) |
| is_all_show | 是否所有人可见 |
| is_timeout | 是否可超时 设置可超时后,倒计时结束,变倒计时为从 00:00 开始的正向计时,记录超时时间 |
- (void)vhTimerEnd;- (void)vhTimerPause;- (void)vhTimerResumeToDuration:(NSInteger)duration
remain_time:(NSInteger)remain_time
is_all_show:(BOOL)is_all_show
is_timeout:(BOOL)is_timeout;| 参数名称 | 备注 |
|---|---|
| duration | 计时时间(单位秒) |
| remain_time | 剩余时间(单位秒) |
| is_all_show | 是否所有人可见 |
| is_timeout | 是否可超时 设置可超时后,倒计时结束,变倒计时为从 00:00 开始的正向计时,记录超时时间 |
- (void)vhTimerResetToDuration:(NSInteger)duration
is_all_show:(BOOL)is_all_show
is_timeout:(BOOL)is_timeout;| 参数名称 | 备注 |
|---|---|
| duration | 计时时间(单位秒) |
| is_all_show | 是否所有人可见 |
| is_timeout | 是否可超时 设置可超时后,倒计时结束,变倒计时为从 00:00 开始的正向计时,记录超时时间 |