An object containing the RPC name and its parameter names that should be checked when checking permissions
Name of the individual RPC. Required
@property (nonatomic, strong) SDLRPCFunctionName _Nonnull rpcName;
var rpcName: SDLRPCFunctionName { get set }
RPC parameters for the individual RPC
@property (nonatomic, strong, nullable) NSArray<NSString *> *parameterPermissions;
var parameterPermissions: [String]? { get set }
Creates a new permission element.
- (nonnull instancetype)initWithRPCName:(nonnull SDLRPCFunctionName)rpcName
parameterPermissions:
(nullable NSArray<NSString *> *)parameterPermissions;
init(rpcName: SDLRPCFunctionName, parameterPermissions: [String]?)
The name of the RPC.
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.
An instance of SDLPermissionElement
.