Lớp GCKUIStyle
Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
Kế thừa NSObject.
|
(void) | - applyStyle |
| Buộc làm mới tất cả các chế độ xem hiện đang hiển thị để mọi thay đổi về kiểu sẽ có hiệu lực ngay lập tức. Xem thêm...
|
|
Buộc làm mới tất cả các chế độ xem hiện đang hiển thị để mọi thay đổi về kiểu sẽ có hiệu lực ngay lập tức.
Gốc của cây thuộc tính tạo kiểu.
Trừ phi có lưu ý khác, nội dung của trang này được cấp phép theo Giấy phép ghi nhận tác giả 4.0 của Creative Commons và các mẫu mã lập trình được cấp phép theo Giấy phép Apache 2.0. Để biết thông tin chi tiết, vui lòng tham khảo Chính sách trang web của Google Developers. Java là nhãn hiệu đã đăng ký của Oracle và/hoặc các đơn vị liên kết với Oracle.
Cập nhật lần gần đây nhất: 2025-07-25 UTC.
[null,null,["Cập nhật lần gần đây nhất: 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."]]