BindReviewableContentEventProcessor
Binds a callback that the server invokes for each moderation review event
produced for content registered through
CreateReviewableContentAsync().
Once at least one processor is bound, review events are delivered to the
bound processors in priority order. The callback function receives a
single table with the following fields:
Id — The reviewable-content ID the event refers to.State — The review state (ReviewableContentState).Ref — The optional caller-supplied reference string passed to
CreateReviewableContentAsync(),
present only when one was supplied.ModerationResult — Present when a moderation result is available, a
table with a Category (ModerationResultCategory) and, when a
violation is detected, a Labels array of ModerationResultLabel
values.
Processors run as a chain: if a processor returns true, the event is
acknowledged, deleted from the backend, and removed from the pending set,
and no further processors run for that event. If it returns false (or
does not return a boolean), the next processor runs; if no processor
returns true, the event is left unacknowledged and redelivered on a
later poll.
History 1
CreateReviewableContentAsync
Registers one or more captures as a single unit of reviewable content and
starts its moderation review. This is a yielding function that must be
called on the server and is restricted to allow-listed universes; calling
it from a universe that is not permitted to use this API raises an error.
The config table accepts:
Id — An optional caller-chosen ID for the reviewable content.
Supplying an ID that already exists raises an error.Ref — An optional reference string echoed back on the events delivered
to processors bound with
BindReviewableContentEventProcessor().Content — A list of items (currently limited to one), each containing
either an Image or a Video table with a UserId (the owning player)
and a ContentKey obtained from
CreateReviewableContentKey().
The method registers the content with the backend and returns the
reviewable content ID. Review results are later delivered to bound
processors as the moderation review completes.
It will block the calling thread until completion.
History 1
Tags: [Yields]
CreateReviewableContentKey
History 1
InternalRequestReviewableContentReviewAsync
It will block the calling thread until completion.
History 1
Tags: [Yields]