Author API Methods
This article details methods the host page can use to interact with Author API.
LearnosityAuthor
The following methods are accessed via the window.LearnosityAuthor
object.
When the Author API script has loaded, the LearnosityAuthor
object is instantiated, and ready for use.
authorApp
The following methods are accessed via the authorApp
instance returned by window.LearnosityAuthor.init()
.
- backToActivityList()
- backToItemEdit()
- changeActivityMode()
- changeItemMode()
- clearSelectedItems()
- closeItemSettings()
- createActivity()
- createItem()
- destroy()
- duplicateActivity()
- duplicateItem()
- editActivity()
- editItem()
- editorApp()
- getActivity()
- getActivityDescription()
- getActivityItems()
- getActivityReference()
- getActivityStatus()
- getActivityTags()
- getActivityTitle()
- getItem()
- getItemDescription()
- getItemDifficulty()
- getItemNotes()
- getItemReference()
- getItemSource()
- getItemTags()
- getItemTitle()
- getLocation()
- getScoringType()
- getSearch()
- getSelectedItems()
- getStatus()
- getWidget()
- getWidgetMetadata()
- moveInstanceTo()
- navigate()
- off()
- on()
- once()
- questionsApp()
- safeToUnload()
- save()
- saveActivity()
- setActivity()
- setActivityDescription()
- setActivityItems()
- setActivityStatus()
- setActivityTags()
- setActivityTitle()
- setItemDescription()
- setItemDifficulty()
- setItemJson()
- setItemNotes()
- setItemReference()
- setItemSource()
- setItemTags()
- setItemTitle()
- setSafeToUnload()
- setScoringType()
- setStatus()
- setWidget()
- setWidgetMetadata()