Stay organized with collections Save and categorize content based on your preferences.
An object representing options that can be passed to a Cast-enabled application via a deep-link URL.
The source app encodes the Cast-specific options (including the unique ID of the device to cast to, and optionally the session ID of a specific Cast session to join) in a query parameter of the application URL using asURLQueryItem (GCKOpenURLOptions), and then opens the URL using UIApplication's -[openURL:options:completionHandler:]
method. The target app extracts the Cast-specific options from the URL it receives in its UIApplicationDelegate's -[application:openURL:options:]
method by calling openURLOptionsFromURL: (GCKOpenURLOptions). It then starts or joins a Cast session by passing these options to startSessionWithOpenURLOptions:sessionOptions: (GCKSessionManager).
Inherits NSObject, <NSCopying>, and <NSSecureCoding>.
Extracts the Cast-specific options from the specified URL.
nil
if the URL did not contain any Cast-specific options.
Converts the options into a URL query item.
The unique ID of the device to connect to.
Required.
- (NSString*) deviceFriendlyName readwritenonatomiccopyThe friendly name of the device to connect to.
Optional. This value is not used by the GoogleCast framework, but may be of interest to the receiving application.
The session ID of the Cast session to join.
Optional. A value of nil
indicates that any currently active session should be joined, or if there is none, that a new one should be created.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-09-18 UTC.
[[["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."],[[["`GCKOpenURLOptions` enables deep-linking to Cast-enabled applications by encoding Cast-specific options within a URL."],["Source applications use `asURLQueryItem` to create the URL and `openURL:options:completionHandler:` to open it, while target applications use `openURLOptionsFromURL:` to extract the options."],["Key options include `deviceUniqueID` (required), `deviceFriendlyName` (optional), and `sessionID` (optional for joining existing or starting new sessions)."],["Developers can utilize these options with `startSessionWithOpenURLOptions:sessionOptions:` to initiate or join Cast sessions seamlessly."]]],["The GCKOpenURLOptions class manages options for Cast-enabled apps via deep-link URLs. Source apps encode Cast options (device ID, optional session ID) into a URL query item using `asURLQueryItem`. The receiving app extracts these options using `openURLOptionsFromURL:`. This class enables the receiver to start or join a Cast session by providing these options to `startSessionWithOpenURLOptions:sessionOptions:`. Key properties include `deviceUniqueID`, `deviceFriendlyName`, and `sessionID`, enabling connection to a specific device or session.\n"]]
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4