BDFaceLivingConfigModel.m 770 B

12345678910111213141516171819202122232425262728293031323334353637
  1. //
  2. // BDFaceLivingConfigModel.m
  3. // FaceSDKSample_IOS
  4. //
  5. // Created by 阿凡树 on 2017/5/23.
  6. // Copyright © 2017年 Baidu. All rights reserved.
  7. //
  8. #import "BDFaceLivingConfigModel.h"
  9. @interface BDFaceLivingConfigModel ()
  10. @end
  11. @implementation BDFaceLivingConfigModel
  12. - (instancetype)init {
  13. if (self = [super init]) {
  14. _liveActionArray = [[NSMutableArray alloc] init];
  15. }
  16. return self;
  17. }
  18. + (instancetype)sharedInstance {
  19. static BDFaceLivingConfigModel *_model = nil;
  20. static dispatch_once_t onceToken;
  21. dispatch_once(&onceToken, ^{
  22. _model=[[BDFaceLivingConfigModel alloc] init];
  23. });
  24. return _model;
  25. }
  26. - (void)resetState {
  27. [_liveActionArray removeAllObjects];
  28. _isByOrder = false;
  29. _numOfLiveness = 0;
  30. }
  31. @end