need to check action type

This commit is contained in:
Kevin G Christiano 2021-06-08 15:18:47 -04:00
parent e331c4299e
commit 00dc4c2a47

View File

@ -52,6 +52,7 @@ public class PagePlayAudioBehavior: PageCustomActionHandlerBehavior {
// Either play or pause
public func handleAction(type actionType: String?, information: [AnyHashable: Any]?, additionalData: [AnyHashable: Any]?) -> Bool {
guard actionType == "playAudio" else { return false }
// TODO: Impose Activity Indicator.
// Update the model. play -> pause OR pause -> play