מחלקת GCKUIStyle
קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
יורש את NSObject.
|
(void) | - applyStyle |
| מאלץ רענון של כל התצוגות הקיימות כעת, כדי שכל השינויים בסגנון ייכנסו לתוקף באופן מיידי. עוד...
|
|
מאלץ רענון של כל התצוגות הקיימות כעת, כדי שכל השינויים בסגנון ייכנסו לתוקף באופן מיידי.
השורש של עץ מאפייני הסגנון.
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2025-07-25 (שעון UTC).
[null,null,["עדכון אחרון: 2025-07-25 (שעון 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."]]