AmazonChimeSDK/AmazonChimeSDK/audiovideo/video/VideoTileObserver.swift (8 lines of code) (raw):

// // VideoTileObserver.swift // AmazonChimeSDK // // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 // import Foundation /// `VideoTileObserver` handles events related to `VideoTile`. @objc public protocol VideoTileObserver { /// Called whenever a new attendee starts sharing the video /// /// Note: this callback will be called on main thread. /// /// - Parameters: /// - tileState: video tile state associated with this attendee func videoTileDidAdd(tileState: VideoTileState) /// Called whenever any attendee stops sharing the video /// /// Note: this callback will be called on main thread. /// /// - Parameters: /// - tileState: video tile state associated with this attendee func videoTileDidRemove(tileState: VideoTileState) /// Called whenever an attendee tile pauseState changes from .unpaused /// /// Note: this callback will be called on main thread. /// /// - Parameters: /// - tileState: video tile state associated with this attendee func videoTileDidPause(tileState: VideoTileState) /// Called whenever an attendee tile pauseState changes to .unpaused /// /// Note: this callback will be called on main thread. /// /// - Parameters: /// - tileState: video tile state associated with this attendee func videoTileDidResume(tileState: VideoTileState) /// Called whenever a video steam size is changed /// /// Note: this callback will be called on main thread. /// /// - Parameters: /// - tileState: video tile state whose size was changed func videoTileSizeDidChange(tileState: VideoTileState) }