SDLRDSData Class Reference

Section Contents

Overview

Include the data defined in Radio Data System, which is a communications protocol standard for embedding small amounts of digital information in conventional FM radio broadcasts.

-initWithProgramService:radioText:clockText:programIdentification:programType:trafficProgramIdentification:trafficAnnouncementIdentification:region:

Convenience init

Objective-C

- (nonnull instancetype)
               initWithProgramService:(nullable NSString *)programService
                            radioText:(nullable NSString *)radioText
                            clockText:(nullable NSString *)clockText
                programIdentification:(nullable NSString *)programIdentification
                          programType:(nullable NSNumber<SDLInt> *)programType
         trafficProgramIdentification:
             (nullable NSNumber<SDLBool> *)trafficProgramIdentification
    trafficAnnouncementIdentification:
        (nullable NSNumber<SDLBool> *)trafficAnnouncementIdentification
                               region:(nullable NSString *)region;

Swift

init(programService: String?, radioText: String?, clockText: String?, programIdentification: String?, programType: (NSNumber & SDLInt)?, trafficProgramIdentification: (NSNumber & SDLBool)?, trafficAnnouncementIdentification: (NSNumber & SDLBool)?, region: String?)

Parameters

programService

Program Service Name

radioText

Radio Text

clockText

The clock text in UTC format as YYYY-MM-DDThh:mm:ss.sTZD

programIdentification

Program Identification - the call sign for the radio station

programType

The program type - The region should be used to differentiate between EU and North America program types

trafficProgramIdentification

Traffic Program Identification - Identifies a station that offers traffic

trafficAnnouncementIdentification

Traffic Announcement Identification - Indicates an ongoing traffic announcement

region

Region

programService

Program Service Name

optional, 0-8

Objective-C

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

Swift

var programService: String? { get set }

radioText

Radio Text

optional, 0-64

Objective-C

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

Swift

var radioText: String? { get set }

clockText

The clock text in UTC format as YYYY-MM-DDThh:mm:ss.sTZD

optional, 0-24

Objective-C

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

Swift

var clockText: String? { get set }

programIdentification

Program Identification - the call sign for the radio station

optional, 0-6

Objective-C

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

Swift

var programIdentification: String? { get set }

programType

The program type - The region should be used to differentiate between EU and North America program types

optional, 0-31

Objective-C

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

Swift

var programType: (NSNumber & SDLInt)? { get set }

trafficProgramIdentification

Traffic Program Identification - Identifies a station that offers traffic

optional, Boolean

Objective-C

@property (nonatomic, strong, nullable) NSNumber<SDLBool> *trafficProgramIdentification;

Swift

var trafficProgramIdentification: (NSNumber & SDLBool)? { get set }

trafficAnnouncementIdentification

Traffic Announcement Identification - Indicates an ongoing traffic announcement

optional, Boolean

Objective-C

@property (nonatomic, strong, nullable) NSNumber<SDLBool> *trafficAnnouncementIdentification;

Swift

var trafficAnnouncementIdentification: (NSNumber & SDLBool)? { get set }

region

Region

optional, 0-8

Objective-C

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

Swift

var region: String? { get set }