FAQ UI BizBundle

Last Updated on : 2023-06-28 03:36:46Copy for LLMView as MarkdownDownload PDF

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 SmartLife 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-33'
}

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) {
	}
})