Infrared Remote Control SDK Integration

1. Overview

This article mainly introduces how to integrate the infrared remote control SDK.

2. Preconditions

  1. Confirm completion Preparation
  2. Confirm the completion of Environment Build

3. Features

3.1 Main Function

The infrared remote control SDK is mainly used with the device control SDK to provide functions such as infrared learning, infrared device matching, infrared virtual Sub-Device details page, and infrared virtual Sub-Device setting page.

3.2 SDK Size

Dependent library Description Size
Infrared remote control SDK Support infrared remote control function, support 13 virtual Sub-Device 9MB
Other third-party open source components Components necessary for the SDK to run 19MB
Total - 28MB

Note: 28MB is the maximum increment of the integrated SDK, that is, when the dependencies of the third-party app and the third-party dependencies of the SDK have no intersection. Normally, it will be less than this value.

3.3 Support infrared virtual Sub-Device list

Device model value Whether to support Description Support TV box Support TV Support Box Support DVD Support Air conditioner (stateful air conditioner, stateless air conditioner) Support Projector Support Speakers Support Electric fan Support SLR Support Light bulb Support Air purifier Support Water heater Support Custom remote

4. Integrated

4.1 Open the Android Studio project

4.2 Edit build.gradle in the app directory

dependencies {
    implementation 'com.lumi.external:core:2.1.9'
    //Device Control SDK
    implementation 'com.lumi.sdk:rmui:3.2.1'
    //Infrared remote control SDK
    implementation 'com.lumi.sdk:deviceIr:3.2.2'

4.3 Initialization

See Environment Construction - Unified Initialization

5. Code Confusion


Copyright © 2023 Lumi United Technology Co., Ltd. all right reserved,powered by GitbookFile Modify: 2024-04-24 15:18:24

results matching ""

    No results matching ""