36 lines
		
	
	
		
			885 B
		
	
	
	
		
			C
		
	
	
	
		
		
			
		
	
	
			36 lines
		
	
	
		
			885 B
		
	
	
	
		
			C
		
	
	
	
|  | //
 | ||
|  | //  TASuperProperty.h
 | ||
|  | //  ThinkingSDK
 | ||
|  | //
 | ||
|  | //  Created by Yangxiongon 2022/6/10.
 | ||
|  | //
 | ||
|  | //  Methods related to static public properties of this class are not thread-safe; methods related to dynamic public properties are thread-safe.
 | ||
|  | 
 | ||
|  | #import <Foundation/Foundation.h>
 | ||
|  | 
 | ||
|  | NS_ASSUME_NONNULL_BEGIN | ||
|  | 
 | ||
|  | @interface TDSuperProperty : NSObject | ||
|  | 
 | ||
|  | #pragma mark - UNAVAILABLE
 | ||
|  | - (instancetype)init NS_UNAVAILABLE; | ||
|  | + (instancetype)new NS_UNAVAILABLE; | ||
|  | 
 | ||
|  | - (instancetype)initWithToken:(NSString *)token isLight:(BOOL)isLight; | ||
|  | 
 | ||
|  | - (void)registerSuperProperties:(NSDictionary *)properties; | ||
|  | 
 | ||
|  | - (void)unregisterSuperProperty:(NSString *)property; | ||
|  | 
 | ||
|  | - (void)clearSuperProperties; | ||
|  | 
 | ||
|  | - (NSDictionary *)currentSuperProperties; | ||
|  | 
 | ||
|  | - (void)registerDynamicSuperProperties:(NSDictionary<NSString *, id> *(^ _Nullable)(void))dynamicSuperProperties; | ||
|  | 
 | ||
|  | - (NSDictionary *)obtainDynamicSuperProperties; | ||
|  | 
 | ||
|  | @end | ||
|  | 
 | ||
|  | NS_ASSUME_NONNULL_END |