Attachment Usages
For a non-exhaustive list of pre-made identifiers for creating statement attachments, see the AttachmentUsages enum. AttachmentUsages are a static property of the XAPI Object.
1
import XAPI, { Attachment } from "@xapi/xapi";
2
3
const attachment: Attachment = {
4
usageType: XAPI.AttachmentUsages.SUPPORTING_MEDIA,
5
display: {
6
"en-US": "Image Attachment"
7
},
8
description: {
9
"en-US": "An image of something"
10
},
11
contentType: "image/jpeg",
12
length: imageArrayBufferByteLength,
13
sha2: imageArrayBufferSHA2
14
};
Copied!
Last modified 8mo ago
Copy link