From ae1af38e6d36bf78be6724104332c0cbf25f489c Mon Sep 17 00:00:00 2001 From: Julian Kast Date: Tue, 23 Jun 2020 17:41:31 -0400 Subject: Moved OnButtonListener folder and created a symlink for android --- .../smartdevicelink/managers/OnButtonListener.java | 31 +++++++++++++++++++++ .../smartdevicelink/managers/OnButtonListener.java | 32 +--------------------- 2 files changed, 32 insertions(+), 31 deletions(-) create mode 100644 base/src/main/java/com/smartdevicelink/managers/OnButtonListener.java mode change 100644 => 120000 baseAndroid/src/main/java/com/smartdevicelink/managers/OnButtonListener.java diff --git a/base/src/main/java/com/smartdevicelink/managers/OnButtonListener.java b/base/src/main/java/com/smartdevicelink/managers/OnButtonListener.java new file mode 100644 index 000000000..0c8410ebd --- /dev/null +++ b/base/src/main/java/com/smartdevicelink/managers/OnButtonListener.java @@ -0,0 +1,31 @@ +package com.smartdevicelink.managers; + +import com.smartdevicelink.proxy.rpc.OnButtonEvent; +import com.smartdevicelink.proxy.rpc.OnButtonPress; +import com.smartdevicelink.proxy.rpc.enums.ButtonName; + +/** + * OnButtonListener is a listener used for notifying when events have happened with SubscribeButtons + */ +public interface OnButtonListener { + + /** + * Returns when a Subscribed button is pressed + * @param buttonName - Name of Button + * @param buttonPress - OnButtonPress + */ + void onPress(ButtonName buttonName, OnButtonPress buttonPress); + + /** + * Returns when a Subscribed button Event has occurred + * @param buttonName - Name of Button + * @param buttonEvent - OnButtonEvent + */ + void onEvent(ButtonName buttonName, OnButtonEvent buttonEvent); + + /** + * Returns when there is an error with subscribing to button + * @param info - Error info + */ + void onError(String info); +} diff --git a/baseAndroid/src/main/java/com/smartdevicelink/managers/OnButtonListener.java b/baseAndroid/src/main/java/com/smartdevicelink/managers/OnButtonListener.java deleted file mode 100644 index 0c8410ebd..000000000 --- a/baseAndroid/src/main/java/com/smartdevicelink/managers/OnButtonListener.java +++ /dev/null @@ -1,31 +0,0 @@ -package com.smartdevicelink.managers; - -import com.smartdevicelink.proxy.rpc.OnButtonEvent; -import com.smartdevicelink.proxy.rpc.OnButtonPress; -import com.smartdevicelink.proxy.rpc.enums.ButtonName; - -/** - * OnButtonListener is a listener used for notifying when events have happened with SubscribeButtons - */ -public interface OnButtonListener { - - /** - * Returns when a Subscribed button is pressed - * @param buttonName - Name of Button - * @param buttonPress - OnButtonPress - */ - void onPress(ButtonName buttonName, OnButtonPress buttonPress); - - /** - * Returns when a Subscribed button Event has occurred - * @param buttonName - Name of Button - * @param buttonEvent - OnButtonEvent - */ - void onEvent(ButtonName buttonName, OnButtonEvent buttonEvent); - - /** - * Returns when there is an error with subscribing to button - * @param info - Error info - */ - void onError(String info); -} diff --git a/baseAndroid/src/main/java/com/smartdevicelink/managers/OnButtonListener.java b/baseAndroid/src/main/java/com/smartdevicelink/managers/OnButtonListener.java new file mode 120000 index 000000000..71965c9db --- /dev/null +++ b/baseAndroid/src/main/java/com/smartdevicelink/managers/OnButtonListener.java @@ -0,0 +1 @@ +/Users/juliankast/AndroidStudioProjects/sdl_java_suite/base/src/main/java/com/smartdevicelink/managers/OnButtonListener.java \ No newline at end of file -- cgit v1.2.1