Google.Cast.RemoteDisplay.UI.CastButtonFrame

Contains the functionality for the cast button and corresponding frame.

Summary

Inheritance

Inherits from: MonoBehaviour

Public attributes

castButton
Button
Start/stop casting button.
castButtonTappedCallback
The callback for tapping the cast button.

Properties

ConnectingAnimator
Animator
A private copy of the UI cast connecting animation, so they can be used locally.
UiSprites
A private copy of the UI sprites, so they can be used locally.

Public functions

Hide()
void
Hides the cast button.
OnCastButtonTapped()
void
Triggers the callback for tapping the cast button.
Show()
void
Shows the cast button.
ShowCasting()
void
Shows the "casting" state for the cast button.
ShowConnecting()
void
Shows the "connecting" animation for the cast button.
ShowNotCasting()
void
Shows the "not casting" state for the cast button.

Public attributes

castButton

Button castButton

Start/stop casting button.

castButtonTappedCallback

UICallback castButtonTappedCallback

The callback for tapping the cast button.

Properties

ConnectingAnimator

Animator ConnectingAnimator

A private copy of the UI cast connecting animation, so they can be used locally.

UiSprites

CastUISprites UiSprites

A private copy of the UI sprites, so they can be used locally.

Public functions

Hide

void Hide()

Hides the cast button.

OnCastButtonTapped

void OnCastButtonTapped()

Triggers the callback for tapping the cast button.

Set as the OnClick function for CastButton.

Show

void Show()

Shows the cast button.

ShowCasting

void ShowCasting()

Shows the "casting" state for the cast button.

ShowConnecting

void ShowConnecting()

Shows the "connecting" animation for the cast button.

ShowNotCasting

void ShowNotCasting()

Shows the "not casting" state for the cast button.