summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAustin Kirk <askirk@umich.edu>2018-06-26 15:35:22 -0400
committerAustin Kirk <askirk@umich.edu>2018-06-26 15:35:22 -0400
commit9e7ffef65e85ee40b1f2ea66cf4ddca54ed5ae35 (patch)
tree9c73c2d9fe22dd3514a42d84d8a820f8ef189e31
parentfc55184d5d13bceb3526878a7a275c4a2fcf1228 (diff)
downloadsdl_android-feature/issue_453.tar.gz
Add developer-facing method for checking icon resumptionfeature/issue_453
-rw-r--r--sdl_android/src/main/java/com/smartdevicelink/proxy/SdlProxyALM.java18
1 files changed, 18 insertions, 0 deletions
diff --git a/sdl_android/src/main/java/com/smartdevicelink/proxy/SdlProxyALM.java b/sdl_android/src/main/java/com/smartdevicelink/proxy/SdlProxyALM.java
index a9cec4f10..5be96187c 100644
--- a/sdl_android/src/main/java/com/smartdevicelink/proxy/SdlProxyALM.java
+++ b/sdl_android/src/main/java/com/smartdevicelink/proxy/SdlProxyALM.java
@@ -1969,4 +1969,22 @@ public class SdlProxyALM extends SdlProxyBase<IProxyListenerALM> {
return _bResumeSuccess;
}
+ /**
+ * Tells developer whether or not their app icon has been resumed on core.
+ * @return boolean - true if icon was resumed, false if not
+ * @throws SdlException if proxy is disposed or app is not registered
+ */
+ public boolean getIconResumed() throws SdlException {
+ // Test if proxy has been disposed
+ if (_proxyDisposed) {
+ throw new SdlException("This object has been disposed, it is no long capable of executing methods.", SdlExceptionCause.SDL_PROXY_DISPOSED);
+ }
+
+ // Test SDL availability
+ if (!_appInterfaceRegisterd) {
+ throw new SdlException("SDL is not connected. Unable to determine if app icon was resumed.", SdlExceptionCause.SDL_UNAVAILABLE);
+ }
+ return _iconResumed;
+ }
+
}