Author API Methods
getActivityTitle()
Gets the current title of the Activity being edited.
You would want to use this method so that you can display the current Title for the Activity in your application, for example.
Important This method can only be used when in the Activity editor view, when the mode initialization option is set to "activity_edit".
Examples
var activityTitle = authorApp.getActivityTitle();
console.log(activityTitle);
Arguments
None.
Return value
Type string
The current Activity title.
Type boolean
Returns false if not in the Activity editor view.
Related articles
- The
setActivityTitle()method, which allows you to set the Activity title.