UNPKG

@daily-co/daily-react

Version:

Daily React makes it easier to integrate [@daily-co/daily-js](https://www.npmjs.com/package/@daily-co/daily-js) in React applications.

17 lines (16 loc) 813 B
import { DailyEventObject, DailySingleParticipantReceiveSettings } from '@daily-co/daily-js'; interface UseReceiveSettingsArgs { id?: string; onReceiveSettingsUpdated?(ev: DailyEventObject<'receive-settings-updated'>): void; } /** * Allows to read and set receiveSettings. * In case receiveSettings for participant specified by id are empty, not set or 'inherit', * base receiveSettings will be returned. * In case meeting is not in joined state, calls to updateReceiveSettings will be silently ignored. */ export declare const useReceiveSettings: ({ id, onReceiveSettingsUpdated, }?: UseReceiveSettingsArgs) => { receiveSettings: DailySingleParticipantReceiveSettings; updateReceiveSettings: (receiveSettings: import("@daily-co/daily-js").DailyReceiveSettingsUpdates) => void; }; export {};