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
SDLPermissionElement

SDLPermissionElement Class Reference

Section Contents

Overview

An object containing the RPC name and its parameter names that should be checked when checking permissions

rpcName

Name of the individual RPC. Required

Objective-C

@property (nonatomic, strong) SDLRPCFunctionName _Nonnull rpcName;

Swift

var rpcName: SDLRPCFunctionName { get set }

parameterPermissions

RPC parameters for the individual RPC

Objective-C

@property (nonatomic, strong, nullable) NSArray<NSString *> *parameterPermissions;

Swift

var parameterPermissions: [String]? { get set }

-initWithRPCName:parameterPermissions:

Creates a new permission element.

Objective-C

- (nonnull instancetype)initWithRPCName:(nonnull SDLRPCFunctionName)rpcName
                   parameterPermissions:
                       (nullable NSArray<NSString *> *)parameterPermissions;

Swift

init(rpcName: SDLRPCFunctionName, parameterPermissions: [String]?)

Parameters

rpcName

The name of the RPC.

parameterPermissions

An array parameters for the RPC that should be checked if they are allowed. Note that not all head units may provide this data. If no parameter data is received, we assume that the parameter is not allowed.

Return Value

An instance of SDLPermissionElement.

View on GitHub.com
Previous Section Next Section