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
SDLRPCStruct

SDLRPCStruct Class Reference

Section Contents

Overview

Superclass of all RPC-related structs and messages

store

The store that contains RPC data

Objective-C

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

Swift

var store: NSMutableDictionary { get }

payloadProtected

Declares if the RPC payload ought to be protected

Objective-C

@property (nonatomic, assign, unsafe_unretained, readwrite,
          getter=isPayloadProtected) BOOL payloadProtected;

Swift

var isPayloadProtected: Bool { get set }

-initWithDictionary:

Convenience init

Objective-C

- (nonnull instancetype)initWithDictionary:
    (nonnull NSDictionary<NSString *, id> *)dict;

Swift

init(dictionary dict: [String : Any])

Parameters

dict

A dictionary

Return Value

A SDLRPCStruct object

-serializeAsDictionary:

Converts struct to JSON formatted data

Objective-C

- (nonnull NSDictionary<NSString *, id> *)serializeAsDictionary:(Byte)version;

Swift

func serialize(asDictionary version: UInt8) -> [String : Any]

Parameters

version

The protocol version

Return Value

JSON formatted data

View on GitHub.com
Previous Section Next Section