// Copyright 2017 Google Inc. #import #import #import NS_ASSUME_NONNULL_BEGIN /** * Options for seeking within media with GCKRemoteMediaClient. * * @since 4.0 */ GCK_EXPORT @interface GCKMediaSeekOptions : NSObject /** * Designated initializer. Initializes a GCKMediaSeekOptions with default values for all properties. */ - (instancetype)init; /** * The time interval by which to seek. The default value is 0. */ @property(nonatomic, assign) NSTimeInterval interval; /** * Whether the time interval is relative to the current stream position (YES) or to the * beginning of the stream (NO). The default value is NO, indicating an * absolute seek position. */ @property(nonatomic, assign) BOOL relative; /** * The action to take after the seek operation has finished. The default value is * GCKMediaResumeStateUnchanged. */ @property(nonatomic, assign) GCKMediaResumeState resumeState; /** * Whether seek to end of stream or live. * * @since 4.4.1 */ @property(nonatomic, assign) BOOL seekToInfinite; /** * Custom application-specific data to pass along with the request. Must either be * an object that can be serialized to JSON using * NSJSONSerialization, or nil. */ @property(nonatomic, strong, nullable) id customData; @end NS_ASSUME_NONNULL_END