Tuya iOS Smart Life App SDK 5.15.0
<ThingModuleTabBarStyleProtocol> Protocol Reference

#import <ThingModuleTabBarStyleProtocol.h>

Inheritance diagram for <ThingModuleTabBarStyleProtocol>:

Instance Methods

(void) - tabBarDidLoad
 
(Class) - tabBarModuleForDefaultSelected
 
(NSDictionary< NSAttributedStringKey, id > *) - tabBarItemTitleAttributesForState:withNativeResult:
 
(void) - customTabBarStyleWithItemAttributes:
 
(void) - tabBarWillLoadModule:withAttributes:
 
(BOOL) - tabBarWillAdd:withItemAttribute:
 
(BOOL) - tabBarCanSelect:withItemAttribute:nativeResult:
 
(BOOL) - tabBarShouldShow:withItemAttribute:nativeResult:
 
(BOOL) - tabBarDidSelect:withItemAttribute:
 
(BOOL) - tabBarDidUnselect:withItemAttribute:
 
(BOOL) - tabBarShouldSetBadge:withItemAttribute:nativeResult:
 
(void) - tabBarDidLoad
 
(Class) - tabBarModuleForDefaultSelected
 
(NSDictionary< NSAttributedStringKey, id > *) - tabBarItemTitleAttributesForState:withNativeResult:
 
(void) - customTabBarStyleWithItemAttributes:
 
(void) - tabBarWillLoadModule:withAttributes:
 
(BOOL) - tabBarWillAdd:withItemAttribute:
 
(BOOL) - tabBarCanSelect:withItemAttribute:nativeResult:
 
(BOOL) - tabBarShouldShow:withItemAttribute:nativeResult:
 
(BOOL) - tabBarDidSelect:withItemAttribute:
 
(BOOL) - tabBarDidUnselect:withItemAttribute:
 
(BOOL) - tabBarShouldSetBadge:withItemAttribute:nativeResult:
 

Detailed Description

Definition at line 12 of file ThingModuleTabBarStyleProtocol.h.

Method Documentation

◆ customTabBarStyleWithItemAttributes: [1/2]

- (void) customTabBarStyleWithItemAttributes: (NSMutableArray< ThingTabItemAttribute * > *)  attrArr
optional

◆ customTabBarStyleWithItemAttributes: [2/2]

- (void) customTabBarStyleWithItemAttributes: (NSMutableArray< ThingTabItemAttribute * > *)  attrArr
optional

◆ tabBarCanSelect:withItemAttribute:nativeResult: [1/2]

- (BOOL) tabBarCanSelect: (nullable UIViewController *)  controller
withItemAttribute: (ThingTabItemAttribute *)  attribute
nativeResult: (BOOL)  nativeResult 
optional

item是否允许被选中 该方法仅在defaultSelect无效时回调 如果实现此方法 请 不要 在此回调中处理业务逻辑 请 务必仅返回 YES/NO style中此方法优先级高于native

◆ tabBarCanSelect:withItemAttribute:nativeResult: [2/2]

- (BOOL) tabBarCanSelect: (nullable UIViewController *)  controller
withItemAttribute: (ThingTabItemAttribute *)  attribute
nativeResult: (BOOL)  nativeResult 
optional

item是否允许被选中 该方法仅在defaultSelect无效时回调 如果实现此方法 请 不要 在此回调中处理业务逻辑 请 务必仅返回 YES/NO style中此方法优先级高于native

◆ tabBarDidLoad [1/2]

- (void) tabBarDidLoad
optional

◆ tabBarDidLoad [2/2]

- (void) tabBarDidLoad
optional

◆ tabBarDidSelect:withItemAttribute: [1/2]

- (BOOL) tabBarDidSelect: (nullable UIViewController *)  controller
withItemAttribute: (ThingTabItemAttribute *)  attribute 
optional
Returns
事件是否继续向原生代码实现传递

◆ tabBarDidSelect:withItemAttribute: [2/2]

- (BOOL) tabBarDidSelect: (nullable UIViewController *)  controller
withItemAttribute: (ThingTabItemAttribute *)  attribute 
optional
Returns
事件是否继续向原生代码实现传递

◆ tabBarDidUnselect:withItemAttribute: [1/2]

- (BOOL) tabBarDidUnselect: (nullable UIViewController *)  controller
withItemAttribute: (ThingTabItemAttribute *)  attribute 
optional
Returns
事件是否继续向原生代码实现传递

◆ tabBarDidUnselect:withItemAttribute: [2/2]

- (BOOL) tabBarDidUnselect: (nullable UIViewController *)  controller
withItemAttribute: (ThingTabItemAttribute *)  attribute 
optional
Returns
事件是否继续向原生代码实现传递

◆ tabBarItemTitleAttributesForState:withNativeResult: [1/2]

- (NSDictionary< NSAttributedStringKey, id > *) tabBarItemTitleAttributesForState: (UIControlState)  state
withNativeResult: (NSDictionary< NSAttributedStringKey, id > *)  nativeResult 
optional

◆ tabBarItemTitleAttributesForState:withNativeResult: [2/2]

- (NSDictionary< NSAttributedStringKey, id > *) tabBarItemTitleAttributesForState: (UIControlState)  state
withNativeResult: (NSDictionary< NSAttributedStringKey, id > *)  nativeResult 
optional

◆ tabBarModuleForDefaultSelected [1/2]

- (Class) tabBarModuleForDefaultSelected
optional

◆ tabBarModuleForDefaultSelected [2/2]

- (Class) tabBarModuleForDefaultSelected
optional

◆ tabBarShouldSetBadge:withItemAttribute:nativeResult: [1/2]

- (BOOL) tabBarShouldSetBadge: (nullable NSString *)  badge
withItemAttribute: (ThingTabItemAttribute *)  attribute
nativeResult: (BOOL)  nativeResult 
optional

是否允许设置badge

◆ tabBarShouldSetBadge:withItemAttribute:nativeResult: [2/2]

- (BOOL) tabBarShouldSetBadge: (nullable NSString *)  badge
withItemAttribute: (ThingTabItemAttribute *)  attribute
nativeResult: (BOOL)  nativeResult 
optional

是否允许设置badge

◆ tabBarShouldShow:withItemAttribute:nativeResult: [1/2]

- (BOOL) tabBarShouldShow: (nullable UIViewController *)  controller
withItemAttribute: (ThingTabItemAttribute *)  attribute
nativeResult: (BOOL)  nativeResult 
optional

用户点击tab后,是否允许展示对应vc

◆ tabBarShouldShow:withItemAttribute:nativeResult: [2/2]

- (BOOL) tabBarShouldShow: (nullable UIViewController *)  controller
withItemAttribute: (ThingTabItemAttribute *)  attribute
nativeResult: (BOOL)  nativeResult 
optional

用户点击tab后,是否允许展示对应vc

◆ tabBarWillAdd:withItemAttribute: [1/2]

- (BOOL) tabBarWillAdd: (nullable UIViewController *)  controller
withItemAttribute: (nonnull ThingTabItemAttribute *)  attribute 
optional
Returns
事件是否继续向原生代码实现传递

◆ tabBarWillAdd:withItemAttribute: [2/2]

- (BOOL) tabBarWillAdd: (nullable UIViewController *)  controller
withItemAttribute: (nonnull ThingTabItemAttribute *)  attribute 
optional
Returns
事件是否继续向原生代码实现传递

◆ tabBarWillLoadModule:withAttributes: [1/2]

- (void) tabBarWillLoadModule: (Class)  moduleCls
withAttributes: (NSMutableArray< ThingTabItemAttribute * > *)  attrArr 
optional

◆ tabBarWillLoadModule:withAttributes: [2/2]

- (void) tabBarWillLoadModule: (Class)  moduleCls
withAttributes: (NSMutableArray< ThingTabItemAttribute * > *)  attrArr 
optional

The documentation for this protocol was generated from the following files: