need to check action type
This commit is contained in:
parent
e331c4299e
commit
00dc4c2a47
@ -52,6 +52,7 @@ public class PagePlayAudioBehavior: PageCustomActionHandlerBehavior {
|
|||||||
// Either play or pause
|
// Either play or pause
|
||||||
public func handleAction(type actionType: String?, information: [AnyHashable: Any]?, additionalData: [AnyHashable: Any]?) -> Bool {
|
public func handleAction(type actionType: String?, information: [AnyHashable: Any]?, additionalData: [AnyHashable: Any]?) -> Bool {
|
||||||
|
|
||||||
|
guard actionType == "playAudio" else { return false }
|
||||||
// TODO: Impose Activity Indicator.
|
// TODO: Impose Activity Indicator.
|
||||||
|
|
||||||
// Update the model. play -> pause OR pause -> play
|
// Update the model. play -> pause OR pause -> play
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user