Skip to main content
Use a comment ID when your app needs to open a thread, refresh a detail view, or inspect a comment after creation. TypeScript, iOS, Android, and Flutter all expose single-comment retrieval; the live update shape differs by platform.

Comment Fields

The comment model names vary by SDK, but these are the fields most apps read after retrieval.

Parameters

Observe a Comment

Observe a single comment when a detail view or thread preview should stay current after edits, deletes, or reactions.

Fetch One Comment

Flutter also exposes a direct one-shot fetch for comment detail screens.

Fetch Multiple Comments by ID

Batch lookup is available in TypeScript and Android. Use query APIs when you need a paged collection for a post, story, or custom content item.

Notes

  • Dispose of live observers or stream subscriptions when the screen is no longer active.
  • Android getComment(...) is annotated with ExperimentalAmityApi; opt in at the call site or enclosing scope.
  • If the user needs a list of comments under a reference, use Query Comments instead of repeated single-comment calls.

Query Comments

Query top-level comments and reply threads.

Get Latest Comment

Fetch or derive the newest comment for a reference.