UNPKG

@didask/scol-r

Version:

Shareable Cross-Origin Learning Resources

48 lines (47 loc) 1.74 kB
export declare class SCORMAdapter { private _API; private _isSCORM2004; private _errorCallback; private _lastRequest; private _ignorableErrorCodes; constructor(errorCallback?: Function); get foundAPI(): boolean; private _initialize; private _findAndSetAPI; private _findAPIInWindow; private _callAPIFunction; private _handleError; private _warnNOAPI; private validateResult; LMSInitialize(): true | void; LMSTerminate(): true | void; LMSGetValue(name: string): any; LMSSetValue(name: string, value: string | number): true | void; LMSCommit(): true | undefined; LMSGetLastError(): number; LMSGetErrorString(errorCode: number): any; LMSGetDiagnostic(errorCode: number): any; get lastRequest(): { method?: "get" | "set" | undefined; key: string; } | null; getDataFromLMS(): any; getLearnerId(): any; getLearnerName(): any; setStudent(studentId: string, studentName: string): void; setScore(score: number): void; getScore(): any; getLessonStatus(): any; setLessonStatus(lessonStatus: string): void; setSessionTime(msSessionTime: number): void; get objectivesAreAvailable(): boolean; setObjectives(objectivesIds: string[]): void; get objectives(): any[]; setObjectiveScore(objectiveId: string, score: number): void; setObjectiveStatus(objectiveId: string, status: "completed" | "incomplete"): void; getObjectiveScore(objectiveId: string): any; setSuspendData(data: string): void; get suspendData(): any; } export declare const convertToTimeInterval: (milliseconds: number) => string; export declare const convertMsToCMITimespan: (milliseconds: number) => string;