RoomParams

@objcMembers
@objc(SBCRoomParams)
public class RoomParams : NSObject, Encodable

A class that provides information for creating a new room

Since

1.6.0
  • Sets the type of the room. Valid values are smallRoomForVideo and largeRoomForAudioOnly.

    Since

    1.6.0

    Declaration

    Swift

    public var roomType: RoomType
  • Sets custom items for the room

    Since

    1.8.0

    Declaration

    Swift

    public var customItems: [String : String]?
  • Initializes RoomParams.

    Since

    1.6.0

    Declaration

    Swift

    public init(roomType: RoomType)

    Parameters

    roomType

    Sets the type of the room. Valid values are smallRoomForVideo and largeRoomForAudioOnly.

  • Initializes RoomParams.

    Since

    1.8.0

    Declaration

    Swift

    public init(roomType: RoomType, customItems: [String : String])

    Parameters

    roomType

    Sets the type of the room. Valid values are smallRoomForVideo and largeRoomForAudioOnly.

    customItems

    Custom items for this room

  • Declaration

    Swift

    public func encode(to encoder: Encoder) throws