EMGlobalVariables.m 602 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. //
  2. // EMGlobalVariables.m
  3. // ChatDemo-UI3.0
  4. //
  5. // Created by XieYajie on 2018/12/19.
  6. // Copyright © 2018 XieYajie. All rights reserved.
  7. //
  8. #import "EMGlobalVariables.h"
  9. BOOL gIsInitializedSDK = NO;
  10. BOOL gIsCalling = NO;
  11. static EMGlobalVariables *shared = nil;
  12. @implementation EMGlobalVariables
  13. + (instancetype)shareGlobal
  14. {
  15. static dispatch_once_t onceToken;
  16. dispatch_once(&onceToken, ^{
  17. shared = [[EMGlobalVariables alloc] init];
  18. });
  19. return shared;
  20. }
  21. - (instancetype)init
  22. {
  23. self = [super init];
  24. if (self) {
  25. //
  26. }
  27. return self;
  28. }
  29. @end