FAQ UI BizBundle

Last Updated on : 2023-07-03 03:04:43download

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.thingclips.smart:thingsmart-bizbundle-feedback:2.0.0-cube.2'
}

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.
ThingHomeSdk.getUserInstance().queryAllBizDomains(object : IQurryDomainCallback {
	override fun onSuccess(domain: String) {
		UrlRouter.execute(UrlRouter.makeBuilder(this@MainActivity, "helpCenter"))
	}

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