mirror of
https://github.com/hensm/fx_cast.git
synced 2026-06-09 09:09:58 +00:00
28 lines
601 B
TypeScript
28 lines
601 B
TypeScript
"use strict";
|
|
|
|
import { Receiver } from "../types";
|
|
|
|
|
|
export enum ReceiverSelectorMediaType {
|
|
App
|
|
, Tab
|
|
, Screen
|
|
}
|
|
|
|
export interface ReceiverSelection {
|
|
receiver: Receiver;
|
|
mediaType: ReceiverSelectorMediaType;
|
|
}
|
|
|
|
export type ReceiverSelectorSelectedEvent = CustomEvent<ReceiverSelection>;
|
|
export type ReceiverSelectorErrorEvent = CustomEvent;
|
|
export type ReceiverSelectorCancelledEvent = CustomEvent;
|
|
|
|
|
|
export default interface ReceiverSelector extends EventTarget {
|
|
open (receivers: Receiver[]
|
|
, defaultMediaType: ReceiverSelectorMediaType): void;
|
|
|
|
close (): void;
|
|
}
|