| 12345678910111213141516171819202122232425262728293031323334353637 |
- //
- // LivingConfigModel.m
- // IDLFaceSDKDemoOC
- //
- // Created by 阿凡树 on 2017/5/23.
- // Copyright © 2017年 Baidu. All rights reserved.
- //
- #import "LivingConfigModel.h"
- @interface LivingConfigModel ()
- @end
- @implementation LivingConfigModel
- - (instancetype)init {
- if (self = [super init]) {
- _liveActionArray = [[NSMutableArray alloc] init];
- }
- return self;
- }
- + (instancetype)sharedInstance {
- static LivingConfigModel *_model = nil;
- static dispatch_once_t onceToken;
- dispatch_once(&onceToken, ^{
- _model=[[LivingConfigModel alloc] init];
- });
- return _model;
- }
- - (void)resetState {
- [_liveActionArray removeAllObjects];
- _isByOrder = false;
- _numOfLiveness = 0;
- }
- @end
|