GCKUIUtils Class Stay organized with collections
Save and categorize content based on your preferences.
User interface utility methods.
- Since
- 3.0
Inherits NSObject.
(nullable UIViewController *)
Returns the currently active view controller, by navigating through the view controller hierarchy beginning with the root view controller. More...
Formats a time interval in MM:SS or H:MM:SS format. More...
Formats a local time based on the current locale. More...
| + (nullable UIViewController *) currentViewController |
|
|
|
Returns the currently active view controller, by navigating through the view controller hierarchy beginning with the root view controller.
| + (NSString *) timeIntervalAsString: |
|
(NSTimeInterval) |
timeInterval
|
|
Formats a time interval in MM:SS or H:MM:SS format.
| + (NSString *) localTimeAsString: |
|
(NSTimeInterval) |
localTime
|
|
Formats a local time based on the current locale.
- Since
- 4.3.4
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."],[],["The `GCKUIUtils` class provides static utility methods for user interface operations. It can retrieve the currently active `UIViewController` by traversing the view controller hierarchy. Additionally, it offers methods to format time: `timeIntervalAsString:` formats a given time interval into MM:SS or H:MM:SS format, and `localTimeAsString:` formats local time based on the user's current locale.\n"]]