springroll.FunctionHint Class

Generic function to act as a hint

Constructor

springroll.FunctionHint

(
  • hints
  • done
  • onStart
)
private

Parameters:

  • hints springroll.HintsPlayer

    The instance of the hints

  • done Function

    called on hint done

  • onStart Function

    Function to call should accept 2 arguments (callbacks: onComplete and onCancelled and call them when complete or cancelled

Properties

_onPlayComplete

(
  • original
)
private

Handle when the media completes

Parameters:

  • original Function

    The original callback, either complete or cancelled

destroy

()

Inherited from springroll.AbstractHint but overwritten in destroy:47

Clean-up the hint, don't use after this

play

()

Inherited from springroll.AbstractHint but overwritten in play:34

Start function hint

_hints

springroll.HintsPlayer

The reference to the hint play