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

#import <ThingModuleTabRegisterProtocol.h>

Inheritance diagram for <ThingModuleTabRegisterProtocol>:
<ThingModuleRegisterProtocol> <ThingModuleRegisterProtocol>

Instance Methods

(nullable NSArray< ThingTabItemAttribute * > *) - registModuleTabItems
 
(void) - tabBarWillAdd:withItemAttribute:
 
(BOOL) - tabBarCanSelect:withItemAttribute:
 
(BOOL) - tabBarShouldShow:withItemAttribute:
 
(void) - tabBarDidSelect:withItemAttribute:
 
(void) - tabBarDidUnselect:withItemAttribute:
 
(BOOL) - tabBarShouldSetBadge:withItemAttribute:
 
(nullable NSArray< ThingTabItemAttribute * > *) - registModuleTabItems
 
(void) - tabBarWillAdd:withItemAttribute:
 
(BOOL) - tabBarCanSelect:withItemAttribute:
 
(BOOL) - tabBarShouldShow:withItemAttribute:
 
(void) - tabBarDidSelect:withItemAttribute:
 
(void) - tabBarDidUnselect:withItemAttribute:
 
(BOOL) - tabBarShouldSetBadge:withItemAttribute:
 

Detailed Description

Definition at line 14 of file ThingModuleTabRegisterProtocol.h.

Method Documentation

◆ registModuleTabItems [1/2]

- (nullable NSArray< ThingTabItemAttribute * > *) registModuleTabItems
optional

◆ registModuleTabItems [2/2]

- (nullable NSArray< ThingTabItemAttribute * > *) registModuleTabItems
optional

◆ tabBarCanSelect:withItemAttribute: [1/2]

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

item是否允许被选中 该方法仅在defaultSelect无效时回调 如果实现此方法 请 不要 在此回调中处理业务逻辑 请 务必仅返回 YES/NO 默认根据TYTabItemAttribute.viewController判断

◆ tabBarCanSelect:withItemAttribute: [2/2]

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

item是否允许被选中 该方法仅在defaultSelect无效时回调 如果实现此方法 请 不要 在此回调中处理业务逻辑 请 务必仅返回 YES/NO 默认根据TYTabItemAttribute.viewController判断

◆ tabBarDidSelect:withItemAttribute: [1/2]

- (void) tabBarDidSelect: (nullable UIViewController *)  controller
withItemAttribute: (ThingTabItemAttribute *)  attribute 
optional

tab选中

◆ tabBarDidSelect:withItemAttribute: [2/2]

- (void) tabBarDidSelect: (nullable UIViewController *)  controller
withItemAttribute: (ThingTabItemAttribute *)  attribute 
optional

tab选中

◆ tabBarDidUnselect:withItemAttribute: [1/2]

- (void) tabBarDidUnselect: (nullable UIViewController *)  controller
withItemAttribute: (ThingTabItemAttribute *)  attribute 
optional

tab取消选中

◆ tabBarDidUnselect:withItemAttribute: [2/2]

- (void) tabBarDidUnselect: (nullable UIViewController *)  controller
withItemAttribute: (ThingTabItemAttribute *)  attribute 
optional

tab取消选中

◆ tabBarShouldSetBadge:withItemAttribute: [1/2]

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

tab是否允许设置badge

◆ tabBarShouldSetBadge:withItemAttribute: [2/2]

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

tab是否允许设置badge

◆ tabBarShouldShow:withItemAttribute: [1/2]

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

用户点击tab后,是否允许展示对应vc,每次点击均有回调 返回NO则会打断点击流程, -tabBarDidSelect:withItemAttribute: 方法将会无回调

◆ tabBarShouldShow:withItemAttribute: [2/2]

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

用户点击tab后,是否允许展示对应vc,每次点击均有回调 返回NO则会打断点击流程, -tabBarDidSelect:withItemAttribute: 方法将会无回调

◆ tabBarWillAdd:withItemAttribute: [1/2]

- (void) tabBarWillAdd: (nullable UIViewController *)  controller
withItemAttribute: (ThingTabItemAttribute *)  attribute 
optional

tab将要被添加到tabBar上

◆ tabBarWillAdd:withItemAttribute: [2/2]

- (void) tabBarWillAdd: (nullable UIViewController *)  controller
withItemAttribute: (ThingTabItemAttribute *)  attribute 
optional

tab将要被添加到tabBar上


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