English
English
简体中文
Contact Us
Register
Log In
layoutIndex

FAQ UI BizBundle

Last Updated on : 2022-09-02 07:54:19download

FAQ UI BizBundle provides the Android container that hosts the FAQ and feedback service to implement troubleshooting and feedback for your apps.

Integrate with the UI BizBundle

Create a project

Integrate Smart Life App SDK for Android into your project with Android Studio and add the framework of the UI BizBundle to your project.

Configure build.gradle of module

dependencies {
	api 'com.tuya.smart:tuyasmart-bizbundle-feedback:4.2.0-22'
}

Navigate to an unresponsive URL

Follow the instructions in Integrate with Framework to get the unimplemented route and navigate to the target page.

Access the FAQ and feedback page

  • Before the call of any API method, make sure that the user has logged in to the app.
  • If the user status is changed, you must check the availability of the FAQ UI BizBundle to reload the FAQ and feedback page.
TuyaHomeSdk.getUserInstance().queryAllBizDomains(object : IQurryDomainCallback {
	override fun onSuccess(domain: String) {
		UrlRouter.execute(UrlRouter.makeBuilder(this@MainActivity, "helpCenter"))
	}

	override fun onError(code: String, error: String) {
	}
})