Google.Cast.RemoteDisplay.UI.CastDisconnectDialog

The dialog for displaying the disconnect dialog.

Summary

Inheritance

Inherits from: MonoBehaviour

Public attributes

closeButtonTappedCallback
The callback for closing the disconnect dialog.
deviceName
Text
The current cast device name.
disconnectButton
Button
Outlet for the disconnect button.
disconnectButtonTappedCallback
The callback for disconnecting and closing the dialog.
volumeSlider
Slider
The slider to control the cast device volume.

Public functions

OnCloseButtonTapped()
void
Triggers the callback for closing the disconnect dialog.
OnDisconnectButtonTapped()
void
Triggers the callback for closing the disconnect dialog.
OnVolumeSet()
void
Called when the volume slider is changed - passes volume changes along to the Cast device.
Setup(string name)
void
Set the cast device name for the dialog title.

Public attributes

closeButtonTappedCallback

UICallback closeButtonTappedCallback

The callback for closing the disconnect dialog.

deviceName

Text deviceName

The current cast device name.

disconnectButton

Button disconnectButton

Outlet for the disconnect button.

disconnectButtonTappedCallback

UICallback disconnectButtonTappedCallback

The callback for disconnecting and closing the dialog.

volumeSlider

Slider volumeSlider

The slider to control the cast device volume.

Public functions

OnCloseButtonTapped

void OnCloseButtonTapped()

Triggers the callback for closing the disconnect dialog.

Set as the OnClick function for CloseButton.

OnDisconnectButtonTapped

void OnDisconnectButtonTapped()

Triggers the callback for closing the disconnect dialog.

Set as the OnClick function for DisconnectButton.

OnVolumeSet

void OnVolumeSet()

Called when the volume slider is changed - passes volume changes along to the Cast device.

Setup

void Setup(
  string name
)

Set the cast device name for the dialog title.