Plugins

Covers Engine Plugin SDK 2.0.0 · Interface Plugin SDK 0.2.0

getParticipantAccentColor

Return the host accent color assigned to a client identity.

Import

import { getParticipantAccentColor } from "@dartwic/interface-sdk/ui";

Declaration

export function getParticipantAccentColor(clientId: string) {
    const helper = getHostApi().helpers.getParticipantAccentColor;
    if (typeof helper !== "function") {
        throw new Error("The interface host does not provide getParticipantAccentColor.");
    }
    return String(helper(clientId));
}