Package-level declarations

Types

Link copied to clipboard

AndroidDeviceOrientation class implements the DeviceOrientation interface to handle device orientation specifically for Android devices. This class retrieves the current orientation of the device (portrait, landscape, or unknown) based on the system configuration. It checks the device's orientation and provides properties and methods to determine whether the device is in portrait or landscape mode.

Link copied to clipboard

AndroidDisplayMetricsImpl class provides the implementation for the DisplayMetrics interface. This class retrieves and calculates the display metrics of an Android device, such as screen width, height, and DPI (dots per inch) values for both horizontal and vertical axes.

Link copied to clipboard
internal class AndroidInfoImpl : AndroidInfo

The AndroidInfoImpl class providing an implementation of the AndroidInfo interface. It retrieves detailed information about an Android device and its system environment.

Link copied to clipboard

AndroidVersionCodeImpl class implements the VersionCode interface to provide the integer values corresponding to the version codes of various Android versions.

Link copied to clipboard
internal class AndroidVersionImpl : Version

AndroidVersionImpl class provides the implementation of the Version interface. This class retrieves version-related information of the Android operating system from the Build.VERSION class, including base OS, SDK version, release information, incremental version, security patch level, and more. It handles different versions of Android using appropriate API levels.

Link copied to clipboard
external interface Browser

Represents the browser information extracted from the user agent string.

Link copied to clipboard
external interface CPU

Represents the CPU architecture information extracted from the user agent string.

Link copied to clipboard

Represents an implementation of the DesktopInfo interface. Provides concrete information about the operating system and hardware of the desktop.

Link copied to clipboard
external interface Device

Represents the device information extracted from the user agent string.

Link copied to clipboard
external interface Engine

Represents the engine information extracted from the user agent string.

Link copied to clipboard

IosDeviceOrientationImpl is an implementation of the DeviceOrientation interface specific to iOS devices. This class retrieves the current orientation of the iOS device by accessing the window's interface orientation from the UIKit framework. It uses UIApplication.sharedApplication.connectedScenes to determine the device's orientation.

Link copied to clipboard
internal class IosInfoImpl : IosInfo

IosInfoImpl is an implementation of the IosInfo interface that retrieves detailed information about an iOS device and application. This class provides access to various system and application properties such as device name, model, system version, and app version. It also includes information related to device orientation, multitasking support, and locale.

Link copied to clipboard
external interface Os

Represents the operating system information extracted from the user agent string.

Link copied to clipboard
external class UAParser(userAgent: String)

External class representing the UAParser from the "ua-parser-js" JavaScript library.

Link copied to clipboard
external interface UAParserResult

Represents the result of parsing a user agent string, containing detailed information about the browser, CPU, device, engine, and operating system.

Link copied to clipboard

Implements the WebInfo interface, providing detailed web environment information such as the user agent, browser, CPU, device, engine, and operating system.

Functions

Link copied to clipboard

A convenience function to parse a user agent string and return the resulting information as a UAParserResult.