GitHub

Source

useLocalParticipantPermissions

The useLocalParticipantPermissions hook returns the local participant's permissions.

Import

import { useLocalParticipantPermissions } from "@livekit/components-react";

Usage

const { canPublish, canPublishData } = useLocalParticipantPermissions();

Returns

ParticipantPermission | undefined;