TapAuthConfig.h 983 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. //
  2. // TapAuthConfig.h
  3. // TapCommonSDK
  4. //
  5. // Created by 黄驿峰 on 2022/2/7.
  6. //
  7. #import <Foundation/Foundation.h>
  8. typedef NS_ENUM (NSInteger, TapAuthRegionType) {
  9. TapAuthRegionTypeCN,
  10. TapAuthRegionTypeIO
  11. };
  12. NS_ASSUME_NONNULL_BEGIN
  13. @interface TapAuthConfig : NSObject
  14. @property (nonatomic, strong, readonly) NSString * source;
  15. @property (nonatomic, strong, readonly) NSString * clientID;
  16. @property (nonatomic, assign, readonly) TapAuthRegionType regionType;
  17. /// Whether it is rounded. The default value is rounded
  18. @property (nonatomic, assign) BOOL roundCorner;
  19. @property (nonatomic, strong, readonly) NSString * TapTapAppScheme;
  20. @property (nonatomic, strong, readonly) NSString * mainUrl;
  21. + (instancetype)configWithSource:(NSString *)source
  22. clientID:(NSString *)clientID
  23. regionType:(TapAuthRegionType)regionType;
  24. + (instancetype)new NS_UNAVAILABLE;
  25. - (instancetype)init NS_UNAVAILABLE;
  26. @end
  27. NS_ASSUME_NONNULL_END