کلاس GCKUIStyle
با مجموعهها، منظم بمانید
ذخیره و طبقهبندی محتوا براساس اولویتهای شما.
NSObject را به ارث می برد.
|
(void) | - applyStyle |
| بهروزرسانی همه نماهای قابل مشاهده در حال حاضر را مجبور میکند تا هر گونه تغییر در استایل فوراً اعمال شود. بیشتر...
|
|
بهروزرسانی همه نماهای قابل مشاهده در حال حاضر را مجبور میکند تا هر گونه تغییر در استایل فوراً اعمال شود.
ریشه درخت ویژگی های یک ظاهر طراحی شده است.
جز در مواردی که غیر از این ذکر شده باشد،محتوای این صفحه تحت مجوز Creative Commons Attribution 4.0 License است. نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده Oracle و/یا شرکتهای وابسته به آن است.
تاریخ آخرین بهروزرسانی 2025-07-24 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2025-07-24 بهوقت ساعت هماهنگ جهانی."],[[["\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."]]