diff options
author | Bilal <bilal@Bilals-MBP.localdomain> | 2018-09-05 16:02:31 -0400 |
---|---|---|
committer | Bilal <bilal@Bilals-MBP.localdomain> | 2018-09-05 16:02:31 -0400 |
commit | 2c782368c9704788240627fb4c020c277a9d4134 (patch) | |
tree | 2379789901cfeead3a08ed581061050aee7effc3 | |
parent | 6ded3f8b767dad572d225795c1eb71bcf35ab626 (diff) | |
download | sdl_android-feature/issue_782_addOnRPCNotificationListener.tar.gz |
Add addOnRPCNotificationListener method to SdlManagerfeature/issue_782_addOnRPCNotificationListener
-rw-r--r-- | sdl_android/src/main/java/com/smartdevicelink/api/SdlManager.java | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/sdl_android/src/main/java/com/smartdevicelink/api/SdlManager.java b/sdl_android/src/main/java/com/smartdevicelink/api/SdlManager.java index 5fe544ae1..badefe779 100644 --- a/sdl_android/src/main/java/com/smartdevicelink/api/SdlManager.java +++ b/sdl_android/src/main/java/com/smartdevicelink/api/SdlManager.java @@ -546,19 +546,19 @@ public class SdlManager{ } /** - * Add an OnRPCNotificationListener for HMI status notifications - * @param listener listener that will be called when the HMI status changes + * Add an OnRPCNotificationListener + * @param listener listener that will be called when a notifications is received */ - public void addOnHmiStatusListener(OnRPCNotificationListener listener){ - proxy.addOnRPCNotificationListener(FunctionID.ON_HMI_STATUS,listener); + public void addOnRPCNotificationListener(FunctionID notificationId, OnRPCNotificationListener listener){ + proxy.addOnRPCNotificationListener(notificationId,listener); } /** - * Remove an OnRPCNotificationListener for HMI status notifications - * @param listener listener that was previously added for the HMI status notifications + * Remove an OnRPCNotificationListener + * @param listener listener that was previously added */ - public void removeOnHmiStatusListener(OnRPCNotificationListener listener){ - proxy.removeOnRPCNotificationListener(FunctionID.ON_HMI_STATUS, listener); + public void removeOnRPCNotificationListener(FunctionID notificationId, OnRPCNotificationListener listener){ + proxy.removeOnRPCNotificationListener(notificationId, listener); } // LIFECYCLE / OTHER |