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'
end

1.3. Service Protocol

1.3.1. Service Provided By BizBundle

The FAQ BizBundle implements the TYHelpCenteProtocol protocol to provide services. View the TYHelpCenteProtocol.h file in the TYModuleServices as follows:

@protocol TYHelpCenteProtocol <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

  1. Before using any method, be sure to confirm that the user is logged in.

  2. 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/TYHelpCenteProtocol.h>

id<TYHelpCenteProtocol> impl = [[TuyaSmartBizCore sharedInstance] serviceOfProtocol:@protocol(TYHelpCenteProtocol)];

[impl gotoHelpCenter];

Swift

let impl = TuyaSmartBizCore.sharedInstance().service(of: TYHelpCenteProtocol.self) as? TYHelpCenteProtocol

impl?.gotoHelpCenter()

results matching ""

    No results matching ""