From 6e630ca50485654fea0f127eeafe9a7ade033e10 Mon Sep 17 00:00:00 2001 From: strawmanbobi Date: Sun, 17 Feb 2019 11:28:26 +0800 Subject: [PATCH] completed jni example with wind direction query --- .../decodesdk/src/net/irext/decode/sdk/IRDecode.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/jni-example/decodesdk/src/net/irext/decode/sdk/IRDecode.java b/jni-example/decodesdk/src/net/irext/decode/sdk/IRDecode.java index d94e613..1bfb76e 100644 --- a/jni-example/decodesdk/src/net/irext/decode/sdk/IRDecode.java +++ b/jni-example/decodesdk/src/net/irext/decode/sdk/IRDecode.java @@ -37,6 +37,8 @@ public class IRDecode { private native int irACGetSupportedSwing(int acMode); + private native int irACGetSupportedWindDirection(int acMode); + private static IRDecode mInstance; public static IRDecode getInstance() { @@ -114,6 +116,11 @@ public class IRDecode { return retSupportedSwing; } + public int getACSupportedWindDirection(int acMode) { + // how many directions supported by specific AC + return irACGetSupportedWindDirection(acMode); + } + public static void main(String[] args) { int ret = 0; System.out.println("This is IR decode test");