detectPlatform method Null safety

String detectPlatform(
  1. Request req
)

Detects the platform (using "user-agent") from which the given HTTP request was made.

  • req an HTTP RequestContext request to process. Returns the detected platform and version. Detectable platforms: "mobile", "iphone", "ipad", "macosx", "android", "webos", "mac", "windows". Otherwise - "unknown" will be returned.