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
SDLRPCMessage

SDLRPCMessage Class Reference

Section Contents

Overview

Parent class of all RPC messages.

Contains basic information about an RPC message.

-initWithName:

Convenience init

Objective-C

- (nonnull instancetype)initWithName:(nonnull NSString *)name;

Swift

init(name: String)

Parameters

name

The name of the message

Return Value

A SDLRPCMessage object

-setFunctionName:

Sets the function name.

Objective-C

- (void)setFunctionName:(nullable NSString *)functionName;

Swift

func setFunctionName(_ functionName: String?)

Parameters

functionName

The function name

-setParameters:value:

Sets a key-value pair using the function name as the key.

Objective-C

- (void)setParameters:(nonnull NSString *)functionName
                value:(nullable NSObject *)value;

Swift

func setParameters(_ functionName: String, value: NSObject?)

Parameters

functionName

The name for the key

value

The value associated with the function name

bulkData

The data in the message

Objective-C

@property (nonatomic, strong, nullable) NSData *bulkData;

Swift

var bulkData: Data? { get set }

name

The name of the message

Objective-C

@property (nonatomic, strong, readonly) NSString *_Nonnull name;

Swift

var name: String { get }

parameters

The JSON-RPC parameters

Objective-C

@property (nonatomic, strong, readonly) NSMutableDictionary<NSString *, id> *_Nonnull parameters;

Swift

var parameters: NSMutableDictionary { get }

messageType

The type of data in the message

Objective-C

@property (nonatomic, strong, readonly) NSString *_Nonnull messageType;

Swift

var messageType: String { get }
View on GitHub.com
Previous Section Next Section