GCKOpenURLOptions.h
1 // Copyright 2017 Google Inc.
2 
3 #import <GoogleCast/GCKDefines.h>
4 
5 #import <Foundation/Foundation.h>
6 
7 GCK_ASSUME_NONNULL_BEGIN
8 
23 GCK_EXPORT
24 @interface GCKOpenURLOptions : NSObject<NSCopying, NSSecureCoding>
25 
29 @property(nonatomic, copy, readwrite, GCK_NULLABLE) NSString *deviceUniqueID;
30 
35 @property(nonatomic, copy, readwrite, GCK_NULLABLE) NSString *deviceFriendlyName;
36 
42 @property(nonatomic, copy, readwrite, GCK_NULLABLE) NSString *sessionID;
43 
50 + (GCKOpenURLOptions *GCK_NULLABLE_TYPE)openURLOptionsFromURL:(NSURL *)url;
51 
57 - (NSURLQueryItem *)asURLQueryItem;
58 
59 @end
60 
61 GCK_ASSUME_NONNULL_END
NSString * deviceFriendlyName
The friendly name of the device to connect to.
Definition: GCKOpenURLOptions.h:35
NSString * sessionID
The session ID of the Cast session to join.
Definition: GCKOpenURLOptions.h:42
NSURLQueryItem * asURLQueryItem()
Converts the options into a URL query item.
An object representing options that can be passed to a Cast-enabled application via a deep-link URL...
Definition: GCKOpenURLOptions.h:24
NSString * deviceUniqueID
The unique ID of the device to connect to.
Definition: GCKOpenURLOptions.h:29