<GCKUICastButtonDelegate> Protocol

Stay organized with collections Save and categorize content based on your preferences.
<GCKUICastButtonDelegate> Protocol Reference

Overview

Use the methods of this protocol to present custom dialog in response to user action.

Since
4.6.0

Inherits <UIButtonNSObject>.

Instance Method Summary

(void) - castButtonDidTapToPresentLocalNetworkAccessPermissionDialog:
 Tells the delegate that the Cast button was tapped by the user for the first time on iOS14+ and Cast device discovery has never been initiated previously. More...
 
(void) - castButtonDidTap:toPresentDialogForCastState:
 Tells the delegate that the Cast button was tapped by the user after discovery was initiated. More...
 

Method Detail

- (void) castButtonDidTapToPresentLocalNetworkAccessPermissionDialog: (GCKUICastButton *)  castButton
optional

Tells the delegate that the Cast button was tapped by the user for the first time on iOS14+ and Cast device discovery has never been initiated previously.

Implement this method to present a custom local network access interstitial dialog to the user. If not implemented, the default dialog is presented.

Parameters
castButtonInstance of GCKUICastButton tapped.
- (void) castButtonDidTap: (GCKUICastButton *)  castButton
toPresentDialogForCastState: (GCKCastState castState 
optional

Tells the delegate that the Cast button was tapped by the user after discovery was initiated.

Implement this method if you want to present a custom dialog when the user taps on the Cast button. If you implement this method, you must take care of all Cast states. Observe GCKCastContext::castState to update the custom dialog dynamically for all Cast states. If not implemented, the default dialog is presented.

Parameters
castButtonInstance of GCKUICastButton tapped.
castStateCast state when the cast button is tapped.