ScormAPI class
Main class for all the interaction with SCORM APIs
Begin with finding the API using the findApi method. Check apiFound at any point of time.
Note: All methods/members are static because this package has been designed assuming that the consumer (your web app) will represent single SCORM resource
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- apiFound → bool
-
Indicates whether api was successfully found. All other methods will return null/false if api has not been found
no setter
- version → ScormVersion?
-
The found/specified SCORM version
no setter
Static Methods
-
commit(
{String message = ""}) → bool -
Executes
Commit
-
findApi(
{ScormVersion? version, int maxTries = 7}) → bool -
Tries to find SCORM API in the hierarchy up-to
maxTries
level. If it's not found in the current hierarchy, it tries to find it in theopener
's hierarchy -
finish(
{String message = ""}) → bool -
Executes
Finish/Terminate
-
getDiagnosticMessage(
String errorCode) → String? -
Executes
GetDiagnostic
-
getErrorString(
String errorCode) → String? -
Executes
GetErrorString
-
getLastError(
) → String? -
Executes
GetLastError
-
getValue(
String key) → String? -
Executes
GetValue
-
initialize(
{String message = ""}) → bool -
Executes
Initialize
-
setValue(
String key, String value) → String? -
Executes
SetValue
-
terminate(
{String message = ""}) → bool -
Executes
Finish/Terminate