iOS/Sources/Extensions/NotificationContent/CameraStreamHandler.swift
Zac West a1c57ec46e
Static image attachments in dynamic category (#1596)
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.
2021-04-20 22:10:17 -07:00

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()
}