A value that the vehicle can return to indicate the status of
a particular vehicle feature.
A ``FunctionStatus`` type wraps the custom code that the vehicle
returns. You define the status codes and their meanings for your
vehicle’s features. For example, you might define status codes to
represent the locked, unlocked, and unknown states of your vehicle’s
door-locking system.
Members (3)
init · iOS 16.0+
init
TypeScript
initRawValue(rawValue: number): FunctionStatus
Swift declaration
init(rawValue: Int)
Creates and returns a new function status with the specified value.
- Parameters:
- rawValue: The value for the new type.
- Returns: A new function status type.
get · iOS 16.0+
rawValue
TypeScript
getRawValue($self: FunctionStatus): number
Swift declaration
let rawValue: Int
The raw value that corresponds to the feature-specific status.
init · iOS 16.0+
init
TypeScript
init(rawValue: number): FunctionStatus
Swift declaration
init(_ rawValue: Int)
Creates and returns a new function status with the specified value.
- Parameters:
- rawValue: The value for the new type.
- Returns: A new function status type.