c2pa_view library

Classes

Action
Represents an action performed in the C2PA provenance chain.
ContentCredentialsWidget
A widget that displays a content credentials based on the provided source. source can be a local path or File pointing at the source-file.
Ingredient
Represents an ingredient (e.g., original asset or intermediate) in the manifest.
Manifest
Domain entity representing a C2PA Content Credential Manifest.
ManifestAssertion
Represents a generic C2PA assertion with a predicate and associated content.
ManifestStore
Root domain entity representing a C2PA Content Credential Manifest store
RustLib
Main entrypoint of the Rust API

Functions

getManifestJsonFromBytes({required List<int> fileBytes, required String format}) String?
Get the manifest from bytes and format (mime type)
getManifestJsonFromFile(String path) String?
Get the manifest from a file
getManifestJsonFromURL(String url, {String? format}) Future<String?>
Get the manifest from a URL Optionally specify the format (mime type) if not in the header