Returns whether the screen has a high dynamic rate. This only works in versions larger or Android 8.
Returns: boolean
IsScreenRound
Return whether the screen has a round shape. Apps may choose to change styling based on this property, such as the alignment or layout of text or informational icons.
Returns: boolean
LanguageTag
Returns a well-formed IETF BCP 47 language tag representing this locale.
Per @Developer's request, I made the following blocks. Thank you Developer!
Events
GotChargingTime
Triggered when finished calculating the remaining charging time. Returns -1 when an error is occured.
Parameters: time = number (long)
This was referenced by @Kumaraswamy and he gave me the permission. Thank you!
Methods
AppPackageName
Returns the package name of the current running application.
Returns: text
ApplicationSpecificDirectory
Returns an absolute path of the application specific directory.
Returns: text
GetBatteryChargingTime
Attempts to calculate the remaining charging time and triggers the GotChargingTime event.
IsEmulator
Checks if the app is operating on an emulator. This does not work on an App Inventor emulator. I used emulator examples in this Stack Overflow answer.
Returns: boolean
IsScreenWideColorGamut
Return whether the screen has a wide color gamut and wide color gamut rendering is supported by this device. When true, it implies the screen is colorspace aware but not necessarily color-managed. The final colors may still be changed by the screen depending on user settings.