Skip to content

Commit

Permalink
expose ParticipantPermissions's properties
Browse files Browse the repository at this point in the history
  • Loading branch information
hiroshihorie committed Aug 23, 2022
1 parent 91b2a05 commit f05dc69
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions Sources/LiveKit/Types/ParticipantPermissions.swift
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,16 @@

public struct ParticipantPermissions: Equatable {

let canSubscribe: Bool
/// allow participant to publish new tracks to room
let canPublish: Bool
/// allow participant to publish data
let canPublishData: Bool
/// indicates that it's hidden to others
let hidden: Bool
/// indicates it's a recorder instance
let recorder: Bool
/// ``Participant`` can subscribe to tracks in the room
public let canSubscribe: Bool
/// ``Participant`` can publish new tracks to room
public let canPublish: Bool
/// ``Participant`` can publish data
public let canPublishData: Bool
/// ``Participant`` is hidden to others
public let hidden: Bool
/// Indicates it's a recorder instance
public let recorder: Bool

public init(canSubscribe: Bool = false,
canPublish: Bool = false,
Expand Down

0 comments on commit f05dc69

Please sign in to comment.