ClientAppPlatform
enum ClientAppPlatform : String, CaseIterable, Codable, Sendable
The platform a ClientApp runs on. A client app may be available on several platforms.
Clients: Be sure to anticipate server values not listed here.
-
Declaration
Swift
case web -
Declaration
Swift
case ios -
Declaration
Swift
case android -
Anything that isn’t a website, iOS, or Android app (desktop apps, bots, etc.)
Declaration
Swift
case other -
.labelreturns a consumer-friendly display name.Declaration
Swift
var label: String { get } -
For use by the URL-parameter layer. Lowercases the input and maps it to a case. Returns nil for “all” (meaning no filter) and for an absent/empty value; throws a 400 on unknown values.
Declaration
Swift
static func fromAPIString(_ str: String?) throws -> `Self`?
View on GitHub