Last Updated on : 2024-11-18 11:32:43
FAQ UI BizBundle provides the iOS container that hosts the FAQ and feedback service to implement troubleshooting and feedback for your apps.
Add the components of the FAQ UI BizBundle to the Podfile
and run the command pod update
.
source "https://github.com/tuya/tuya-pod-specs"
source 'https://cdn.cocoapods.org/'
platform :ios, '11.0'
target 'your_target_name' do
# Adds the UI BizBundle.
pod 'TuyaSmartHelpCenterBizBundle'
end
The UI BizBundle relies on the implementation of the protocol TYHelpCenterProtocol
to provide services. You can view the file TYPanelProtocol.h
in the component TYModuleServices
.
@protocol TYHelpCenterProtocol <NSObject>
@optional
/**
* Navigates to the FAQ and feedback page.
**/
- (void)gotoHelpCenter;
@end
None.
ObjC:
#import <TuyaSmartBizCore/TuyaSmartBizCore.h>
#import <TYModuleServices/TYHelpCenterProtocol.h>
id<TYHelpCenterProtocol> impl = [[TuyaSmartBizCore sharedInstance] serviceOfProtocol:@protocol(TYHelpCenterProtocol)];
[impl gotoHelpCenter];
Swift:
let impl = TuyaSmartBizCore.sharedInstance().service(of: TYHelpCenterProtocol.self) as? TYHelpCenterProtocol
impl?.gotoHelpCenter()
Is this page helpful?
YesFeedbackIs this page helpful?
YesFeedback