Expand Minimize Picture-in-picture Power Device Status Voice Recognition Skip Back Skip Forward Minus Plus Play Search
Documentation
Sidebar

SDLMsgVersion Class Reference

Section Contents

Overview

Specifies the version number of the SDL V4 interface. This is used by both the application and SDL to declare what interface version each is using.

@since SDL 1.0

-initWithMajorVersion:minorVersion:patchVersion:

Convenience init for all parameters.

Objective-C

- (nonnull instancetype)initWithMajorVersion:(UInt8)majorVersion
                                minorVersion:(UInt8)minorVersion
                                patchVersion:(UInt8)patchVersion;

Swift

init(majorVersion: UInt8, minorVersion: UInt8, patchVersion: UInt8)

Parameters

majorVersion

Major version

minorVersion

Minor version

patchVersion

Patch version

Return Value

A SDLMsgVersion object

majorVersion

The major version indicates versions that is not-compatible to previous versions

Required, Integer, 1 - 10

Objective-C

@property (readwrite, strong, nonatomic) NSNumber<SDLInt> *_Nonnull majorVersion;

Swift

var majorVersion: NSNumber & SDLInt { get set }

minorVersion

The minor version indicates a change to a previous version that should still allow to be run on an older version (with limited functionality)

Required, Integer, 0 - 1000

Objective-C

@property (readwrite, strong, nonatomic) NSNumber<SDLInt> *_Nonnull minorVersion;

Swift

var minorVersion: NSNumber & SDLInt { get set }

patchVersion

Allows backward-compatible fixes to the API without increasing the minor version of the interface

Optional, Integer, 0 - 1000

Objective-C

@property (readwrite, strong, nonatomic, nullable)
    NSNumber<SDLInt> *patchVersion;

Swift

var patchVersion: (NSNumber & SDLInt)? { get set }
View on GitHub.com
Previous Section Next Section