[][src]Type Definition fiftyonedegrees::values::platform_name::PlatformName

type PlatformName<'detector> = &'detector str;

PlatformName

All operating systems with a north american market share greater than %1 are provided as enumerated values.

use fiftyonedegrees_sys::values::platform_name::PlatformName;

let browser = PlatformName::Windows;

Any browser with less than 1% market share will appear as "Other", with a full list of possible values available at https://51degrees.com/resources/property-dictionary.

use fiftyonedegrees_sys::values::platform_name::PlatformName;

let browser = PlatformName::Other("BlackBerry OS");

Some operating systems have multiple variants in the 51degrees dataset such as the "Windows":

  • Windows
  • Windows Mobile
  • Windows NT
  • Windows Phone
  • Windows RT
  • Windows Server

In instances where there is a variant, it is returned as an "Other":

use fiftyonedegrees_sys::values::platform_name::PlatformName;

let browser = PlatformName::Other("Windows Server");