Infrared Remote Control SDK Integration
1. Overview
This article mainly introduces how to integrate the infrared remote control SDK.
2. Preconditions
- Confirm completion Preparation
- 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 |
---|---|---|
virtual.ir.stb | Support | TV box |
virtual.ir.tv | Support | TV |
virtual.ir.box | Support | Box |
virtual.ir.dvd | Support | DVD |
virtual.ir.ac | Support | Air conditioner (stateful air conditioner, stateless air conditioner) |
virtual.ir.pro | Support | Projector |
virtual.ir.pa | Support | Speakers |
virtual.ir.fan | Support | Electric fan |
virtual.ir.slr | Support | SLR |
virtual.ir.light | Support | Light bulb |
virtual.ir.aircleaner | Support | Air purifier |
virtual.ir.waterheater | Support | Water heater |
virtual.ir.default | 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
None.