<GCKUICastButtonDelegate> ProtocolStay organized with collectionsSave and categorize content based on your preferences.
AI-generated Key Takeaways
The GCKUICastButtonDelegate protocol allows you to present custom dialogs when the Cast button is tapped.
ThecastButtonDidTapToPresentLocalNetworkAccessPermissionDialog:method is called the first time the Cast button is tapped on iOS 14+ if device discovery hasn't started.
ThecastButtonDidTap:toPresentDialogForCastState:method is called when the Cast button is tapped after device discovery has been initiated.
Tells the delegate that the cast button is tapped by the user for the first time on iOS14 or above and cast devices discovery has not started in the current or previous app sessions.More...
Tells the delegate that the cast button is tapped by the user for the first time on iOS14 or above and cast devices discovery has not started in the current or previous app sessions.
Implement this method to present the custom dialog. If not implmemented, the default dialog is presented.
Tells the delegate that the cast button is tapped by the user after the discovery has been initiated in current or previous app session.
Implement this method to present the custom dialog as per the cast state. ObserveGCKCastContext::castStateto update the dialog dynamically as per changes in the cast state. If not implmemented, the default dialog is presented.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-09-18 UTC."],[],["The `GCKUICastButtonDelegate` protocol allows for custom dialog presentation in response to user interactions with a cast button. It has two key instance methods: `castButtonDidTapToPresentLocalNetworkAccessPermissionDialog:` is triggered when the user taps the cast button for the first time on iOS 14+ without prior device discovery and allows to present a permission dialog. `castButtonDidTap:toPresentDialogForCastState:` is triggered when the user taps the button after device discovery has been initiated, allowing a custom dialog based on the cast state. If neither is implemented, the default dialog is displayed.\n"]]