mirror of
https://github.com/home-assistant/iOS.git
synced 2026-02-04 02:46:35 -06:00
Refs #1591. ## Summary Adds support for using image notification attachments in the content extension. ## Screenshots <img width="350" src="https://user-images.githubusercontent.com/74188/115494743-18462900-a21b-11eb-83d5-3e6c112d99df.png"> ## Any other notes Dynamic actions require the 'DYNAMIC' category but our content extension causes attachments to not appear and we want every possible feature to work with just this category.
17 lines
377 B
Swift
17 lines
377 B
Swift
import Foundation
|
|
import PromiseKit
|
|
import Shared
|
|
|
|
enum CameraStreamHandlerState {
|
|
case playing
|
|
case paused
|
|
}
|
|
|
|
protocol CameraStreamHandler: AnyObject {
|
|
init(api: HomeAssistantAPI, response: StreamCameraResponse) throws
|
|
var didUpdateState: (CameraStreamHandlerState) -> Void { get set }
|
|
var promise: Promise<Void> { get }
|
|
func pause()
|
|
func play()
|
|
}
|