HSKActionDelegate

public protocol HSKActionDelegate : AnyObject

A protocol used to listen for HSKAction end events.

After implementing the protocol, assign HSKAction.delegate to be notified for end events.

  • A callback for when an HSKAction ends.

    Declaration

    Swift

    func actionDidEnd(_ action: HSKAction, finished: Bool)

    Parameters

    action

    The action that ended.

    finished

    A flag that specifies wether the action successfully ran to completion or was interupted or otherwise failed to run.