1. Tuya Android UI BizBundle

1.1. Overview

Tuya Android UI BizBundle is a vertical business bundle that contains logic modules and UI pages. It's designed to provide customers with the ability to quickly access the Tuya business module based on the Tuya Smart Home SDK.

Tuya Android BizBundle currently offered includes:

  • Mall
  • Device Configuration
  • Deivce Control
  • IPC
  • Scene
  • FAQ
  • Message Center
  • House Management
  • OTA
  • Device Details

1.2. Demo

demo

1.3. Architecture

Tuya Android UI Biz Bundle is opened in a service-oriented manner, and all function access is provided in the form of Service

image

1.3.1. Get Service

Obtain the instance which implement the service protocol provided by the BizBundle through BizCore, then call its service method to achieve the business purpose

Service+doSomeThing()BizBundleBizCore+findServiceByInterface() : id<Service>YourClass+id<Service> serviceImplBizBundle implement servcie protocolGet instance of service

1.3.2. Provide Service

Some BizBundle depend on services that are not implemented, At this time, you can provide your own class to implement the corresponding service, and register it to BizCore to improve the BizBundle functions

Service+doSomeThing()YourClass+doSomeThing()BizCore+registerService(Protocol, Class)BizBundleimplement servcie protocolRegister your service implement class or instance

results matching ""

    No results matching ""