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.
import XAPI, { Attachment } from "@xapi/xapi";
const attachment: Attachment = {
usageType: XAPI.AttachmentUsages.SUPPORTING_MEDIA,
display: {
"en-US": "Image Attachment"
},
description: {
"en-US": "An image of something"
},
contentType: "image/jpeg",
length: imageArrayBufferByteLength,
sha2: imageArrayBufferSHA2
};
Last updated
Was this helpful?