Skip to main content

c2pa.selecteditsandactivity

Home > c2pa > selectEditsAndActivity

selectEditsAndActivity() function

Gets a list of categorized actions, derived from the provided manifest's c2pa.action assertion and a dictionary assertion, if available. If a dictionary is incuded, this function will initiate an HTTP request to fetch the dictionary data.

Signature:
export declare function selectEditsAndActivity(manifest: Manifest, locale?: string, iconVariant?: IconVariant): Promise<TranslatedDictionaryCategory[] | null>;

Parameters

ParameterTypeDescription
manifestManifestManifest to derive data from
localestring(Optional) BCP-47 locale code (e.g. en-US, fr-FR) to request localized strings, if available
iconVariantIconVariant(Optional) Requests icon variant (e.g. light, dark), if available
Returns:

Promise<TranslatedDictionaryCategory[] | null>