Class manualDynamicResponseChecklistItem

Inherits from the manualChecklistItem class and provides a dynamic key for the response sound.

It uses a callback to get the actual key for the response sound.

See also:

Info:

  • Copyright: 2022 Patrick Lang
  • Author: Patrick Lang

Methods

manualDynamicResponseChecklistItem:new (challengeText, responseText, challengeKey, responseKeyFunction) Creates a checklist item, which needs to be set to completed manually.
manualDynamicResponseChecklistItem:getResponseKey () Gets the key of the response sound.


Methods

manualDynamicResponseChecklistItem:new (challengeText, responseText, challengeKey, responseKeyFunction)
Creates a checklist item, which needs to be set to completed manually.

Parameters:

  • challengeText string The challenge text of the checklist item.
  • responseText string The response text of the checklist item.
  • challengeKey string The key of the challenge sound.
  • responseKeyFunction func The function to get the key of the response sound to use.

Returns:

    manualDynamicResponseChecklistItem The created checklist item.
manualDynamicResponseChecklistItem:getResponseKey ()
Gets the key of the response sound.

Returns:

    optional string The key of the response sound.
generated by LDoc 1.4.6 Last updated 2022-05-28 12:58:52