Type Alias: ActivityHostMessage ​
ts
type ActivityHostMessage =
| ActivityInit
| {
participants: ActivityUser[];
protocol: typeof ACTIVITY_PROTOCOL;
type: "participants";
}
| {
data: unknown;
from: number;
protocol: typeof ACTIVITY_PROTOCOL;
type: "message";
}
| {
error?: string;
id: number;
protocol: typeof ACTIVITY_PROTOCOL;
type: "result";
}
| {
on: boolean;
protocol: typeof ACTIVITY_PROTOCOL;
type: "fullscreen";
}
| {
binding: ActivityPushToTalkBinding | null;
protocol: typeof ACTIVITY_PROTOCOL;
type: "pushToTalk";
};Defined in: activity.ts:66
Refract to the page
Union Members ​
Type Literal ​
ts
{
participants: ActivityUser[];
protocol: typeof ACTIVITY_PROTOCOL;
type: "participants";
}Type Literal ​
ts
{
data: unknown;
from: number;
protocol: typeof ACTIVITY_PROTOCOL;
type: "message";
}Type Literal ​
ts
{
error?: string;
id: number;
protocol: typeof ACTIVITY_PROTOCOL;
type: "result";
}the answer to a page's broadcast that carried an id: done, or why not
Type Literal ​
ts
{
on: boolean;
protocol: typeof ACTIVITY_PROTOCOL;
type: "fullscreen";
}the page's frame went full screen, or came out of it (by the page's asking, or Esc)
Type Literal ​
ts
{
binding: ActivityPushToTalkBinding | null;
protocol: typeof ACTIVITY_PROTOCOL;
type: "pushToTalk";
}push to talk to watch for while the page has the keyboard; null when it is off