GCKUIStyleAttributes Class
Stay organized with collections
Save and categorize content based on your preferences.
A class for controlling the style (colors, fonts, icons) of the default views of the framework.
- Since
- 3.3
Inherits NSObject.
Inherited by GCKUIStyleAttributesCastViews
, GCKUIStyleAttributesConnectionController
, GCKUIStyleAttributesConnectionNavigation
, GCKUIStyleAttributesConnectionToolbar
, GCKUIStyleAttributesDeviceChooser
, GCKUIStyleAttributesDeviceControl
, GCKUIStyleAttributesExpandedController
, GCKUIStyleAttributesGuestModePairingDialog
, GCKUIStyleAttributesInstructions
, GCKUIStyleAttributesMediaControl
, GCKUIStyleAttributesMiniController
, GCKUIStyleAttributesNoDevicesAvailableController
, and GCKUIStyleAttributesTrackSelector
.
An image that will be used in "closed captions" buttons in the framework's default views. More...
An image that will be used in "forward 30 seconds" buttons in the frameworks default views. More...
An image that will be used in "rewind 30 seconds" buttons in the framework's default views. More...
An image that will be used to indicate that a slider is a volume slider in the framework's default views. More...
An image that will be used in the "mute toggle" button in the framework's default views. More...
An image that will be used in the "mute toggle" button in the framework's default views. More...
An image that will be used in the "play/pause toggle" button in the framework's default views. More...
An image that will be used in the "play/pause toggle" button in the framework's default views. More...
An image that will be used in "forward 30 seconds" buttons in the framework's default views. More...
An image that will be used in "forward 30 seconds" buttons in the framework's default views. More...
An image that will be used in the track selector, to select the audio track chooser view. More...
An image that will be used in the track selector, to select the subtitle track chooser view. More...
An image that will be used in "stop" buttons in the framework's default views. More...
The UIFont to be used in labels of buttons in the framework's default views. More...
The color to be used in labels of buttons in the framework's default views. More...
The shadow color to be used in labels of buttons in the framework's default views. More...
The offset for the shadow for labels of buttons in the framework's default views. More...
The UIFont to be used in labels of type "body" in the framework's default views. More...
The UIFont to be used in labels of type "heading" in the framework's default views. More...
The font to be used in labels of type "caption" in the framework's default views. More...
The color to be used in labels of type "body" in the framework's default views. More...
The shadow color to be used in labels of type "body" in the framework's default views. More...
The color to be used in labels of type "heading" in the framework's default views. More...
The shadow color to be used in labels of type "heading" in the framework's default views. More...
The color to be used in labels of type "caption" in the framework's default views. More...
The shadow color to be used in labels of type "caption" in the framework's default views. More...
The background color to be used on the framework's default views. More...
The color to use as tint color on all buttons and icons on the framework's default views. More...
The offset for the shadow for labels of type "body" in the framework's default views. More...
The offset for the shadow for labels of type "caption" in the framework's default views. More...
The offset for the shadow for labels of type "heading" in the framework's default views. More...
The color used for the unseekable progress tracks on the slider views. More...
The color used for the seekable progress track, and thumb on the slider views. More...
The color used for the seekable and unplayed progress track on the slider views. More...
The background color of the tooltip label of the slider thumb. More...
The color used for the marker of live indicator. More...
The UIViewContentMode of the ad image on the expanded view controller wrapped in a NSNumber. More...
The UIViewContentMode of the background image on the expanded view controller wrapped in a NSNumber. More...
The color used to draw the circular ad marker on the seek bar in the played segment of the slider. More...
The color used to draw the circular ad marker on the seek bar in the un-played segment of the slider. More...
The color to be used as thumb tint color of volume slider. More...
The color to be used as minimum track tint color of volume slider. More...
The color to be used as maximum track tint color of volume slider. More...
- (UIImage*) closedCaptionsImage
read
write
nonatomic
assign
An image that will be used in "closed captions" buttons in the framework's default views.
- (UIImage*) forward30SecondsImage
read
write
nonatomic
assign
An image that will be used in "forward 30 seconds" buttons in the frameworks default views.
- (UIImage*) rewind30SecondsImage
read
write
nonatomic
assign
An image that will be used in "rewind 30 seconds" buttons in the framework's default views.
read
write
nonatomic
assign
An image that will be used to indicate that a slider is a volume slider in the framework's default views.
- (UIImage*) muteOffImage
read
write
nonatomic
assign
An image that will be used in the "mute toggle" button in the framework's default views.
This is the image that will be displayed while the receiver is muted.
read
write
nonatomic
assign
An image that will be used in the "mute toggle" button in the framework's default views.
This is the image that will be displayed while the receiver is not muted.
read
write
nonatomic
assign
An image that will be used in the "play/pause toggle" button in the framework's default views.
This is the image that will be displayed while the receiver is playing.
read
write
nonatomic
assign
An image that will be used in the "play/pause toggle" button in the framework's default views.
This is the image that will be displayed while the receiver is paused.
- (UIImage*) skipNextImage
read
write
nonatomic
assign
An image that will be used in "forward 30 seconds" buttons in the framework's default views.
- (UIImage*) skipPreviousImage
read
write
nonatomic
assign
An image that will be used in "forward 30 seconds" buttons in the framework's default views.
- (UIImage*) audioTrackImage
read
write
nonatomic
assign
An image that will be used in the track selector, to select the audio track chooser view.
- (UIImage*) subtitlesTrackImage
read
write
nonatomic
assign
An image that will be used in the track selector, to select the subtitle track chooser view.
read
write
nonatomic
assign
An image that will be used in "stop" buttons in the framework's default views.
- (UIFont*) buttonTextFont
read
write
nonatomic
assign
The UIFont to be used in labels of buttons in the framework's default views.
- (UIColor*) buttonTextColor
read
write
nonatomic
assign
The color to be used in labels of buttons in the framework's default views.
- Since
- 3.4
- (UIColor*) buttonTextShadowColor
read
write
nonatomic
assign
The shadow color to be used in labels of buttons in the framework's default views.
- (CGSize) buttonTextShadowOffset
read
write
nonatomic
assign
The offset for the shadow for labels of buttons in the framework's default views.
read
write
nonatomic
assign
The UIFont to be used in labels of type "body" in the framework's default views.
- (UIFont*) headingTextFont
read
write
nonatomic
assign
The UIFont to be used in labels of type "heading" in the framework's default views.
- (UIFont*) captionTextFont
read
write
nonatomic
assign
The font to be used in labels of type "caption" in the framework's default views.
- (UIColor*) bodyTextColor
read
write
nonatomic
assign
The color to be used in labels of type "body" in the framework's default views.
- (UIColor*) bodyTextShadowColor
read
write
nonatomic
assign
The shadow color to be used in labels of type "body" in the framework's default views.
- (UIColor*) headingTextColor
read
write
nonatomic
assign
The color to be used in labels of type "heading" in the framework's default views.
- (UIColor*) headingTextShadowColor
read
write
nonatomic
assign
The shadow color to be used in labels of type "heading" in the framework's default views.
- (UIColor*) captionTextColor
read
write
nonatomic
assign
The color to be used in labels of type "caption" in the framework's default views.
- (UIColor*) captionTextShadowColor
read
write
nonatomic
assign
The shadow color to be used in labels of type "caption" in the framework's default views.
- (UIColor*) backgroundColor
read
write
nonatomic
assign
The background color to be used on the framework's default views.
- (UIColor*) iconTintColor
read
write
nonatomic
assign
The color to use as tint color on all buttons and icons on the framework's default views.
- (CGSize) bodyTextShadowOffset
read
write
nonatomic
assign
The offset for the shadow for labels of type "body" in the framework's default views.
- (CGSize) captionTextShadowOffset
read
write
nonatomic
assign
The offset for the shadow for labels of type "caption" in the framework's default views.
- (CGSize) headingTextShadowOffset
read
write
nonatomic
assign
The offset for the shadow for labels of type "heading" in the framework's default views.
- (UIColor*) sliderUnseekableProgressColor
read
write
nonatomic
assign
The color used for the unseekable progress tracks on the slider views.
- Since
- 4.4.1
- (UIColor*) sliderProgressColor
read
write
nonatomic
assign
The color used for the seekable progress track, and thumb on the slider views.
- Since
- 4.4.1
- (UIColor*) sliderSecondaryProgressColor
read
write
nonatomic
assign
The color used for the seekable and unplayed progress track on the slider views.
- Since
- 4.4.1
- (UIColor*) sliderTooltipBackgroundColor
read
write
nonatomic
assign
The background color of the tooltip label of the slider thumb.
- Since
- 4.4.1
- (UIColor*) liveIndicatorColor
read
write
nonatomic
assign
The color used for the marker of live indicator.
- Since
- 4.4.1
- (NSNumber*) adImageContentMode
read
write
nonatomic
assign
The UIViewContentMode of the ad image on the expanded view controller wrapped in a NSNumber.
- Since
- 4.4.1
- (NSNumber*) backgroundImageContentMode
read
write
nonatomic
assign
The UIViewContentMode of the background image on the expanded view controller wrapped in a NSNumber.
- Since
- 4.4.1
- (UIColor*) playedAdMarkerFillColor
read
write
nonatomic
assign
The color used to draw the circular ad marker on the seek bar in the played segment of the slider.
Default is Yellow.
- Since
- 4.6.0
- (UIColor*) unplayedAdMarkerFillColor
read
write
nonatomic
assign
The color used to draw the circular ad marker on the seek bar in the un-played segment of the slider.
Default is Yellow.
- Since
- 4.6.0
- (UIColor*) volumeSliderThumbTintColor
read
write
nonatomic
assign
The color to be used as thumb tint color of volume slider.
- Since
- 4.8.0
- (UIColor*) volumeSliderMinimumTrackTintColor
read
write
nonatomic
assign
The color to be used as minimum track tint color of volume slider.
- Since
- 4.8.0
- (UIColor*) volumeSliderMaximumTrackTintColor
read
write
nonatomic
assign
The color to be used as maximum track tint color of volume slider.
- Since
- 4.8.0
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."],[[["\u003cp\u003eThe \u003ccode\u003eGCKUIStyleAttributes\u003c/code\u003e class allows customization of the default Google Cast UI elements, such as buttons, labels, and sliders.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers can modify properties related to images, fonts, colors, and content modes to achieve their desired visual style.\u003c/p\u003e\n"],["\u003cp\u003eSeveral subclasses of \u003ccode\u003eGCKUIStyleAttributes\u003c/code\u003e handle styling for specific Cast UI components like the mini controller, expanded controller, and device chooser.\u003c/p\u003e\n"],["\u003cp\u003eCustomization is achieved by setting values for a wide range of properties, including image assets, font styles, color palettes, and display behaviors.\u003c/p\u003e\n"],["\u003cp\u003eUsing this class, developers can seamlessly integrate the Cast experience into their applications while maintaining visual consistency with their brand.\u003c/p\u003e\n"]]],[],null,[]]