Expand Minimize Picture-in-picture Power Device Status Voice Recognition Skip Back Skip Forward Minus Plus Play Search
Internet Explorer alert
This browser is not recommended for use with smartdevicelink.com, and may not function properly. Upgrade to a different browser to guarantee support of all features.
close alert
To Top Created with Sketch. To Top
To Bottom Created with Sketch. To Bottom
iOS Documentation
SDLDeviceInfo

SDLDeviceInfo Class Reference

Section Contents

Overview

Various information about connecting device. Referenced in RegisterAppInterface

+currentDevice

Convenience init. Object will contain all information about the connected device automatically.

Objective-C

+ (nonnull instancetype)currentDevice;

Swift

class func currentDevice() -> Self

Return Value

An SDLDeviceInfo object

hardware

Device model

Optional

Objective-C

@property (nonatomic, strong, nullable) NSString *hardware;

Swift

var hardware: String? { get set }

firmwareRev

Device firmware version

Optional

Objective-C

@property (nonatomic, strong, nullable) NSString *firmwareRev;

Swift

var firmwareRev: String? { get set }

os

Device OS

Optional

Objective-C

@property (nonatomic, strong, nullable) NSString *os;

Swift

var os: String? { get set }

osVersion

Device OS version

Optional

Objective-C

@property (nonatomic, strong, nullable) NSString *osVersion;

Swift

var osVersion: String? { get set }

carrier

Device mobile carrier

Optional

Objective-C

@property (nonatomic, strong, nullable) NSString *carrier;

Swift

var carrier: String? { get set }

maxNumberRFCOMMPorts

Number of bluetooth RFCOMM ports available.

Omitted if not connected via BT or on iOS

Optional

Objective-C

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

Swift

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