Package io.nevernull.mobileui
Interface PlatformService
-
public interface PlatformService
Inject → Interface where MobileUI provides platform-specific runtime information
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
PlatformService.OsType
Enumeration for the operating system typesstatic class
PlatformService.Version
Version supports major minor and maintenance version.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
getDeviceManufacturer()
Returns a String naming the device's manufacturerString
getDeviceModel()
Returns a String describing the device modelPlatformService.OsType
getOsType()
Returns the operating system's type being one of 'Android' or 'iOS'.PlatformService.Version
getOsVersion()
Returns the operating system version.
-
-
-
Method Detail
-
getOsVersion
@Nonnull PlatformService.Version getOsVersion()
Returns the operating system version.- Returns:
- the operating system version
-
getOsType
@Nonnull PlatformService.OsType getOsType()
Returns the operating system's type being one of 'Android' or 'iOS'.- Returns:
- the operating system's type being one of 'Android' or 'iOS'.
-
getDeviceModel
@Nonnull String getDeviceModel()
Returns a String describing the device model- Returns:
- a String describing the device model
-
-