MediaSFU React Native
    Preparing search index...

    Variable updatedCoHostConst

    updatedCoHost: (
        { coHost, coHostResponsibility, showAlert, eventType, islevel, member, youAreCoHost, updateCoHost, updateCoHostResponsibility, updateYouAreCoHost, }: UpdatedCoHostOptions,
    ) => Promise<void>

    Synchronizes co-host assignment state and optionally alerts the newly assigned co-host.

    Type Declaration

      • (
            { coHost, coHostResponsibility, showAlert, eventType, islevel, member, youAreCoHost, updateCoHost, updateCoHostResponsibility, updateYouAreCoHost, }: UpdatedCoHostOptions,
        ): Promise<void>
      • Parameters

        • { coHost, coHostResponsibility, showAlert, eventType, islevel, member, youAreCoHost, updateCoHost, updateCoHostResponsibility, updateYouAreCoHost, }: UpdatedCoHostOptions

        Returns Promise<void>

        Resolves after co-host state is synchronized.

    await updatedCoHost({
    coHost: 'user123',
    coHostResponsibility: responsibilities,
    eventType: 'conference',
    islevel: '1',
    member: 'user123',
    youAreCoHost: false,
    updateCoHost: setCoHost,
    updateCoHostResponsibility: setCoHostResponsibility,
    updateYouAreCoHost: setYouAreCoHost,
    showAlert,
    });