GCKUIStyle Class
Stay organized with collections
Save and categorize content based on your preferences.
Inherits NSObject.
|
(void) | - applyStyle |
| Forces a refresh of all currently visible views, so that any changes to the styling will take effect immediately. More...
|
|
Forces a refresh of all currently visible views, so that any changes to the styling will take effect immediately.
The root of the styling attributes tree.
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\u003e\u003ccode\u003eGCKUIStyle\u003c/code\u003e is a class used for managing the visual styling of Cast user interface elements.\u003c/p\u003e\n"],["\u003cp\u003eIt provides a singleton instance accessed via \u003ccode\u003esharedInstance\u003c/code\u003e for applying styles globally.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers can customize UI elements through the \u003ccode\u003ecastViews\u003c/code\u003e property, which represents the root of the styling attributes tree.\u003c/p\u003e\n"],["\u003cp\u003eChanges made to styling can be applied immediately to visible views using the \u003ccode\u003eapplyStyle\u003c/code\u003e method.\u003c/p\u003e\n"]]],["The `GCKUIStyle` class, inheriting from `NSObject`, manages UI styling. Key actions include obtaining a singleton instance via the `sharedInstance` class method and applying style changes immediately using the `applyStyle` instance method to refresh visible views. The `castViews` property, a `GCKUIStyleAttributesCastViews` instance, serves as the root for the styling attributes tree, enabling customization. It was introduced in version 3.3.\n"],null,["# GCKUIStyle Class\n\n[Instance Methods](#pub-methods) \\| [Class Methods](#pub-static-methods) \\| [Properties](#properties) \nGCKUIStyle Class Reference \n\nOverview\n--------\n\nSince\n: 3.3\n\nInherits NSObject.\n\n|--------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Instance Method Summary ----------------------- ||\n| (void) | - [applyStyle](/cast/docs/reference/ios/interface_g_c_k_u_i_style#ade27204981ce37498896956adbb99030) |\n| | Forces a refresh of all currently visible views, so that any changes to the styling will take effect immediately. [More...](#ade27204981ce37498896956adbb99030) |\n| ||\n\n|-----------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------|\n| Class Method Summary -------------------- ||\n| ([GCKUIStyle](/cast/docs/reference/ios/interface_g_c_k_u_i_style) \\*) | + [sharedInstance](/cast/docs/reference/ios/interface_g_c_k_u_i_style#aa7ba2a4ccd415eef08657ab365d27a98) |\n| | Returns the [GCKUIStyle](/cast/docs/reference/ios/interface_g_c_k_u_i_style) singleton instance. [More...](#aa7ba2a4ccd415eef08657ab365d27a98) |\n| ||\n\n|--------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------|\n| Property Summary ---------------- ||\n| [GCKUIStyleAttributesCastViews](/cast/docs/reference/ios/interface_g_c_k_u_i_style_attributes_cast_views) \\* | [castViews](/cast/docs/reference/ios/interface_g_c_k_u_i_style#ad816f273cb87c2bc99aff34b85fc6361) |\n| | The root of the styling attributes tree. [More...](#ad816f273cb87c2bc99aff34b85fc6361) |\n| ||\n\nMethod Detail\n-------------\n\n|----------------------------------------------------------------------------------------|---|---|---|\n| + ([GCKUIStyle](/cast/docs/reference/ios/interface_g_c_k_u_i_style) \\*) sharedInstance | | | |\n\nReturns the [GCKUIStyle](/cast/docs/reference/ios/interface_g_c_k_u_i_style) singleton instance. \n\n|---------------------|---|---|---|\n| - (void) applyStyle | | | |\n\nForces a refresh of all currently visible views, so that any changes to the styling will take effect immediately.\n\nProperty Detail\n---------------\n\n|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------|\n| |---------------------------------------------------------------------------------------------------------------------------| | - ([GCKUIStyleAttributesCastViews](/cast/docs/reference/ios/interface_g_c_k_u_i_style_attributes_cast_views)\\*) castViews | | readnonatomicstrong |\n\nThe root of the styling attributes tree."]]