Hiyve Components - v1.0.0
    Preparing search index...

    Interface RoomState

    Room state containing room info and user role.

    Provides the current room information, whether the local user is the owner/host, and whether they are currently in a room. The isOwner flag determines access to host-only actions such as admitting waiting room users, starting recordings, and setting the dominant speaker.

    Conditional host controls:

    function RoomHeader() {
    const { room, isOwner, isInRoom } = useRoom();

    if (!isInRoom) return null;

    return (
    <View>
    <Text>{room?.name}</Text>
    {isOwner && <Text>You are the host</Text>}
    </View>
    );
    }

    RoomInfo for room details

    interface RoomState {
        isInRoom: boolean;
        isOwner: boolean;
        room: RoomInfo | null;
    }
    Index

    Properties

    Properties

    isInRoom: boolean

    Whether the local user is currently in a room

    isOwner: boolean

    Whether the local user is the room owner/host

    room: RoomInfo | null

    Room information, null if not in a room