This document is deprecated, please go to Tuya Developer Documentation Center to view the latest version: Tuya Smart Doc
1. FAQ BizBundle
1.1. Introduction
The FAQ BizBundle provides an iOS container that hosts "questions and feedback", and provides a troubleshooting and feedback channel for your app.
1.2. Integrate
Add the TuyaSmartHelpCenterBizBundle
in the project's Podfile
file and execute the pod update
command
source "https://github.com/TuyaInc/TuyaPublicSpecs.git"
source 'https://cdn.cocoapods.org/'
target 'your_target_name' do
# Add Faq BizBundle
pod 'TuyaSmartHelpCenterBizBundle', '~> 3.17.0'
end
1.3. Service Protocol
1.3.1. Service Provided By BizBundle
The FAQ BizBundle implements the TYHelpCenterProtocol
protocol to provide services. View the TYHelpCenterProtocol.h
file in the TYModuleServices
as follows:
@protocol TYHelpCenterProtocol <NSObject>
@optional
/**
* jump to HelpCenter page
**/
- (void)gotoHelpCenter;
@end
1.3.2. Service Required By BizBundle
None.
1.4. User Guidance
1.4.1. Precautions
Before using any method, be sure to confirm that the user is logged in.
When the login user changes, be sure to re-judge the FAQ availability status and re-acquire the FAQ page
1.4.2. Go To FAQ Page
Objective-C
#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()