Google.Cast.RemoteDisplay.UI.CastListDialog

The dialog for displaying/selecting the list of Cast devices.

Summary

Inheritance

Inherits from: MonoBehaviour

Public attributes

closeButtonTappedCallback
The callback for closing the cast list.
contentPanel
GameObject
GameObject that contains (and formats) the list of cast buttons.
listElementPrefab
GameObject
Prefab for the cast list elements.
listFoundElements
GameObject
GameObject that contains the "list found" state for the dialog.
listNotFoundElements
GameObject
GameObject that contains the "list not found" state for the dialog.
searchingElements
GameObject
GameObject that contains the "searching for cast devices" state for the dialog.
statusText
Text
Outlet for the "Searching/Connecting" text.
titleText
Text
Outlet for the title field.

Properties

CastButtonFrame
A reference to the cast button for animating the icon.

Public functions

Hide()
void
Hides the list of cast devices.
OnCloseButtonTapped()
void
Triggers the callback for closing the cast list.
PopulateList(CastRemoteDisplayManager manager)
void
Populates the list of casts with devices, and sets up callbacks for selecting said devices.
Show()
void
Shows the list of cast devices, or shows the "searching for cast devices" state.

Public attributes

closeButtonTappedCallback

UICallback closeButtonTappedCallback

The callback for closing the cast list.

contentPanel

GameObject contentPanel

GameObject that contains (and formats) the list of cast buttons.

listElementPrefab

GameObject listElementPrefab

Prefab for the cast list elements.

listFoundElements

GameObject listFoundElements

GameObject that contains the "list found" state for the dialog.

listNotFoundElements

GameObject listNotFoundElements

GameObject that contains the "list not found" state for the dialog.

searchingElements

GameObject searchingElements

GameObject that contains the "searching for cast devices" state for the dialog.

statusText

Text statusText

Outlet for the "Searching/Connecting" text.

titleText

Text titleText

Outlet for the title field.

Properties

CastButtonFrame

CastButtonFrame CastButtonFrame

A reference to the cast button for animating the icon.

Public functions

Hide

void Hide()

Hides the list of cast devices.

OnCloseButtonTapped

void OnCloseButtonTapped()

Triggers the callback for closing the cast list.

Set as the OnClick function for CloseButton.

PopulateList

void PopulateList(
  CastRemoteDisplayManager manager
)

Populates the list of casts with devices, and sets up callbacks for selecting said devices.

Show

void Show()

Shows the list of cast devices, or shows the "searching for cast devices" state.